-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
75 lines (73 loc) · 2.14 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": "error",
"indent": ["error", 2, {
"FunctionDeclaration": { "parameters": "first" }
}],
"eol-last": ["error", "always"],
"object-shorthand": ["error", "always"],
"no-unused-vars": 0,
"no-lonely-if": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"space-before-blocks": "warn",
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"eqeqeq": "warn",
"react/display-name": 0,
"react/prop-types": 0,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"tsdoc/syntax": "warn",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": ["warn", {
"allowArgumentsExplicitlyTypedAsAny": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowedNames": [],
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true
}],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {"delimiter": "semi", "requireLast": true},
"singleline": {"delimiter": "semi", "requireLast": false}
}],
"@typescript-eslint/no-unused-vars": ["warn", {
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
]
}