Skip to content

Commit

Permalink
Merge pull request #11 from Nullifiers/eslint
Browse files Browse the repository at this point in the history
Add ESLint
  • Loading branch information
rishabhsingh971 authored Aug 22, 2019
2 parents 49b234c + 9c6bd2c commit cba1999
Show file tree
Hide file tree
Showing 5 changed files with 1,573 additions and 9 deletions.
40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"extends": "eslint:recommended",
"globals": {
"chrome": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"class-methods-use-this": "warn",
"consistent-return": "warn",
"curly": [
"error",
"multi-line"
],
"default-case": "error",
"dot-notation": "warn",
"eqeqeq": "error",
"indent": [
"warn",
"tab"
],
"max-len": [
"warn",
{
"code": 100
}
],
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "error"
}
}
Loading

0 comments on commit cba1999

Please sign in to comment.