import globals from "globals";
import pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import jest from "eslint-plugin-jest";
export default [
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs"
}
},
files: ["tests/*.test.js", "tests/**/*.test.js"],
...jest.configs['flat/recommended'],
rules: {
...jest.configs['flat/recommended'].rules,
'jest/prefer-expect-assertions': 'off',
globals: {
...globals.node
pluginJs.configs.recommended,
eslintPluginPrettierRecommended
];