-
Notifications
You must be signed in to change notification settings - Fork 94
/
.eslintrc
42 lines (42 loc) · 993 Bytes
/
.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
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"plugins": [
"react"
],
"globals": {
"__DEV__": true
},
"rules": {
"indent": ["error", 2],
"func-names": ["error", "never"],
"comma-dangle": ["error", "never"],
"linebreak-style": "off",
"no-unused-vars": ["warn", {
"ignoreRestSiblings": true,
"args": "none"
}],
"no-trailing-spaces": "error",
"no-throw-literal": "off",
"no-restricted-syntax": "off",
"no-prototype-builtins": "off",
"no-underscore-dangle": "off",
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-param-reassign": ["error", { "props": false }],
"camelcase": ["error", {properties: "never"}],
"react/forbid-prop-types": "off",
"react/jsx-uses-vars": "error"
}
}