From 2a862c59359633ba65bc962bad97a6d6558e3533 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 14 Jul 2023 00:42:14 +0200 Subject: [PATCH] chore: use .eslintrc.cjs --- .eslintrc.cjs | 16 ++++++++++++++++ .eslintrc.js | 26 -------------------------- 2 files changed, 16 insertions(+), 26 deletions(-) create mode 100644 .eslintrc.cjs delete mode 100644 .eslintrc.js 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', - }, -};