Skip to content

Commit

Permalink
eslint start over
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Sep 13, 2024
1 parent e7d8c23 commit ae3bad4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact, { rules } from 'eslint-plugin-react';
import pluginReact from 'eslint-plugin-react';

export default [
{ rules: { 'react/react-in-jsx-scope': 'off' } },
Expand All @@ -11,4 +11,16 @@ export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
},
settings: {
react: {
version: 'detect',
},
},
},
{ignores: ['build/', 'dist/assets/index-CnMgUSrV.js', 'node_modules']},
];

0 comments on commit ae3bad4

Please sign in to comment.