-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
56 lines (49 loc) · 1.48 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
// ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does.
// From here, enable the rules that you care about by changing the 0 to a 1 or 2.
// 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
// See: https://gist.github.com/ghostwords/40936f11091b87987e56
// See: http://eslint.org/docs/rules/
// See: https://github.com/feross/eslint-config-standard
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"env": {
"browser": true, // browser global variables
"node": true, // Node.js global variables and Node.js-specific rules
"mocha": true, // adds all of the Mocha testing global variables
"es6": true // ECMAScript 6
},
"plugins": [
// e.g. "react" (must run `npm install eslint-plugin-react` first)
],
"settings": {
"ecmascript": 7,
"jsx": true
},
"rules": {
"strict": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [1, "always"],
"no-var": 1,
"prefer-const": 1,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"no-console": 1
},
"globals": {
"componentHandler": true
}
}