|
1 | 1 | {
|
2 |
| - "extends": ["standard", "standard-jsx"], |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "ecmaVersion": 2020, |
| 5 | + "sourceType": "module", |
| 6 | + "allowImportExportEverywhere": true, |
| 7 | + "ecmaFeatures": { |
| 8 | + "jsx": true |
| 9 | + } |
| 10 | + }, |
3 | 11 | "env": {
|
4 | 12 | "browser": true,
|
5 | 13 | "jest": true
|
6 | 14 | },
|
| 15 | + "settings": { |
| 16 | + "react": { |
| 17 | + "version": "detect" |
| 18 | + } |
| 19 | + }, |
| 20 | + "extends": [ |
| 21 | + "plugin:react/recommended", |
| 22 | + "plugin:@typescript-eslint/recommended" |
| 23 | + ], |
7 | 24 | "rules": {
|
8 |
| - "comma-dangle": ["error", "always-multiline"], |
9 |
| - "space-before-function-paren": ["error", { |
10 |
| - "anonymous": "always", |
11 |
| - "asyncArrow": "always", |
12 |
| - "named": "never" |
| 25 | + "@typescript-eslint/no-empty-function": "off", |
| 26 | + "@typescript-eslint/comma-dangle": ["error", "always-multiline"], |
| 27 | + "@typescript-eslint/space-before-function-paren": ["error", { |
| 28 | + "anonymous": "always", |
| 29 | + "asyncArrow": "always", |
| 30 | + "named": "never" |
13 | 31 | }],
|
14 |
| - "jsx-quotes": ["error", "prefer-double"], |
15 |
| - "react/jsx-fragments": "off" |
16 |
| - }, |
17 |
| - "parser": "@babel/eslint-parser", |
18 |
| - "parserOptions": { |
19 |
| - "allowImportExportEverywhere": true |
| 32 | + "@typescript-eslint/no-explicit-any": "off", |
| 33 | + "@typescript-eslint/explicit-module-boundary-types": "off" |
20 | 34 | }
|
21 | 35 | }
|
0 commit comments