-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
55 lines (55 loc) · 1.68 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
{
"parser": "@babel/eslint-parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"@babel",
"react",
"jsx-a11y",
"import"
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6
},
"rules": {
"max-len": ["error", { "code": 160 }],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"no-unused-vars": 0,
"no-console": 0,
"no-useless-escape": 0,
"prefer-destructuring": 0,
"comma-dangle": ["error", "never"],
"indent": ["error", 2],
"react/no-unescaped-entities": 0,
"react/prop-types": 0,
"react/destructuring-assignment": 0,
"react/jsx-props-no-spreading": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": ["off"],
"class-methods-use-this": 0,
"import/imports-first": 0,
"import/newline-after-import": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-unresolved": 2,
"import/prefer-default-export": 0,
"import/order": ["error"],
"object-curly-newline": ["off", {
"ObjectExpression": {"multiline": true},
"ObjectPattern": {"multiline": true}
}]
}
}