X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d39533cd50d4b25ef5cc5e39fd79ee91c02ecc23..b8247478f4f772df8d09a29f3acd383fc6d32cf0:/config/eslint.js?ds=sidebyside 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: {