-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
109 lines (109 loc) · 2.6 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"no-console": "off",
"no-alert": "off",
"no-unused-vars": 0,
"space-before-function-paren": 0,
"object-curly-spacing": 0,
"react/jsx-space-before-closing": 0,
"arrow-body-style": 0,
"react/jsx-indent": 0,
"linebreak-style": 0,
"react/no-multi-comp": "warn",
"react/forbid-prop-types": "off",
"react/no-typos": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent-props": "off",
"react/prefer-stateless-function": "off",
"react/jsx-closing-bracket-location": "off",
"react/require-extension": "off",
"react/jsx-filename-extension": "off",
"react/self-closing-comp": "off",
"react/jsx-no-target-blank": "warn",
"react/no-find-dom-node": "warn",
"react/no-unused-prop-types": "warn",
"jsx-a11y/anchor-is-valid": "off",
"react/no-array-index-key": "off",
"import/default": "off",
"import/no-duplicates": "off",
"import/named": "off",
"import/namespace": "off",
"import/no-unresolved": "off",
"import/no-named-as-default": "error",
"import/imports-first": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"consistent-return": "off",
"no-param-reassign": "off",
"prefer-template": "warn",
"global-require": "off",
"no-case-declarations": "off",
"no-underscore-dangle": "off",
"react/jsx-tag-spacing": "off",
"function-paren-newline": "off",
"arrow-parens": [
"error", "always"
],
"no-shadow": [
"error", {
"allow": [
"then", "catch", "done"
]
}
],
"max-len": [
"error", 120
],
// use ide formatting
"indent": [
2, 2, {
"SwitchCase": 1
}
],
"quotes": [
2, "single"
],
"new-cap": 0,
"no-prototype-builtins": 0,
"no-restricted-syntax": [
"error", "WithStatement"
],
"no-use-before-define": [
"error", {
"functions": false,
"classes": true
}
]
},
"plugins": [
"react", "import"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolve": {
"moduleDirectory": [
"node_modules", "src"
]
}
},
"globals": {
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"socket": true,
"webpackIsomorphicTools": true
}
}