Skip to content

Commit 4d5f40f

Browse files
lobsterkatieAbhiPrasad
authored andcommitted
fix(build): Strip eslint-enable comments in rollup plugin (#5112)
The `removeESLintCommentsPlugin` rollup plugin we use during build strips all comments beginning `eslint-disable`, but misses comments beginning `eslint-enable`. This makes the regex used in that plugin more general, so that it catches all comments beginning with `eslint-`.
1 parent fc5641e commit 4d5f40f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup/plugins/npmPlugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function makeRemoveESLintCommentsPlugin() {
104104
return regexReplace({
105105
patterns: [
106106
{
107-
test: /\/[/*] eslint-disable.*\n/g,
107+
test: /\/[/*] eslint-.*\n/g,
108108
replace: '',
109109
},
110110
],

0 commit comments

Comments
 (0)