-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
95 lines (86 loc) · 2.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"node": true,
"jasmine": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"echmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "lodash"],
"globals": {
"__VERSION__": true
},
"rules": {
// http://eslint.org/docs/rules/block-spacing
"block-spacing": 1,
"brace-style": 1,
"camelcase": 0,
"comma-style": 1,
"complexity": [2, 8],
"curly": 2,
"dot-notation": 1,
"dot-location": [1, "property"],
"eqeqeq": 2,
"indent": 0,
// http://eslint.org/docs/rules/key-spacing
"key-spacing": 1,
"max-depth": [2, 2],
// http://eslint.org/docs/rules/max-len
"max-len": [1, 140, 2],
"max-nested-callbacks": [1, 4],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": 1,
"no-use-before-define": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-unused-expressions": 2,
"no-lonely-if": 1,
"no-nested-ternary": 1,
"no-unneeded-ternary": 1,
"quotes": [2, "single"],
"space-before-blocks": 1,
"space-before-function-paren": 1,
// react specific rules
"react/jsx-pascal-case": 1,
"react/jsx-no-bind": 2,
"react/no-unknown-property": 2,
"react/no-multi-comp": 2,
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
"react/prefer-es6-class": 2,
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
"react/self-closing-comp": 1,
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
"react/sort-comp": 1,
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/wrap-multilines.md
"react/wrap-multilines": 1,
// lodash specific rules
"lodash/callback-binding": 2,
"lodash/unwrap": 2,
"lodash/no-double-unwrap": 2,
"lodash/collection-return": 2,
"lodash/no-extra-args": 2,
"lodash/no-single-chain": 2,
"lodash/prop-shorthand": 1,
"lodash/matches-prop-shorthand": 1,
"lodash/identity-shorthand": 1,
"lodash/preferred-alias": 1,
"lodash/prefer-map": 1,
"lodash/prefer-reject": 1,
"lodash/prefer-filter": 1,
"lodash/prefer-compact": 1,
"lodash/prefer-constant": 1,
"lodash/prefer-is-nil": 1,
"lodash/prefer-startswith": 1,
"lodash/prefer-chain": 1,
"lodash/prefer-matches": 1,
"lodash/prefer-times": 1
}
}