|
6 | 6 | "node": true,
|
7 | 7 | "jest": true
|
8 | 8 | },
|
9 |
| - "extends": [ |
10 |
| - "eslint:recommended", |
11 |
| - "plugin:@typescript-eslint/recommended", |
12 |
| - "prettier", |
13 |
| - "next" |
14 |
| - ], |
15 | 9 | "settings": {
|
16 | 10 | "next": {
|
17 | 11 | "rootDir": "packages/website/"
|
18 | 12 | }
|
19 | 13 | },
|
20 | 14 | "parser": "@typescript-eslint/parser",
|
21 |
| - "parserOptions": { |
22 |
| - "ecmaVersion": "latest", |
23 |
| - "sourceType": "module", |
24 |
| - "project": ["./tsconfig.json"] |
25 |
| - }, |
26 | 15 | "plugins": ["@typescript-eslint", "prettier"],
|
27 |
| - "rules": { |
28 |
| - "prettier/prettier": ["error", { "singleQuote": true }], |
29 |
| - "no-mixed-spaces-and-tabs": ["warn", "smart-tabs"], |
30 |
| - "comma-dangle": [ |
31 |
| - "error", |
32 |
| - { |
33 |
| - "arrays": "always-multiline", |
34 |
| - "objects": "always-multiline", |
35 |
| - "imports": "always-multiline", |
36 |
| - "exports": "always-multiline", |
37 |
| - "functions": "never" |
38 |
| - } |
39 |
| - ], |
40 |
| - "indent": "off", |
41 |
| - "quotes": ["error", "single", { "avoidEscape": true }], |
42 |
| - "import/no-unresolved": "off", // messed up by lerna hoisting |
43 |
| - "no-undef": "error", |
44 |
| - "import/no-anonymous-default-export": "off", |
45 |
| - "prefer-const": "error", |
46 |
| - "semi": ["error", "always"], |
| 16 | + "overrides": [ |
| 17 | + { |
| 18 | + "files": ["*.ts", "*.tsx"], |
| 19 | + "extends": [ |
| 20 | + "eslint:recommended", |
| 21 | + "prettier", |
| 22 | + "next", |
| 23 | + "plugin:@typescript-eslint/recommended" |
| 24 | + ], |
| 25 | + "parserOptions": { |
| 26 | + "ecmaVersion": "latest", |
| 27 | + "sourceType": "module", |
| 28 | + "project": ["./tsconfig.json"] |
| 29 | + }, |
| 30 | + "rules": { |
| 31 | + "prettier/prettier": ["error", { "singleQuote": true }], |
| 32 | + "no-mixed-spaces-and-tabs": ["warn", "smart-tabs"], |
| 33 | + "comma-dangle": [ |
| 34 | + "error", |
| 35 | + { |
| 36 | + "arrays": "always-multiline", |
| 37 | + "objects": "always-multiline", |
| 38 | + "imports": "always-multiline", |
| 39 | + "exports": "always-multiline", |
| 40 | + "functions": "never" |
| 41 | + } |
| 42 | + ], |
| 43 | + "indent": "off", |
| 44 | + "quotes": ["error", "single", { "avoidEscape": true }], |
| 45 | + "import/no-unresolved": "off", // messed up by lerna hoisting |
| 46 | + "no-undef": "error", |
| 47 | + "import/no-anonymous-default-export": "off", |
| 48 | + "prefer-const": "error", |
| 49 | + "semi": ["error", "always"], |
47 | 50 |
|
48 |
| - "@typescript-eslint/no-explicit-any": "off", |
49 |
| - "@typescript-eslint/ban-ts-comment": "off", |
50 |
| - "@typescript-eslint/explicit-module-boundary-types": "off", |
51 |
| - "@typescript-eslint/no-non-null-assertion": "off", |
52 |
| - "@typescript-eslint/no-floating-promises": "error", |
53 |
| - "@typescript-eslint/no-unused-vars": "error" |
54 |
| - } |
| 51 | + "@typescript-eslint/no-explicit-any": "off", |
| 52 | + "@typescript-eslint/ban-ts-comment": "off", |
| 53 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 54 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 55 | + "@typescript-eslint/no-floating-promises": "error", |
| 56 | + "@typescript-eslint/no-unused-vars": "error" |
| 57 | + } |
| 58 | + } |
| 59 | + ] |
55 | 60 | }
|
0 commit comments