|
1 | 1 | { |
2 | 2 | "root": true, |
3 | | - "parser": "@typescript-eslint/parser", |
4 | | - "plugins": [ |
5 | | - "@typescript-eslint" |
6 | | - ], |
7 | 3 | "extends": [ |
8 | | - "eslint:recommended", |
9 | | - "plugin:@typescript-eslint/recommended" |
| 4 | + "airbnb", |
| 5 | + "airbnb-typescript" |
10 | 6 | ], |
| 7 | + "parserOptions": { |
| 8 | + "project": "./tsconfig.json" |
| 9 | + }, |
11 | 10 | "env": { |
12 | 11 | "node": true |
13 | 12 | }, |
| 13 | + "settings": { |
| 14 | + "react": { |
| 15 | + "version": "18" |
| 16 | + } |
| 17 | + }, |
14 | 18 | "rules": { |
15 | 19 | "indent": ["error", 2], |
16 | | - "quotes": ["error", "double"], |
| 20 | + "quotes": ["error", "double", { "avoidEscape": true }], |
17 | 21 | "semi": ["error", "always"], |
18 | | - "no-multi-spaces": ["error", { "ignoreEOLComments": true }] |
| 22 | + "no-multi-spaces": ["error", { "ignoreEOLComments": true }], |
| 23 | + "max-len": ["error", { "code": 150 }], |
| 24 | + "no-alert": "off", |
| 25 | + "no-console": "off", |
| 26 | + "implicit-arrow-linebreak": ["off"], |
| 27 | + "react/react-in-jsx-scope": ["off"], |
| 28 | + "react/require-default-props": ["off"], |
| 29 | + "react/function-component-definition": [ |
| 30 | + "error", |
| 31 | + { |
| 32 | + "namedComponents": "arrow-function", |
| 33 | + "unnamedComponents": "arrow-function" |
| 34 | + } |
| 35 | + ], |
| 36 | + "jsx-a11y/no-autofocus": ["off"], |
| 37 | + "jsx-a11y/click-events-have-key-events": ["off"], |
| 38 | + "jsx-a11y/no-static-element-interactions": ["off"], |
| 39 | + "@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true }] |
19 | 40 | } |
20 | 41 | } |
0 commit comments