]> git.openstreetmap.org Git - rails.git/blobdiff - config/eslint.js
Merge remote-tracking branch 'upstream/pull/5319'
[rails.git] / config / eslint.js
index a52b1e63f85c28cb2e82557fd635e676a56e1c71..fac9d555b55ebbaf6aec18a9f82454a9edbf58f2 100644 (file)
@@ -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: {