Skip to content

Commit

Permalink
Add linting with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Feb 3, 2017
1 parent ee28bd0 commit 7c265bb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"blockBindings": true,
"forOf": true
}
},
"rules": {
"no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
"comma-dangle": 0,
"indent": ["error", 4, {SwitchCase: 1}],
"quotes": [2, "double", "avoid-escape"],
"semi": [2, "always"],
"camelcase": [0],
"no-console": [0],
"object-curly-spacing": [0]
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"babel-eslint": "^7.1.1",
"browserify": "^13.1.0",
"esdoc": "^0.4.3",
"eslint": "^3.14.1",
"mocha": "^3.2.0",
"uglifyjs": "^2.4.10"
}
Expand Down

0 comments on commit 7c265bb

Please sign in to comment.