-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
executable file
·101 lines (101 loc) · 2.52 KB
/
.eslintrc
File metadata and controls
executable file
·101 lines (101 loc) · 2.52 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"extends": [
"standard",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"env": {
"jest": false,
"jasmine": false,
"browser": true
},
"plugins": [
"react",
"import",
"prettier",
"@typescript-eslint",
"react-hooks"
],
"globals": {
"PUSHER_CONFIG": true
},
"rules": {
"curly": ["error", "all"],
"standard/computed-property-even-spacing": "off",
"react/jsx-no-undef": ["error", { "allowGlobals": true }],
"jsx-control-statements/jsx-use-if-tag": "off",
"prefer-const": "error",
"no-var": "error",
"prefer-template": "error",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"index",
"sibling",
"parent",
"internal"
],
"newlines-between": "never"
}
],
"import/no-duplicates": "error",
"import/newline-after-import": "error",
"react/no-access-state-in-setstate": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/jsx-curly-brace-presence": ["error"],
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "off",
"react/display-name": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-extra-semi": "off",
"jsx-control-statements/jsx-jcs-no-undef": "off",
"eslint-plugin/no-import-string": "off"
},
"overrides": [
{
"files": ["**/*.tsx"],
"rules": {
"react/prop-types": "off"
}
}
],
"ignorePatterns": [
"tools",
"webpack.config.js",
"node_modules/",
"webpack.config.common.js",
"webpack.config.prod.js",
"webpack/",
],
"settings": {
"react": {
"version": "detect"
}
}
}