Skip to content

Commit

Permalink
fix: migrate to eslint-plugin-import-x
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 21, 2024
1 parent f4765b1 commit ac0d013
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -278,7 +278,7 @@ Since flat config requires us to explicitly provide the plugin names (instead of

| New Prefix | Original Prefix | Source Plugin |
| ---------- | ---------------------- | ------------------------------------------------------------------------------------------ |
| `import/*` | `i/*` | [eslint-plugin-i](https://github.com/un-es/eslint-plugin-i) |
| `import/*` | `import-x/*` | [eslint-plugin-import-x](https://github.com/un-es/eslint-plugin-import-x) |
| `node/*` | `n/*` | [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) |
| `yaml/*` | `yml/*` | [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) |
| `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -99,7 +99,7 @@
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.1.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-i": "^2.29.1",
"eslint-plugin-import-x": "^0.4.1",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-jsonc": "^2.13.0",
"eslint-plugin-markdown": "^4.0.1",
Expand Down
125 changes: 84 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/plugins.ts
Expand Up @@ -3,7 +3,7 @@

export { default as pluginAntfu } from 'eslint-plugin-antfu'
export { default as pluginComments } from 'eslint-plugin-eslint-comments'
export * as pluginImport from 'eslint-plugin-i'
export * as pluginImport from 'eslint-plugin-import-x'
export { default as pluginNode } from 'eslint-plugin-n'
export { default as pluginUnicorn } from 'eslint-plugin-unicorn'
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports'
Expand Down

0 comments on commit ac0d013

Please sign in to comment.