forked from googleanalytics/ga-dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.16 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"plugins": [
"react",
"babel"
],
"extends": [
"eslint:recommended",
"google"
],
"rules": {
// TODO(philipwalton): it looks like some ES2016+ feature are not
// compatible with the eslint babel parser, so temporarily disabling the
// following jsdoc rules.
"valid-jsdoc": [1, {
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false,
"prefer": {"returns": "return"},
}],
"require-jsdoc": [1, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
},
}],
// React and jQuery use `this`
"no-invalid-this": 0,
// Unset rules conflicting with babel
"generator-star-spacing": 0,
// react
"react/jsx-key": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/prefer-es6-class": [2, "always"],
// babel
"babel/generator-star-spacing": [2, "after"]
}
}