-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
51 lines (36 loc) · 1.82 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
{
// http://eslint.org/docs/rules/
"env": {
"node": true, // Node.js global variables and Node.js-specific rules.
"mocha": true, // adds all of the Mocha testing global variables.
"es6": true // enable all ECMAScript 6 features except for modules.
},
"globals": {
},
"plugins": [
"react"
],
"rules": {
// Possible Errors
"no-extra-semi": 1, // disallow unnecessary semicolons
"no-inner-declarations": 2, // disallow function or variable declarations in nested blocks
// Best Practices
"curly": 2, // specify curly brace conventions for all control statements
"no-eval": 2, // disallow use of eval()
"no-extend-native": 2, // disallow adding to native types
"no-new-wrappers": 2, // disallows creating new instances of String, Number, and Boolean
"no-with": 2, // disallow use of the with statement
// Strict Mode
// Variables
"no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block
// Node.js
// Stylistic Issues
"array-bracket-spacing": [2, "never"], // enforce spacing inside array brackets (off by default)
"indent": 2, // this option sets a specific tab width for your code (off by default)
"no-array-constructor": 2, // disallow use of the Array constructor
"no-mixed-spaces-and-tabs": 2, // disallow mixed spaces and tabs for indentation
"no-new-object": 2, // disallow use of the Object constructor
"object-curly-spacing": [2, "never"], // require or disallow padding inside curly braces (off by default)
"semi": 2, // require or disallow use of semicolons instead of ASI
}
}