Skip to content

Commit

Permalink
chore: add eslint and airbnb default config
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarber committed Jun 5, 2018
1 parent 8022b8f commit ce89ce3
Show file tree
Hide file tree
Showing 3 changed files with 623 additions and 17 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"react/jsx-indent": [0],
"import/no-named-as-default": [0],
},
"env": {
"browser": true,
}
};
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
"styled-normalize": "^4.0.0"
},
"devDependencies": {
"babel-eslint": "^8.2.3",
"eslint": "^4.9.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.9.1",
"webpack-dev-server": "2.11.2"
},
"scripts": {
"lint": "./node_modules/.bin/eslint --ext js --ext jsx app/javascript/"
}
}
Loading

0 comments on commit ce89ce3

Please sign in to comment.