X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b0c17047a12eca962fa02146e2a3a70b9bcc916e..bfc8c5f6de1bc79f6d81a28e5c7e10ff300100b8:/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: {