X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/031093d7711e19a27818e38ee5c8b794392a07c2..c1d4f3cc7f051815cfd4ea372597a94f1621abfa:/config/eslint.js diff --git a/config/eslint.js b/config/eslint.js index a52b1e63f..fac9d555b 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -122,6 +122,18 @@ module.exports = [ "yoda": "error" } }, + { + // Additional configuration for test files + files: ["test/**/*.js"], + languageOptions: { + globals: { + ...globals.mocha, + expect: "readonly", + assert: "readonly", + should: "readonly" + } + } + }, { files: ["config/eslint.js"], languageOptions: {