1 const globals = require("globals");
2 const pluginJs = require("@eslint/js");
3 const tseslint = require("typescript-eslint");
4 const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
5 const jest = require("eslint-plugin-jest");
7 module.exports = tseslint.config(
11 sourceType: "commonjs"
15 files: ["tests/*.test.js", "tests/**/*.test.js"],
16 ...jest.configs['flat/recommended'],
18 ...jest.configs['flat/recommended'].rules,
19 'jest/prefer-expect-assertions': 'off',
29 pluginJs.configs.recommended,
33 sourceType: "commonjs",
34 parser: tseslint.parser
36 extends: [tseslint.configs.base],
38 "no-redeclare": "off",
39 "no-unused-vars": "off",
40 "@typescript-eslint/no-unused-vars": ["error"],
41 "@typescript-eslint/no-redeclare": [
44 ignoreDeclarationMerge: true
49 eslintPluginPrettierRecommended