Skip to content

Commit

Permalink
Start the using eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kjirou committed Jan 2, 2017
1 parent af9a869 commit de85358
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"comma-dangle": [
"error",
{
"arrays": "only-multiline",
"objects": "only-multiline"
}
],
"no-param-reassign": [
"error",
{
"props": true
}
]
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"browser-sync": "2.18.2",
"browserify": "13.1.1",
"dictify": "1.1.0",
"eslint": "3.12.2",
"espower-loader": "1.2.0",
"fixpack": "2.3.1",
"gulp": "3.9.1",
Expand Down Expand Up @@ -56,6 +57,7 @@
"d": "npm run develop",
"develop": "$(npm bin)/gulp develop",
"jsdoc": "$(npm bin)/jsdoc -c ./jsdoc/conf.json -r -d ./jsdoc/out",
"lint": "$(npm bin)/eslint '{src,test}/**/*.js'",
"s": "npm run serve",
"serve": "$(npm bin)/gulp serve",
"test": "npm run test:fastest",
Expand Down

0 comments on commit de85358

Please sign in to comment.