-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.11 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"airbnb/hooks"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/jsx-indent": ["warn", 4],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"indent": ["warn", 4],
"react/jsx-filename-extension": ["off"],
"max-len": ["warn", 140],
"no-unused-vars": ["warn"],
"consistent-return": ["warn"],
"camelcase": ["off"],
"no-promise-executor-return": ["off"],
"prefer-promise-reject-errors": ["warn"],
"import/extensions": ["off"],
"@typescript-eslint/ban-ts-comment": "off",
"no-use-before-define": ["off"],
"react/function-component-definition": ["off"],
"react/require-default-props": ["off"]
},
"root": true,
"ignorePatterns": [
"**/dist/*",
"**/rollup.config.js",
"**/vite-env.d.ts",
"docs/**/*"
]
}