File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " js-scroll-effect-module" ,
3- "version" : " 0.13.3 " ,
3+ "version" : " 0.13.5 " ,
44 "description" : " Add effect at scroll." ,
55 "keywords" : [
66 " scroll" ,
4040 "@babel/register" : " ^7.14.5" ,
4141 "babel-loader" : " ^8.2.2" ,
4242 "browser-sync" : " ^2.27.5" ,
43- "eslint" : " ^7.32 .0" ,
44- "eslint-loader " : " ^2 .1.1 " ,
43+ "eslint" : " ^8.57 .0" ,
44+ "eslint-webpack-plugin " : " ^4 .1.0 " ,
4545 "mocha" : " ^9.0.3" ,
4646 "npm-run-all" : " ^4.1.5" ,
4747 "webpack" : " ^5.48.0" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ if(!env) process.exit(1);
88
99const webpack = require ( 'webpack' ) ;
1010const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
11+ const ESLintPlugin = require ( 'eslint-webpack-plugin' ) ;
1112
1213const webpackPlugEnv = new webpack . EnvironmentPlugin ( {
1314 DEBUG : false ,
@@ -28,12 +29,6 @@ const config = {
2829 } ,
2930 module : {
3031 rules : [
31- {
32- enforce : 'pre' ,
33- test : / \. ( j s ) $ / ,
34- exclude : / n o d e _ m o d u l e s / ,
35- loader : 'eslint-loader' ,
36- } ,
3732 {
3833 test : / \. j s $ / ,
3934 exclude : / n o d e _ m o d u l e s [ / / / ] (? ! ( @ y a m a - d e v ) \/ ) .* / ,
@@ -56,6 +51,11 @@ const config = {
5651 target : [ 'web' , 'es5' ] ,
5752 plugins : [
5853 webpackPlugEnv ,
54+ new ESLintPlugin ( {
55+ cache : true ,
56+ extensions : [ 'js' ] ,
57+ fix : false ,
58+ } ) ,
5959 ] ,
6060 optimization : {
6161 minimizer : [
You can’t perform that action at this time.
0 commit comments