-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
92 lines (92 loc) · 2.26 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
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"react": {
"version": 16.8
}
},
"globals": {
"beforeAll": true,
"describe": true,
"expect": true,
"it": true
},
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/display-name": "off",
"array-bracket-spacing": ["error", "always", {
"objectsInArrays": false
}],
"comma-dangle": [1, "always-multiline"],
"comma-spacing": ["error", {
"after": true
}],
"comma-style": "error",
"camelcase": "error",
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": "error",
"indent": ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 0,
"ImportDeclaration": 1,
"ObjectExpression": 1
}],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["warn", "unix"],
"max-len": ["error", 150],
"new-cap": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-console": "warn",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"no-trailing-spaces": "error",
"no-use-before-define": ["error", {
"functions": false
}],
"no-undef": "error",
"no-var": "error",
"no-with": "error",
"object-shorthand": "error",
"object-curly-spacing": ["error", "always", {
"objectsInObjects": false,
"arraysInObjects": false
}],
"one-var": ["error", "never"],
"padding-line-between-statements": ["error", {
"blankLine": "always",
"prev": "block-like",
"next": "*"
}],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"semi": ["error", "always"],
"space-in-parens": "error",
"space-infix-ops": "error",
"wrap-iife": "error",
"yoda": ["error", "never"],
"jsx-a11y/href-no-hash": "off"
}
}