Skip to content

Commit 0ac334d

Browse files
committed
enable some eslint rules from eslint-plugin-import-x
1 parent bec66e7 commit 0ac334d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/eslint/eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ const base = {
425425
'@stylistic/js/yield-star-spacing': [ERROR, 'both'],
426426

427427
// import:
428+
// forbid any invalid exports, i.e. re-export of the same name
429+
'import/export': ERROR,
428430
// ensure all imports appear before other statements
429431
'import/first': ERROR,
430432
// enforce a newline after import statements
@@ -449,6 +451,8 @@ const base = {
449451
'import/no-unresolved': [ERROR, { commonjs: true }],
450452
// forbid useless path segments
451453
'import/no-useless-path-segments': ERROR,
454+
// forbid Webpack loader syntax in imports
455+
'import/no-webpack-loader-syntax': ERROR,
452456

453457
// node:
454458
// enforce the style of file extensions in `import` declarations

0 commit comments

Comments
 (0)