Skip to content

Commit

Permalink
enable some eslint rules from eslint-plugin-import-x
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 14, 2024
1 parent bec66e7 commit 0ac334d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ const base = {
'@stylistic/js/yield-star-spacing': [ERROR, 'both'],

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

// node:
// enforce the style of file extensions in `import` declarations
Expand Down

0 comments on commit 0ac334d

Please sign in to comment.