|
11 | 11 | "es6": true
|
12 | 12 | },
|
13 | 13 | "plugins": [
|
14 |
| - "@typescript-eslint", "jsdoc", "no-null", "import" |
| 14 | + "@typescript-eslint", "jsdoc", "no-null", "import", "eslint-plugin-local" |
| 15 | + ], |
| 16 | + "overrides": [ |
| 17 | + // By default, the ESLint CLI only looks at .js files. But, it will also look at |
| 18 | + // any files which are referenced in an override config. Most users of typescript-eslint |
| 19 | + // get this behavior by default by extending a recommended typescript-eslint config, which |
| 20 | + // just so happens to override some core ESLint rules. We don't extend from any config, so |
| 21 | + // explicitly reference TS files here so the CLI picks them up. |
| 22 | + // |
| 23 | + // ESLint in VS Code will lint any opened file (so long as it's not eslintignore'd), so |
| 24 | + // that will work regardless of the below. |
| 25 | + { "files": ["*.ts"] } |
15 | 26 | ],
|
16 | 27 | "rules": {
|
17 | 28 | "@typescript-eslint/adjacent-overload-signatures": "error",
|
|
70 | 81 | "@typescript-eslint/unified-signatures": "error",
|
71 | 82 |
|
72 | 83 | // scripts/eslint/rules
|
73 |
| - "object-literal-surrounding-space": "error", |
74 |
| - "no-type-assertion-whitespace": "error", |
75 |
| - "type-operator-spacing": "error", |
76 |
| - "only-arrow-functions": ["error", { |
| 84 | + "local/object-literal-surrounding-space": "error", |
| 85 | + "local/no-type-assertion-whitespace": "error", |
| 86 | + "local/type-operator-spacing": "error", |
| 87 | + "local/only-arrow-functions": ["error", { |
77 | 88 | "allowNamedFunctions": true ,
|
78 | 89 | "allowDeclarations": true
|
79 | 90 | }],
|
80 |
| - "no-double-space": "error", |
81 |
| - "boolean-trivia": "error", |
82 |
| - "no-in-operator": "error", |
83 |
| - "simple-indent": "error", |
84 |
| - "debug-assert": "error", |
85 |
| - "no-keywords": "error", |
86 |
| - "one-namespace-per-file": "error", |
| 91 | + "local/no-double-space": "error", |
| 92 | + "local/boolean-trivia": "error", |
| 93 | + "local/no-in-operator": "error", |
| 94 | + "local/simple-indent": "error", |
| 95 | + "local/debug-assert": "error", |
| 96 | + "local/no-keywords": "error", |
| 97 | + "local/one-namespace-per-file": "error", |
87 | 98 |
|
88 | 99 | // eslint-plugin-import
|
89 | 100 | "import/no-extraneous-dependencies": ["error", { "optionalDependencies": false }],
|
|
0 commit comments