|
1 | 1 | { |
2 | | - "extends": ["airbnb"], |
3 | | - "parser": "babel-eslint", |
4 | | - "plugins": [ |
5 | | - "react", |
6 | | - "jsx-a11y", |
7 | | - "import" |
8 | | - ], |
9 | | - "env": { |
10 | | - "browser": true |
11 | | - }, |
12 | | - "rules": { |
13 | | - "indent": ["error", 4], |
14 | | - "quotes": ["error", "double"], |
15 | | - "max-len": ["error", 350], |
16 | | - "no-unused-vars": ["warn", { "args": "none" }], |
17 | | - "class-methods-use-this": "off", |
18 | | - "jsx-a11y/href-no-hash": "off", |
19 | | - "jsx-a11y/label-has-associated-control": "off", |
20 | | - "camelcase": "error", |
21 | | - "no-return-assign": "off", |
22 | | - "no-noninteractive-element-to-interactive-role": "off", |
23 | | - "no-console": ["error", { "allow": ["log", "error", "warn"] }], |
24 | | - "react/jsx-indent" : ["error", 4], |
25 | | - "react/jsx-indent-props" : ["error", 4], |
26 | | - "import/no-extraneous-dependencies": "off", |
27 | | - "import/prefer-default-export": "off", |
28 | | - "react/destructuring-assignment": "off" |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "module" |
| 5 | + }, |
| 6 | + "plugins": ["@typescript-eslint", "prettier"], |
| 7 | + "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"], |
| 8 | + "rules": { |
| 9 | + "prettier/prettier": "error" |
| 10 | + }, |
| 11 | + "env": { |
| 12 | + "browser": true |
| 13 | + }, |
| 14 | + "settings": { |
| 15 | + "react": { |
| 16 | + "version": "detect" // https://github.com/yannickcr/eslint-plugin-react#configuration |
29 | 17 | } |
| 18 | + } |
30 | 19 | } |
0 commit comments