forked from mozilla/tofino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
39 lines (35 loc) · 945 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"rules": {
"new-cap": ["error", {
"capIsNewExceptions": ["Immutable.List", "Immutable.Map", "Immutable.Record", "Immutable.Set"]
}],
"func-names": ["off"],
"space-before-function-paren": ["error", "never"],
"no-param-reassign": ["off"],
"no-return-assign": ["off"],
"no-use-before-define": ["off"],
"eqeqeq": ["error", "allow-null"],
"lines-around-comment": ["error", {
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": true,
"allowObjectStart": true,
"allowArrayStart": true
}],
"react/jsx-closing-bracket-location": ["error", "after-props"],
"react/prefer-es6-class": ["off"],
}
}