forked from Nike-Inc/react-virtualized-item-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 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
52
53
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"plugin:no-unused-vars-rest/recommended"
],
"env": {
"node": true,
"es6": true,
"mocha": true,
"browser": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"react",
"import",
"flowtype"
],
"rules": {
"no-param-reassign": ["error", { "props": false }],
"react/jsx-uses-vars": 2,
"comma-dangle": ["error", "always-multiline"],
"id-length": [2, {"exceptions": ["e", "i", "t"]}],
"max-len": ["warn", 120],
"no-underscore-dangle": "error",
"import/no-duplicates": 2,
"no-duplicate-imports": 0,
"react/no-unknown-property": 2,
"react/jsx-filename-extension": [2, { "extensions": [".js"] }],
"react/sort-comp": [2, { "order": [
"static-methods",
"props",
"context",
"lifecycle",
"everything-else",
"render"
] }],
"arrow-parens": 0,
"import/no-extraneous-dependencies": 0
},
"globals": {
"__DEV__": false,
"__SERVER__": false,
"__TEST__": false,
"__LOCAL_ORIGIN__": false
}
}