forked from roderickhsiao/react-in-viewport
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
45 lines (45 loc) · 1.35 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
{
"extends": [
"airbnb"
],
"parser": "babel-eslint",
"rules": {
# We use _ to define private variables and methods in clases
"no-underscore-dangle": 0,
# This seems to be buggy we don't want eslint to check this
"import/no-extraneous-dependencies": 0,
# This is a depricated rule. So we turned off it.
"react/require-extension": 0,
# We can write JSX in anyfile we want.
"react/jsx-filename-extension": 0,
"react/destructuring-assignment": 0,
"react/default-props-match-prop-types": 0,
"react/no-find-dom-node": 0,
"react/jsx-props-no-spreading": 0,
# We don't like this rule.
"arrow-body-style": 0,
# We don't like this rule. We write arrow functions only when we needed.
"prefer-arrow-callback": 0,
# We don't need to write function names always.
"func-names": 0,
# propTypes can be object
"react/forbid-prop-types": 0,
# trailing comma
"comma-dangle": 0,
"react/sort-comp": 0,
"react/prop-types": 0,
"arrow-parens": 0,
"lines-between-class-members": 0,
"class-methods-use-this": 0,
"no-unused-expressions": 0,
"react/no-access-state-in-setstate": 0,
"object-curly-newline": 0,
"react/no-multi-comp": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-wrap-multilines": 0
},
"env": {
"jest": true,
"browser": true
}
}