Skip to content

Commit

Permalink
Update eslint.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elPandaFriki authored Oct 17, 2024
1 parent 6951fbf commit 609b45c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import react from 'eslint-plugin-react'
import reactRefresh from 'react-refresh'
import typescriptEslint from '@typescript/eslint'
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint'
import globals from 'globals'
import typescriptParser from '@typescript-eslint/parser'

export default [
...tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
{
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
...reactPlugin.configs.flat.recommended,
},
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
globals: {
...globals.browser,
...globals.node,
Expand Down Expand Up @@ -39,7 +48,6 @@ export default [
}
},
plugins: {
react,
reactRefresh,
typescriptEslint
},
Expand Down

0 comments on commit 609b45c

Please sign in to comment.