diff --git a/docs/rules/dynamic-import-chunkname.md b/docs/rules/dynamic-import-chunkname.md index e7574dab8c..7d3f5ce660 100644 --- a/docs/rules/dynamic-import-chunkname.md +++ b/docs/rules/dynamic-import-chunkname.md @@ -88,12 +88,13 @@ The following patterns are valid: ); ``` -## `allowEmpty: true` +### `allowEmpty: true` If you want to allow dynamic imports without a webpackChunkName, you can set `allowEmpty: true` in the rule config. This will allow dynamic imports without a leading comment, or with a leading comment that does not contain a webpackChunkName. Given `{"allowEmpty": true}`: + ### valid The following patterns are valid: @@ -106,7 +107,7 @@ import( 'someModule', ); ``` - + ### invalid The following patterns are invalid: