Skip to content

Commit

Permalink
eslint: fix no-undef in tests
Browse files Browse the repository at this point in the history
manual fixes

basically just hard-code all the existing globals into the "globals" section of .eslintrc.json
  • Loading branch information
NovemLinguae committed Dec 11, 2024
1 parent ad012f7 commit c73a7ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
"env": {
"jest": true
},
"globals": {
"assert": "readonly",
"document": "readonly",
"jQuery": "readonly",
"Morebits": "readonly",
"mw": "readonly",
"Twinkle": "readonly",
"window": "readonly"
},
"root": true,
"rules": {
"array-bracket-spacing": "off",
Expand All @@ -20,7 +29,6 @@
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"no-trailing-spaces": "warn",
"no-undef": "warn",
"no-useless-escape": "warn",
"no-var": "warn",
"semi": "warn",
Expand Down

0 comments on commit c73a7ae

Please sign in to comment.