Skip to content

Commit 31bd8a0

Browse files
committed
feat: switch to eslint-plugin-import-lite, update deps
1 parent 40521a1 commit 31bd8a0

File tree

6 files changed

+2784
-1826
lines changed

6 files changed

+2784
-1826
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-eslint-docs",
3-
"packageManager": "pnpm@10.11.0",
3+
"packageManager": "pnpm@10.12.4",
44
"private": true,
55
"scripts": {
66
"docs:dev": "nuxi dev",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"type": "module",
4-
"packageManager": "pnpm@10.11.0",
4+
"packageManager": "pnpm@10.12.4",
55
"version": "1.4.1",
66
"scripts": {
77
"build": "pnpm run -r build",

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"eslint-config-flat-gitignore": "catalog:prod",
5555
"eslint-flat-config-utils": "catalog:prod",
5656
"eslint-merge-processors": "catalog:prod",
57-
"eslint-plugin-import-x": "catalog:prod",
57+
"eslint-plugin-import-lite": "catalog:prod",
5858
"eslint-plugin-jsdoc": "catalog:prod",
5959
"eslint-plugin-regexp": "catalog:prod",
6060
"eslint-plugin-unicorn": "catalog:prod",

packages/eslint-config/src/configs/import.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pluginImport from 'eslint-plugin-import-x'
1+
import pluginImportLite from 'eslint-plugin-import-lite'
22
import type { Linter } from 'eslint'
33
import type { NuxtESLintConfigOptions } from '../types'
44
import { resolveOptions } from '../utils'
@@ -11,18 +11,17 @@ export default function imports(options: NuxtESLintConfigOptions): Linter.Config
1111
name: 'nuxt/import/rules',
1212
plugins: {
1313
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14-
import: pluginImport as any,
14+
import: pluginImportLite as any,
1515
},
1616
rules: {
17+
'import/consistent-type-specifier-style': ['error', 'top-level'],
1718
'import/first': 'error',
1819
'import/no-duplicates': 'error',
1920
'import/no-mutable-exports': 'error',
2021
'import/no-named-default': 'error',
21-
'import/no-self-import': 'error',
2222

2323
...resolved.features.stylistic
2424
? {
25-
'import/order': 'error',
2625
'import/newline-after-import': ['error', { count: 1 }],
2726
}
2827
: {},

0 commit comments

Comments
 (0)