Skip to content

Commit

Permalink
reapply eslint to tests, still supporting jest
Browse files Browse the repository at this point in the history
The full test suite failed because it tried to lint the tests, while the running linter did not do the same. Enabling linting gave errors due to jest having undef stuff, but overriding these files for jest env keeps the linting without these errors.
  • Loading branch information
Gramatus committed Oct 5, 2024
1 parent 444cefe commit b4ea065
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@
},
"rules": {
},
"ignorePatterns": ["test/**/*.js"]
"overrides": [
{
"files": ["test/**/*.js"],
"env": {
"jest": true
}
}
]
}

0 comments on commit b4ea065

Please sign in to comment.