Skip to content

Commit

Permalink
fix eslint 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Sep 12, 2024
1 parent fe172ee commit 5cc5b21
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5cc5b21

Please sign in to comment.