File tree 5 files changed +41
-0
lines changed
5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = defineConfig({
10
10
'plugin:@typescript-eslint/recommended' ,
11
11
'plugin:regexp/recommended' ,
12
12
] ,
13
+ ignorePatterns : [ 'packages/create-vite/template-**' ] ,
13
14
plugins : [ 'import' , 'regexp' ] ,
14
15
parser : '@typescript-eslint/parser' ,
15
16
parserOptions : {
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ env : { browser : true , es2020 : true } ,
3
+ extends : [
4
+ 'eslint:recommended' ,
5
+ 'plugin:@typescript-eslint/recommended' ,
6
+ 'plugin:react-hooks/recommended' ,
7
+ ] ,
8
+ parser : '@typescript-eslint/parser' ,
9
+ parserOptions : { ecmaVersion : 'latest' , sourceType : 'module' } ,
10
+ plugins : [ 'react-refresh' ] ,
11
+ rules : {
12
+ 'react-refresh/only-export-components' : 'warn' ,
13
+ } ,
14
+ }
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"dev" : " vite" ,
8
8
"build" : " tsc && vite build" ,
9
+ "lint" : " eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
9
10
"preview" : " vite preview"
10
11
},
11
12
"dependencies" : {
15
16
"devDependencies" : {
16
17
"@types/react" : " ^18.0.28" ,
17
18
"@types/react-dom" : " ^18.0.11" ,
19
+ "@typescript-eslint/eslint-plugin" : " ^5.57.1" ,
20
+ "@typescript-eslint/parser" : " ^5.57.1" ,
18
21
"@vitejs/plugin-react" : " ^4.0.0-beta.0" ,
22
+ "eslint" : " ^8.38.0" ,
23
+ "eslint-plugin-react-hooks" : " ^4.6.0" ,
24
+ "eslint-plugin-react-refresh" : " ^0.3.4" ,
19
25
"typescript" : " ^5.0.2" ,
20
26
"vite" : " ^4.3.0-beta.2"
21
27
}
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ env : { browser : true , es2020 : true } ,
3
+ extends : [
4
+ 'eslint:recommended' ,
5
+ 'plugin:react/recommended' ,
6
+ 'plugin:react/jsx-runtime' ,
7
+ 'plugin:react-hooks/recommended' ,
8
+ ] ,
9
+ parserOptions : { ecmaVersion : 'latest' , sourceType : 'module' } ,
10
+ settings : { react : { version : '18.2' } } ,
11
+ plugins : [ 'react-refresh' ] ,
12
+ rules : {
13
+ 'react-refresh/only-export-components' : 'warn' ,
14
+ } ,
15
+ }
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"dev" : " vite" ,
8
8
"build" : " vite build" ,
9
+ "lint" : " eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0" ,
9
10
"preview" : " vite preview"
10
11
},
11
12
"dependencies" : {
16
17
"@types/react" : " ^18.0.28" ,
17
18
"@types/react-dom" : " ^18.0.11" ,
18
19
"@vitejs/plugin-react" : " ^4.0.0-beta.0" ,
20
+ "eslint" : " ^8.38.0" ,
21
+ "eslint-plugin-react" : " ^7.32.2" ,
22
+ "eslint-plugin-react-hooks" : " ^4.6.0" ,
23
+ "eslint-plugin-react-refresh" : " ^0.3.4" ,
19
24
"vite" : " ^4.3.0-beta.2"
20
25
}
21
26
}
You can’t perform that action at this time.
0 commit comments