From b17c91b359b25a1d241c629be064a3a2df8f6797 Mon Sep 17 00:00:00 2001 From: Alex Sanders Date: Wed, 28 Aug 2024 12:53:04 +0100 Subject: [PATCH] remove old eslint root config --- .eslintrc.cjs | 64 --------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 .eslintrc.cjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index e1be613132..0000000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,64 +0,0 @@ -// This is repo-wide base config for eslint. It's not used directly by any -// project, but is extended by each project's own eslint config. - -module.exports = { - root: true, - // disable eslint on all files by default, for perf reasons - // re-enabled in each projects own eslint config (ignorePatterns: ['!**/*']) - ignorePatterns: ['**/*'], - parser: '@typescript-eslint/parser', - parserOptions: { - sourceType: 'module', - ecmaVersion: 2020, - }, - overrides: [ - { - files: ['*.js', '*.jsx', '*.mjs', '*.cjs'], - extends: ['@guardian/eslint-config'], - }, - { - files: ['*.ts', '*.tsx', '*.mts', '*.cts', '*.d.ts'], - extends: ['@guardian/eslint-config-typescript'], - settings: { - 'import/resolver': { - typescript: { - project: 'tsconfig.base.json', - }, - }, - }, - }, - { - files: ['.lintstagedrc.js'], - rules: { - 'import/no-default-export': 'off', - }, - }, - { - files: ['rollup.config.js'], - rules: { - 'import/no-default-export': 'off', - }, - }, - { - files: ['*.stories.*'], - rules: { - // stories require default exports - 'import/no-default-export': 'off', - }, - }, - ], - rules: { - 'react/no-unknown-property': ['error', { ignore: ['css'] }], - }, - extends: [ - 'plugin:storybook/recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - 'plugin:react-hooks/recommended', - ], - settings: { - react: { - version: 'detect', - }, - }, -};