From ab1a90d2bedc07e53663fea6984d5ba7454d78ef Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Tue, 12 Nov 2024 12:32:35 -0700 Subject: [PATCH] Update tackle-box eslint config extension --- packages/tackle-box/eslint.config.js | 28 --------------------------- packages/tackle-box/eslint.config.mjs | 28 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 packages/tackle-box/eslint.config.js create mode 100644 packages/tackle-box/eslint.config.mjs diff --git a/packages/tackle-box/eslint.config.js b/packages/tackle-box/eslint.config.js deleted file mode 100644 index 092408a..0000000 --- a/packages/tackle-box/eslint.config.js +++ /dev/null @@ -1,28 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' - -export default tseslint.config( - { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -) diff --git a/packages/tackle-box/eslint.config.mjs b/packages/tackle-box/eslint.config.mjs new file mode 100644 index 0000000..79a552e --- /dev/null +++ b/packages/tackle-box/eslint.config.mjs @@ -0,0 +1,28 @@ +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import tseslint from "typescript-eslint"; + +export default tseslint.config( + { ignores: ["dist"] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "react-refresh/only-export-components": [ + "warn", + { allowConstantExport: true }, + ], + }, + }, +);