X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/938037d6a26baecd334944957882c0108d2176e6..82a4548ca878d6c597df4178e81fd4e16da7212e:/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: {