diff --git a/src/tslint-eslint-rules/no-extra-semi/.prettierrc b/src/tslint-eslint-rules/no-extra-semi/.prettierrc new file mode 100644 index 0000000..109a78d --- /dev/null +++ b/src/tslint-eslint-rules/no-extra-semi/.prettierrc @@ -0,0 +1 @@ +{ "semi": false } diff --git a/src/tslint-eslint-rules/no-extra-semi/__snapshots__/test.ts.snap b/src/tslint-eslint-rules/no-extra-semi/__snapshots__/test.ts.snap new file mode 100644 index 0000000..f461963 --- /dev/null +++ b/src/tslint-eslint-rules/no-extra-semi/__snapshots__/test.ts.snap @@ -0,0 +1,25 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should affect error message after formatting 1`] = ` +" +<<<<<< before +no error + +====== +ERROR: (no-extra-semi) /src/tslint-eslint-rules/no-extra-semi/test.ts[1, 1]: unnecessary semicolon + +>>>>>> after +" +`; + +exports[`should be pretty after formatting 1`] = ` +" +<<<<<< before +({ x }) = foo() + +====== +;({ x } = foo()) + +>>>>>> after +" +`; diff --git a/src/tslint-eslint-rules/no-extra-semi/test.ts b/src/tslint-eslint-rules/no-extra-semi/test.ts new file mode 100644 index 0000000..8802224 --- /dev/null +++ b/src/tslint-eslint-rules/no-extra-semi/test.ts @@ -0,0 +1 @@ +({ x }) = foo() diff --git a/src/tslint-eslint-rules/no-extra-semi/tslint.json b/src/tslint-eslint-rules/no-extra-semi/tslint.json new file mode 100644 index 0000000..3cde3fd --- /dev/null +++ b/src/tslint-eslint-rules/no-extra-semi/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "../tslint.json", + "rules": { + "no-extra-semi": true + } +}