-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
50 lines (50 loc) · 1.47 KB
/
.eslintrc
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
47
48
49
50
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"prettier"
],
"env": {
"browser": true,
"jquery": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/no-shadow": ["error", { "ignoreFunctionTypeParameterNameValueShadow": false }],
"arrow-body-style": "error",
"comma-dangle": ["error", "always-multiline"],
"function-call-argument-newline": ["error", "consistent"],
"no-duplicate-imports": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"react/prop-types": "off",
"sort-keys": "off",
"no-shadow": "off"
}
}