Skip to content

Commit

Permalink
Added eslint with airbnb configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom3012 committed Feb 5, 2017
1 parent d7f946a commit 95849f9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,22 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"brace-style": [2, "stroustrup"],
"comma-dangle": "off",
"compat/compat": 1,
"jsx-a11y/no-marquee": 0,
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }]
},
"plugins": [
"compat",
"import",
"jsx-a11y",
"react"
]
}
9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -3,7 +3,14 @@
"version": "0.1.1",
"private": true,
"devDependencies": {
"react-scripts": "0.7.0"
"babel-eslint": "^7.1.1",
"eslint": "^3.15.0",
"eslint-config-airbnb": "^14.0.0",
"eslint-plugin-compat": "^1.0.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.9.0",
"react-scripts": "^0.7.0"
},
"dependencies": {
"material-ui": "^0.16.4",
Expand Down

0 comments on commit 95849f9

Please sign in to comment.