-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
64 lines (64 loc) · 2.36 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"settings": {
"react": {
"version": "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
}
},
"extends": [
"airbnb-typescript",
"plugin:react/recommended",
"plugin:harmony-boilerplate/recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
"sourceType": "module", // Allows for the use of imports
"ecmaFeatures": {
"jsx": true // Allows for the parsing of JSX
}
},
"rules": {
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }],
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["draft"] }],
"max-lines-per-function": ["error", 150],
"max-lines": ["error", { "max": 350 }],
"max-depth": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"react/sort-comp": ["off"],
"react/display-name": ["off"],
"react/prefer-stateless-function": ["off"],
"import/no-named-as-default": ["off"],
"arrow-body-style": ["off"],
"import/order": ["off"],
"func-names": ["off"],
"guard-for-in": ["off"],
"lines-between-class-members": ["off"],
"jsx-a11y/label-has-associated-control": ["off"],
"import/prefer-default-export": "off",
"import/no-default-export": "off",
"react/jsx-one-expression-per-line": ["off"],
"class-methods-use-this": ["off"],
"max-len": ["error", { "code": 220 }],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/no-use-before-define": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"no-trailing-spaces": ["error", { "skipBlankLines": true, "ignoreComments": true }],
"react/jsx-props-no-spreadings": ["off"],
"linebreak-style": 0,
"global-require": 0,
"eslint-linebreak-style": [0, "error", "windows"],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-indent": ["error", "tab"],
"@typescript-eslint/indent": ["error", "tab"],
"comma-dangle": ["error", "only-multiline"],
"no-console": 1
}
}