forked from googleanalytics/ga-dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
58 lines (58 loc) · 1.47 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true
},
"plugins": [
"react",
"babel"
],
"extends": [
"eslint:recommended"
],
"rules": {
// possible errors
"no-cond-assign": 0,
"no-empty": 0,
// "valid-jsdoc": 1, // TODO(philipwalton): convert to errors.
// best practices
"no-extra-bind": 2,
// style
"comma-spacing": [2, {"before": false, "after": true}],
"eol-last": [0],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"linebreak-style": [2, "unix"],
"max-len": [2, 80],
"no-multiple-empty-lines": [2, {"max": 2}],
"no-unused-vars": [2, {"vars": "all"}],
"no-trailing-spaces": 2,
"object-curly-spacing": [2, "never"],
"quotes": [2, "single"],
// "require-jsdoc": [1, { // TODO(philipwalton): convert to errors.
// "require": {
// "FunctionDeclaration": true,
// "MethodDefinition": false,
// "ClassDeclaration": false
// }
// }],
"semi": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
// es2015
"arrow-spacing": [2, {"before": true, "after": true}],
"no-var": 2,
// react
"react/jsx-key": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/prefer-es6-class": [2, "always"],
// babel
"babel/arrow-parens": [2, "always"]
}
}