File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change
1
+ import globals from 'globals' ;
2
+ import pluginJs from '@eslint/js' ;
3
+
4
+ export default [
5
+ {
6
+ languageOptions : { globals : globals . browser } ,
7
+ } ,
8
+ pluginJs . configs . recommended ,
9
+ ] ;
Original file line number Diff line number Diff line change 11
11
"scripts" : {
12
12
"test" : " echo \" Error: no test specified\" && exit 1" ,
13
13
"start" : " webpack serve --open --config webpack.config.dev.js" ,
14
- "build" : " webpack --config webpack.config.prod.js"
14
+ "lint" : " eslint ./js --fix" ,
15
+ "build" : " npm run lint && webpack --config webpack.config.prod.js"
15
16
},
16
17
"devDependencies" : {
17
- "copy-webpack-plugin" : " ^13.0.0" ,
18
- "html-webpack-plugin" : " ^5.6.3" ,
19
- "webpack" : " ^5.99.9" ,
20
- "webpack-cli" : " ^6.0.1" ,
21
- "webpack-dev-server" : " ^5.2.1" ,
22
- "webpack-merge" : " ^6.0.1"
18
+ "@eslint/js" : " ^9.9.0" ,
19
+ "copy-webpack-plugin" : " ^11.0.0" ,
20
+ "eslint" : " ^8.57.0" ,
21
+ "globals" : " ^15.9.0" ,
22
+ "html-webpack-plugin" : " ^5.6.0" ,
23
+ "webpack" : " ^5.92.1" ,
24
+ "webpack-cli" : " ^5.1.4" ,
25
+ "webpack-dev-server" : " ^5.0.4" ,
26
+ "webpack-merge" : " ^5.10.0"
23
27
}
24
28
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const expectedFilesInDistDir = [
34
34
35
35
'index.html' ,
36
36
37
+ 'eslint.config.mjs' ,
37
38
'js/' ,
38
39
'js/app.js' ,
39
40
'js/vendor/' ,
You can’t perform that action at this time.
0 commit comments