Skip to content

Commit

Permalink
build(lint): update eslint rules to automatically fix es5 code #54
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Nov 11, 2021
1 parent ad45e44 commit 969ce6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
"no-console": [
"error"
],
"no-var": [
"error"
],
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-unused-vars": [
"error",
{
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"pretest": "./node_modules/.bin/eslint lib test index.js",
"test": "NODE_ENV=test ./node_modules/.bin/mocha 'test/**/*_test.js'",
"test-debug": "NODE_ENV=test ./node_modules/.bin/mocha --inspect --debug-brk 'test/**/*_test.js'",
"test:coverage": "NODE_ENV=test nyc --reporter=html --reporter=text ./node_modules/.bin/mocha 'test/**/*_test.js'"
"test:coverage": "NODE_ENV=test nyc --reporter=html --reporter=text ./node_modules/.bin/mocha 'test/**/*_test.js'",
"lint": "npx eslint .",
"lint:fix": "npx eslint . --fix"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 969ce6a

Please sign in to comment.