diff --git a/eslint.config.js b/eslint.config.js index dbd11b8..4c3bbf8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -4,10 +4,16 @@ import tseslint from 'typescript-eslint'; import pluginReact from 'eslint-plugin-react'; export default [ - { rules: { 'react/react-in-jsx-scope': 'off' } }, - { files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] }, - { files: ['**/*.js'], languageOptions: { sourceType: 'script' } }, - { languageOptions: { globals: globals.browser } }, + { + files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'], + languageOptions: { + sourceType: 'module', + globals: globals.browser, + }, + rules: { + 'react/react-in-jsx-scope': 'off', + }, + }, pluginJs.configs.recommended, ...tseslint.configs.recommended, pluginReact.configs.flat.recommended,