Skip to content

Commit

Permalink
config eslint to enforce coding style (airbnb).
Browse files Browse the repository at this point in the history
  • Loading branch information
aaray committed Sep 17, 2016
1 parent 51aa972 commit dee1deb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 31 deletions.
36 changes: 9 additions & 27 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit dee1deb

Please sign in to comment.