Skip to content

Commit 8ab33a9

Browse files
committed
added eslint
1 parent ab59365 commit 8ab33a9

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.eslintrc

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"ecmaFeatures": {
5+
"jsx": true
6+
},
7+
"plugins": [
8+
"flowtype"
9+
],
10+
"env": {
11+
"es6": true,
12+
"jasmine": true
13+
},
14+
"parserOptions": {
15+
"ecmaFeatures": {
16+
"experimentalObjectRestSpread": true
17+
}
18+
},
19+
"rules": {
20+
"class-methods-use-this": 0,
21+
"no-underscore-dangle": 0,
22+
"no-use-before-define": 0,
23+
"arrow-body-style": 0,
24+
"import/prefer-default-export": 0,
25+
"radix": 0,
26+
"new-cap": 0,
27+
"max-len": 0,
28+
"no-continue": 0,
29+
"no-console": 0,
30+
"global-require": 0,
31+
"import/extensions": 0,
32+
"import/no-unresolved": 0,
33+
"import/no-extraneous-dependencies": 0,
34+
"react/jsx-filename-extension": 0
35+
},
36+
"globals": {
37+
"__DEV__": true,
38+
"window": true
39+
}
40+
}

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
}
5252
},
5353
"devDependencies": {
54+
"babel-eslint": "^7.0.0",
55+
"eslint": "^3.8.1",
56+
"eslint-config-airbnb": "^12.0.0",
57+
"eslint-plugin-flowtype": "^2.20.0",
58+
"eslint-plugin-import": "^2.0.1",
59+
"eslint-plugin-jsx-a11y": "^2.2.3",
60+
"eslint-plugin-react": "^6.4.1",
5461
"babel-jest": "^14.1.0",
5562
"babel-preset-react-native": "^1.9.0",
5663
"cpx": "^1.5.0",

0 commit comments

Comments
 (0)