diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..cea20a1 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,16 @@ +module.exports = { + extends: ['@bjerk/eslint-config', 'plugin:jest/recommended'], + plugins: ['jest'], + overrides: [ + { + files: 'jest.config.*', + rules: { + 'import/no-default-export': 'off', + }, + }, + ], + parserOptions: { + project: true, + tsconfigRootDir: __dirname, + }, +}; diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index fcde968..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier', - ], - root: true, - env: { - node: true, - jest: true, - }, - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-use-before-define': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/ban-types': 'off', - }, -};