Skip to content

Commit

Permalink
fix(eslint): add import/extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Nov 14, 2024
1 parent e78a489 commit bedcecf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/eslint/configs/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ export function imports(options: ImportsOptions = {}): Config[] {
// https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/export.md
"import/export": "error",

// https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/extensions.md
// https://vite.dev/guide/performance.html#reduce-resolve-operations
"import/extensions": [
"warn",
"ignorePackages",
{ checkTypeImports: true },
],

// https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-mutable-exports.md
"import/no-mutable-exports": "error",

Expand Down

0 comments on commit bedcecf

Please sign in to comment.