|
1 | 1 | { |
| 2 | + "parser": "@typescript-eslint/parser", |
2 | 3 | "extends": [ |
3 | 4 | "react-app", |
4 | 5 | "react-app/jest", |
5 | 6 | "airbnb", |
6 | 7 | "plugin:cypress/recommended", |
7 | 8 | "plugin:jsx-a11y/recommended", |
8 | 9 | "prettier", |
9 | | - "plugin:prettier/recommended" |
| 10 | + "plugin:prettier/recommended", |
| 11 | + "plugin:@typescript-eslint/recommended" |
10 | 12 | ], |
11 | 13 | "globals": { |
12 | 14 | "File": true, |
|
36 | 38 | }], |
37 | 39 | "no-nested-ternary": "off", |
38 | 40 | "prettier/prettier": "error", |
| 41 | + "no-shadow": "off", |
39 | 42 | "react/react-in-jsx-scope": 0, |
40 | 43 | "react/require-default-props": "off", |
| 44 | + "@typescript-eslint/no-empty-function": "off", |
41 | 45 | "react/function-component-definition": [1, { |
42 | 46 | "namedComponents": ["arrow-function"] |
43 | 47 | }], |
|
53 | 57 | "^@codingame\/monaco-vscode-api", |
54 | 58 | "^@swagger-api\/apidom-json-pointer" |
55 | 59 | ] |
56 | | - }] |
57 | | - } |
| 60 | + }], |
| 61 | + "react/jsx-filename-extension": [2, |
| 62 | + { |
| 63 | + "extensions": [ |
| 64 | + ".tsx", |
| 65 | + ".jsx" |
| 66 | + ] |
| 67 | + } |
| 68 | + ] |
| 69 | + }, |
| 70 | + "overrides": [ |
| 71 | + { |
| 72 | + "files": ["*.ts", "*.tsx"], |
| 73 | + "rules": { |
| 74 | + "import/extensions": "off", |
| 75 | + "import/no-unresolved": "off" |
| 76 | + } |
| 77 | + }, |
| 78 | + { |
| 79 | + "files": ["*.js"], |
| 80 | + "rules": { |
| 81 | + "@typescript-eslint/return-await": "off" |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + "files": ["*.d.ts"], |
| 86 | + "rules": { |
| 87 | + "vars-on-top": "off", |
| 88 | + "no-var": "off" |
| 89 | + } |
| 90 | + } |
| 91 | + ] |
58 | 92 | } |
0 commit comments