Skip to content

Commit

Permalink
Enabled eslint no-undef rule and set used env types #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Radeonmann committed Jan 15, 2022
1 parent dcb0fbb commit d437122
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"mocha": true
},
"extends": "eslint:recommended", //TODO check for duplicates of recommended in defined rules
"rules": {
// naming
Expand Down Expand Up @@ -41,8 +45,7 @@
"arrow-spacing": "error",
//TODO rules which should probably be enabled in future (set to error in eslint:recommended)
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-undef": "off" // most of the undef are console
"no-useless-escape": "off"
//TODO set spacing rules as I like it ;)
//"space-before-function-paren": ["warn", "never"],
},
Expand Down

0 comments on commit d437122

Please sign in to comment.