Skip to content

Commit

Permalink
Add ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Spike Brehm committed Aug 25, 2016
1 parent 08b3bcb commit 4a9a8cd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions .eslintrc
@@ -0,0 +1,13 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"prefer-object-spread"
],
"rules": {
"prefer-object-spread/prefer-object-spread": 2,
"react/jsx-filename-extension": 0,
"no-use-before-define": 0,
"no-underscore-dangle": 0
}
}
5 changes: 5 additions & 0 deletions example/.eslintrc
@@ -0,0 +1,5 @@
{
"rules": {
"no-console": 0
}
}
12 changes: 9 additions & 3 deletions package.json
Expand Up @@ -5,7 +5,8 @@
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
"version": "0.7.1",
"scripts": {
"start": "react-native start"
"start": "react-native start",
"lint": "eslint ."
},
"repository": {
"type": "git",
Expand All @@ -25,8 +26,13 @@
"react-native": ">=0.30.0"
},
"devDependencies": {
"react": "15.2.0",
"react-native": "^0.29.2"
"babel-eslint": "^6.1.2",
"eslint": "^3.3.1",
"eslint-config-airbnb": "^10.0.1",
"eslint-plugin-import": "^1.14.0",
"eslint-plugin-jsx-a11y": "^2.1.0",
"eslint-plugin-prefer-object-spread": "^1.1.0",
"eslint-plugin-react": "^6.1.2"
},
"rnpm": {
"android": {
Expand Down

0 comments on commit 4a9a8cd

Please sign in to comment.