Skip to content

Commit

Permalink
Merge pull request #25 from hildjj/mocha-all
Browse files Browse the repository at this point in the history
Apply mocha settings to all js-alike files in test, not just .js
  • Loading branch information
hildjj authored Feb 26, 2024
2 parents 3dd6f46 + ac314ad commit 24eef76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flat/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ const globals = require("globals");
const mocha = require("eslint-plugin-mocha");

module.exports = {
files: ["test/**/*.js"],
files: [
"test/**/*.js",
"test/**/*.ts",
"test/**/*.cjs",
"test/**/*.mjs",
],
languageOptions: {
globals: globals.mocha,
},
Expand Down

0 comments on commit 24eef76

Please sign in to comment.