Skip to content

docs: ✏️ 修改CommonJS方式的用法问题 #3

docs: ✏️ 修改CommonJS方式的用法问题

docs: ✏️ 修改CommonJS方式的用法问题 #3

Re-run triggered May 13, 2025 08:28
Status Failure
Total duration 23s
Artifacts

unit-test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: src/index.ts#L14
Unnecessary escape character: \"
lint: src/index.ts#L14
Useless identity escapes with non-syntax characters are forbidden
lint: src/index.ts#L14
Unnecessary escape character: \'
lint: src/index.ts#L14
Unnecessary escape character: \'
lint: src/index.ts#L14
Useless identity escapes with non-syntax characters are forbidden
lint: src/index.ts#L14
Unnecessary escape character: \"
lint: src/index.ts#L14
Unnecessary escape character: \"
lint: src/index.ts#L14
Useless identity escapes with non-syntax characters are forbidden
lint: src/index.ts#L14
Unnecessary escape character: \'
lint: src/index.ts#L14
Unnecessary escape character: \'
lint: src/index.ts#L27
Insert `··`
lint: src/index.ts#L26
Insert `··`
lint: src/index.ts#L25
Replace `this.pluginName,` with `⏎······this.pluginName,⏎·····`
lint: src/index.ts#L20
Replace `"Webpack5RemoveUseStrictPlugin";` with `'Webpack5RemoveUseStrictPlugin'`
lint: src/index.ts#L17
Delete `;`
lint: src/index.ts#L14
Delete `;`
lint: src/index.ts#L14
The 'm' flag is unnecessary because the pattern does not contain start (^) or end ($) assertions
lint: src/index.ts#L11
Expected "sources" to come before "WebpackPluginInstance"
lint: src/index.ts#L11
Expected "Compilation" to come before "Compiler"
lint: src/index.ts#L11
Replace `·Compiler,·Compilation,·WebpackPluginInstance,·sources·}·from·'webpack';` with `⏎··Compiler,⏎··Compilation,⏎··WebpackPluginInstance,⏎··sources,⏎}·from·'webpack'`