X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/40da695cfd1a3b35539bc061146dbde12bb6eca7..216e2493edde7d9601fdb508a8835b93ec9d3c25:/config/eslint.js?ds=inline 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: {