-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.21 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
{
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb"
],
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-dangle": ["error", { "functions": "ignore" }],
"linebreak-style": ["error", "unix"],
"no-param-reassign": [2, { "props": false }],
"no-tabs": 0,
"max-len": 0,
"arrow-body-style": 0,
"import/order": 0,
"no-use-before-define": 0,
"dot-notation": 0,
"import/no-extraneous-dependencies": 0,
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 1 },
"ObjectPattern": { "multiline": true, "minProperties": 5 },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 4 }
}],
"react/jsx-indent": ["error", "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-closing-bracket-location": [1, "after-props"],
"react/jsx-one-expression-per-line": [1],
"react/prop-types": 0,
"react/no-danger": 0
}
}