Skip to content

Commit 8a4ca49

Browse files
committed
chore(eslint): add eslint configuration
1 parent 08312d9 commit 8a4ca49

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.eslintrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaVersion": 6,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"jsx": true
8+
},
9+
"plugins": ["react"],
10+
"extends": ["eslint:recommended", "plugin:react/recommended"]
11+
},
12+
"extends": [
13+
"standard",
14+
"standard-react"
15+
],
16+
"env": {
17+
"browser": true
18+
},
19+
"globals": {
20+
"__DEV__": false
21+
},
22+
"rules": {
23+
"indent": [2, 4],
24+
"generator-star-spacing": 0,
25+
"react/jsx-indent": [0, 4],
26+
"jsx-indent-props": [0, 4],
27+
"react/jsx-curly-spacing": [0, "never"],
28+
"react/jsx-boolean-value": [0, "never"],
29+
"semi": [2, "always"],
30+
"operator-linebreak": [2, "after"],
31+
"no-warning-comments": [1, {
32+
"terms": ["todo", "fixme", "xxx"],
33+
"location": "start"
34+
}]
35+
}
36+
}

0 commit comments

Comments
 (0)