-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
33 lines (33 loc) · 1.28 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
{
"extends": "eslint:recommended",
"rules":{
// Best practices
"curly": 2, // never omit curly braces
// Style
"eol-last": 2, // enforce newlines at the end of files
"indent": 2, // specify 4 spaces width for intenting your code
"no-lonely-if": 2, // disallow if as the only statement in an else block
"no-spaced-func": 2, // disallow space between function identifier and application. no: fn (), yes: fn()
"quotes": [2, "single"], // allow only double quotes
"semi": [2, "always"], // semicolons must be used any place where they are valid
"space-before-blocks": 2, // require a space before blocks
"arrow-spacing": 2, // require space before/after arrow function's arrow
"no-var": 2, // require let or const instead of var
"react/jsx-curly-spacing": [2, "always"],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"jsx-quotes": 2,
"react/jsx-uses-react": 2,
"react/no-danger": 2,
"react/no-unknown-property": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": ["react"]
}