import-js/eslint-plugin-import
`dynamic-import-chunkname` does not allow additional comments
オープン
#1,840 opened on 2020/06/29
help wanted
Repository metrics
- Stars
- (5,939 個のスター)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
eslint: v7.3.1
eslint-plugin-import: v2.22.0
Eslint rule:
"rules": {
"import/dynamic-import-chunkname": "error",
}
Code:
import(
/* webpackInclude: /\.json$/ */
/* webpackChunkName: "module" */
"./module.js"
);
Produces error:
1:1 error dynamic imports require a leading comment in the form /* webpackChunkName: "[0-9a-zA-Z-_/.]+",? */ import/dynamic-import-chunkname
Version 2.21.2 works well