Permalink
Browse files

config eslint to enforce coding style (airbnb).

  • Loading branch information...
1 parent 51aa972 commit dee1debac7a93d9772aca21436f1dd4fd97f1039 @aaray aaray committed Sep 12, 2016
Showing with 16 additions and 31 deletions.
  1. +9 −27 .eslintrc.json
  2. +7 −4 package.json
View
@@ -1,28 +1,10 @@
{
- "ecmaVersion": 7,
- "plugins": [
- "react",
- "react-native"
- ],
- "extends": ["eslint:recommended", "plugin:react/recommended"],
- "parser": "babel-eslint",
- "parserOptions": {
- "sourceType": "module",
- "ecmaFeatures": {
- "jsx": true,
- "classes": true
- }
- },
- "rules": {
- "react-native/no-unused-styles": 1,
- "no-unused-vars": 1,
- "quotes": ["error", "single"],
- "no-multi-spaces": 1
- },
- "env": {
- "es6": true
- },
- "globals": {
- "module": true
- }
-}
+ "parser": "babel-eslint",
+ "extends": "airbnb",
+ "plugins": [
+ "react",
+ "jsx-a11y",
+ "import",
+ "react-native"
+ ]
+}
View
@@ -29,10 +29,13 @@
"react": ">=15.0.2"
},
"devDependencies": {
- "babel-eslint": "^6.0.4",
- "eslint": "^2.9.0",
- "eslint-plugin-react": "^5.0.1",
- "eslint-plugin-react-native": "^1.0.0"
+ "babel-eslint": "^6.1.2",
+ "eslint": "^3.5.0",
+ "eslint-config-airbnb": "^11.1.0",
+ "eslint-plugin-import": "^1.14.0",
+ "eslint-plugin-jsx-a11y": "^2.2.1",
+ "eslint-plugin-react": "^6.2.0",
+ "eslint-plugin-react-native": "^2.0.0"
},
"rnpm": {
"assets": [

0 comments on commit dee1deb

Please sign in to comment.