Skip to content

Commit a315129

Browse files
takaokoujiclaude
andcommitted
fix: resolve lint errors in eslintrc and webpack config
- Remove duplicate 'no-warning-comments' rule in src/.eslintrc.js - Use commonHtmlWebpackPluginOptions in webpack.config.js HtmlWebpackPlugin instances 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e3cb21b commit a315129

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ module.exports = {
2121
'react/jsx-no-literals': 'error',
2222
'no-confusing-arrow': ['error', {
2323
allowParens: true
24-
}],
25-
'no-warning-comments': [0, {
26-
terms: ['todo'],
27-
location: 'start'
2824
}]
2925
},
3026
overrides: [

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@ const buildConfig = baseConfig.clone()
128128
}
129129
})
130130
.addPlugin(new HtmlWebpackPlugin({
131+
...commonHtmlWebpackPluginOptions,
131132
chunks: ['gui'],
132133
template: 'src/playground/index.ejs',
133134
title: 'Smalruby',
134135
originTrials: JSON.parse(fs.readFileSync('origin-trials.json')),
135136
pwa: process.env.NODE_ENV === 'production'
136137
}))
137138
.addPlugin(new HtmlWebpackPlugin({
139+
...commonHtmlWebpackPluginOptions,
138140
chunks: ['gui'],
139141
template: 'src/playground/index.ejs',
140142
filename: 'ja.html',
@@ -143,6 +145,7 @@ const buildConfig = baseConfig.clone()
143145
pwa: process.env.NODE_ENV === 'production'
144146
}))
145147
.addPlugin(new HtmlWebpackPlugin({
148+
...commonHtmlWebpackPluginOptions,
146149
chunks: ['player'],
147150
filename: 'player.html',
148151
template: 'src/playground/index.ejs',

0 commit comments

Comments
 (0)