1
+ {
2
+ "parser": "babel-eslint",
3
+ "env": {
4
+ "browser": true,
5
+ "es6": true,
6
+ "node": true
7
+ },
8
+ "ecmaFeatures": {
9
+ "modules": true
10
+ },
11
+ "rules": {
12
+ "brace-style": [1, "1tbs", {"allowSingleLine": true}],
13
+ "camelcase": 1,
14
+ //"comma-dangle": [1, "never"],
15
+ "comma-spacing": [0, {"before": false, "after": true}],
16
+ "comma-style": [1, "last"],
17
+ "consistent-this": [1, "self"],
18
+ "curly": [2, "multi-line"],
19
+ "eqeqeq": [2, "allow-null"],
20
+ "eol-last": 1,
21
+ "guard-for-in": 0,
22
+ "indent": [1, 2],
23
+ "key-spacing": 0,
24
+ "new-cap": [1, {"capIsNew": false, "newIsCap": true}],
25
+ "new-parens": 0,
26
+ "no-bitwise": 0,
27
+ "no-cond-assign": 1,
28
+ "no-console": 0,
29
+ "no-constant-condition": 1,
30
+ "no-delete-var": 2,
31
+ "no-debugger": 1,
32
+ "no-dupe-keys": 1,
33
+ "no-duplicate-case": 1,
34
+ "no-empty-character-class": 1,
35
+ "no-eval": 1,
36
+ "no-ex-assign": 1,
37
+ "no-extend-native": 1,
38
+ "no-floating-decimal": 1,
39
+ "no-func-assign": 1,
40
+ "no-implied-eval": 1,
41
+ "no-inner-declarations": 1,
42
+ "no-invalid-regexp": 1,
43
+ "no-irregular-whitespace": 1,
44
+ "no-iterator": 1,
45
+ "no-labels": 1,
46
+ "no-lonely-if": 1,
47
+ "no-loop-func": 1,
48
+ "no-mixed-spaces-and-tabs": 1,
49
+ "no-native-reassign": 2,
50
+ "no-negated-in-lhs": 1,
51
+ "no-new-func": 1,
52
+ "no-new-object": 1,
53
+ "no-new-wrappers": 2,
54
+ "no-obj-calls": 1,
55
+ "no-octal": 1,
56
+ "no-plusplus": 0,
57
+ "no-proto": 2,
58
+ "no-redeclare": 1,
59
+ "no-return-assign": 1,
60
+ "no-self-compare": 1,
61
+ "no-sequences": 1,
62
+ "no-script-url": 0,
63
+ "no-shadow": 0,
64
+ "no-spaced-func": 1,
65
+ "no-sparse-arrays": 1,
66
+ "no-throw-literal": 1,
67
+ "no-trailing-spaces": 1,
68
+ "no-unused-vars": [1, {"vars": "all", "args": "none"}],
69
+ "no-undef": 1,
70
+ "no-undefined": 2,
71
+ "no-undef-init": 1,
72
+ "no-underscore-dangle": 0,
73
+ "no-unreachable": 1,
74
+ "no-use-before-define": [1, "nofunc"],
75
+ "no-warning-comments": [0, {"terms": ["todo", "fixme"]}],
76
+ //"no-extra-parens": 1,
77
+ "quotes": [1, "single"],
78
+ "quote-props": [0, "as-needed"],
79
+ "radix": 1,
80
+ "semi": 0,
81
+ //"keyword-spacing": [1, "always"],
82
+ "space-before-blocks": [1, "always"],
83
+ "space-infix-ops": 1,
84
+ //"space-in-brackets": ["error", "always"],
85
+ "space-in-parens": [1, "never"],
86
+ //"space-return-throw-case": 1,
87
+ "space-unary-ops": [1, {"words": true, "nonwords": false}],
88
+ "use-isnan": 1,
89
+ "valid-typeof": 1,
90
+ "vars-on-top": 0, // disabled for now, see github.com/eslint/eslint/issues/2099
91
+ "wrap-iife": [1, "inside"],
92
+ "yoda": 0,
93
+ // Node.js specific
94
+ "handle-callback-err": [1, "^(err|error)$"],
95
+ "no-mixed-requires": 1,
96
+ "no-new-require": 1,
97
+ "no-path-concat": 1,
98
+ // React
99
+ "react/jsx-boolean-value": 1,
100
+ "react/jsx-no-undef": 1,
101
+ //"react/jsx-quotes": 1,
102
+ "react/jsx-sort-props": 0,
103
+ "react/jsx-uses-react": 1,
104
+ "react/jsx-uses-vars": 1,
105
+ //"react/no-did-mount-set-state": 1,
106
+ "react/no-did-update-set-state": 1,
107
+ "react/no-multi-comp": 0,
108
+ "react/no-unknown-property": 1,
109
+ //"react/prop-types": 1,
110
+ "react/react-in-jsx-scope": 1,
111
+ //"react/self-closing-comp": 1,
112
+ "react/jsx-wrap-multilines": 1
113
+ },
114
+ "plugins": [
115
+ "react"
116
+ ]
117
+ }
0 commit comments