Skip to content

Commit

Permalink
add linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
CheezItMan committed Dec 2, 2020
1 parent e2e6e15 commit 8cca234
Show file tree
Hide file tree
Showing 3 changed files with 1,774 additions and 11 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["plugin:jest/recommended", "eslint:recommended"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["jest"],
"rules": {
"no-unused-vars": "warn",
"no-var": "warn",
"no-console": "off",
"func-names": "off",
"comma-dangle": ["warn", "only-multiline"],
"quotes": [
1,
"single",
{ "allowTemplateLiterals": true, "avoidEscape": true }
],
"camelcase": "error",
"prefer-const": ["warn", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}]
}
}
Loading

0 comments on commit 8cca234

Please sign in to comment.