X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f3cb3c6246e6e271761e714cceb081e85a4d245..1a23bfa1ecae74ea47dfb76eadd4e6bc856fed70:/config/eslint.js diff --git a/config/eslint.js b/config/eslint.js index a52b1e63f..b4d0429e4 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -5,7 +5,7 @@ module.exports = [ js.configs.recommended, { languageOptions: { - ecmaVersion: 2015, + ecmaVersion: 2021, sourceType: "script", globals: { ...globals.browser, @@ -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: {