Update cluster shim for Bun (again)
[svrjs-mod-starter.git] / eslint.config.js
blob2017a9c645595bafad741367ba53ceb3ef3d5a85
1 const globals = require("globals");
2 const pluginJs = require("@eslint/js");
3 const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
4 const jest = require("eslint-plugin-jest");
6 module.exports = [
7   {
8     files: ["**/*.js"],
9     languageOptions: {
10       sourceType: "commonjs"
11     }
12   },
13   {
14     files: ["tests/*.test.js", "tests/**/*.test.js"],
15     ...jest.configs['flat/recommended'],
16     rules: {
17       ...jest.configs['flat/recommended'].rules,
18       'jest/prefer-expect-assertions': 'off',
19     }
20   },
21   {
22     languageOptions: {
23       globals: {
24         ...globals.node
25       }
26     }
27   },
28   pluginJs.configs.recommended,
29   eslintPluginPrettierRecommended