1- module . exports = [
1+ import typescriptPlugin from '@typescript-eslint/eslint-plugin' ;
2+ import typescriptParser from '@typescript-eslint/parser' ;
3+ import importPlugin from 'eslint-plugin-import' ;
4+ import prettierPlugin from 'eslint-plugin-prettier' ;
5+ import reactPlugin from 'eslint-plugin-react' ;
6+ import reactHooksPlugin from 'eslint-plugin-react-hooks' ;
7+
8+ export default [
29 {
310 ignores : [
411 'node_modules/**' ,
@@ -14,8 +21,8 @@ module.exports = [
1421 {
1522 files : [ '**/*.{js,jsx,ts,tsx}' ] ,
1623 languageOptions : {
17- parser : require ( '@typescript-eslint/parser' ) ,
18- ecmaVersion : 2021 ,
24+ parser : typescriptParser ,
25+ ecmaVersion : 2023 ,
1926 sourceType : 'module' ,
2027 parserOptions : {
2128 ecmaFeatures : { jsx : true } ,
@@ -29,11 +36,11 @@ module.exports = [
2936 } ,
3037 } ,
3138 plugins : {
32- '@typescript-eslint' : require ( '@typescript-eslint/eslint-plugin' ) ,
33- react : require ( 'eslint-plugin-react' ) ,
34- 'react-hooks' : require ( 'eslint-plugin-react-hooks' ) ,
35- import : require ( 'eslint-plugin-import' ) ,
36- prettier : require ( 'eslint-plugin-prettier' ) ,
39+ '@typescript-eslint' : typescriptPlugin ,
40+ react : reactPlugin ,
41+ 'react-hooks' : reactHooksPlugin ,
42+ import : importPlugin ,
43+ prettier : prettierPlugin ,
3744 } ,
3845 rules : {
3946 'react/react-in-jsx-scope' : 'off' ,
0 commit comments