Skip to content

Commit bc63188

Browse files
committed
🔧 開発環境をアップデート
1 parent 49dba87 commit bc63188

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -40,8 +40,8 @@
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",

webpack.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(!env) process.exit(1);
88

99
const webpack = require('webpack');
1010
const TerserPlugin = require('terser-webpack-plugin');
11+
const ESLintPlugin = require('eslint-webpack-plugin');
1112

1213
const webpackPlugEnv = new webpack.EnvironmentPlugin({
1314
DEBUG: false,
@@ -28,12 +29,6 @@ const config = {
2829
},
2930
module: {
3031
rules: [
31-
{
32-
enforce: 'pre',
33-
test: /\.(js)$/,
34-
exclude: /node_modules/,
35-
loader: 'eslint-loader',
36-
},
3732
{
3833
test: /\.js$/,
3934
exclude: /node_modules[///](?!(@yama-dev)\/).*/,
@@ -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: [

0 commit comments

Comments
 (0)