Skip to content

Commit

Permalink
tests: turn on eslint
Browse files Browse the repository at this point in the history
I had it off. I guess because it needs a different config (wikimedia/server). This patch sets that up.

Will run autofixes in the next patch. Should be able to get rid of a bunch of rule exceptions by running the autofixes.
  • Loading branch information
NovemLinguae committed Dec 9, 2024
1 parent 6994d0b commit abf7f91
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
scripts/
tests/
lib/
30 changes: 30 additions & 0 deletions tests/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"extends": [
"wikimedia/server"
],
"env": {
"jest": true
},
"root": true,
"rules": {
"array-bracket-spacing": "off",
"computed-property-spacing": "off",
"no-shadow": "off",
"space-in-parens": "off",

"camelcase": "warn",
"comma-dangle": "warn",
"eol-last": "warn",
"new-cap": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"no-trailing-spaces": "warn",
"no-undef": "warn",
"no-useless-escape": "warn",
"no-var": "warn",
"semi": "warn",
"strict": "warn",
"quotes": "warn",
"unicorn/prefer-date-now": "warn"
}
}

0 comments on commit abf7f91

Please sign in to comment.