Skip to content

Commit 997f9bb

Browse files
renovate[bot]sxzz
andauthored
chore(deps): replace dependency eslint-plugin-node with eslint-plugin-n ^14.0.0 (#378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
1 parent 2050ad3 commit 997f9bb

File tree

5 files changed

+48
-32
lines changed

5 files changed

+48
-32
lines changed

.eslintrc.cjs

+18-18
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = defineConfig({
66
root: true,
77
extends: [
88
'eslint:recommended',
9-
'plugin:node/recommended',
9+
'plugin:n/recommended',
1010
'plugin:@typescript-eslint/recommended',
1111
'plugin:@typescript-eslint/stylistic',
1212
'plugin:regexp/recommended',
@@ -21,7 +21,6 @@ module.exports = defineConfig({
2121
eqeqeq: ['warn', 'always', { null: 'never' }],
2222
'no-debugger': ['error'],
2323
'no-empty': ['warn', { allowEmptyCatch: true }],
24-
'no-process-exit': 'off',
2524
'no-useless-escape': 'off',
2625
'prefer-const': [
2726
'warn',
@@ -30,37 +29,38 @@ module.exports = defineConfig({
3029
},
3130
],
3231

33-
'node/no-missing-import': [
32+
'n/no-process-exit': 'off',
33+
'n/no-missing-import': [
3434
'error',
3535
{
3636
allowModules: ['types', 'estree', 'less', 'sass', 'stylus'],
3737
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts'],
3838
},
3939
],
40-
'node/no-missing-require': [
40+
'n/no-missing-require': [
4141
'error',
4242
{
4343
// for try-catching yarn pnp
4444
allowModules: ['pnpapi', 'vite'],
4545
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts'],
4646
},
4747
],
48-
'node/no-extraneous-import': [
48+
'n/no-extraneous-import': [
4949
'error',
5050
{
5151
allowModules: ['vite', 'less', 'sass', 'vitest'],
5252
},
5353
],
54-
'node/no-extraneous-require': [
54+
'n/no-extraneous-require': [
5555
'error',
5656
{
5757
allowModules: ['vite'],
5858
},
5959
],
60-
'node/no-deprecated-api': 'off',
61-
'node/no-unpublished-import': 'off',
62-
'node/no-unpublished-require': 'off',
63-
'node/no-unsupported-features/es-syntax': 'off',
60+
'n/no-deprecated-api': 'off',
61+
'n/no-unpublished-import': 'off',
62+
'n/no-unpublished-require': 'off',
63+
'n/no-unsupported-features/es-syntax': 'off',
6464

6565
'@typescript-eslint/ban-ts-comment': 'off', // TODO: we should turn this on in a new PR
6666
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR
@@ -119,32 +119,32 @@ module.exports = defineConfig({
119119
{
120120
files: ['*.spec.ts'],
121121
rules: {
122-
'node/no-extraneous-import': 'off',
122+
'n/no-extraneous-import': 'off',
123123
},
124124
},
125125
{
126126
files: ['**/build.config.ts'],
127127
rules: {
128128
'no-undef': 'off',
129-
'node/no-missing-import': 'off',
129+
'n/no-missing-import': 'off',
130130
'@typescript-eslint/explicit-module-boundary-types': 'off',
131131
},
132132
},
133133
{
134134
files: ['playground/**'],
135135
rules: {
136-
'node/no-extraneous-import': 'off',
137-
'node/no-extraneous-require': 'off',
138-
'node/no-missing-import': 'off',
139-
'node/no-missing-require': 'off',
136+
'n/no-extraneous-import': 'off',
137+
'n/no-extraneous-require': 'off',
138+
'n/no-missing-import': 'off',
139+
'n/no-missing-require': 'off',
140140
// engine field doesn't exist in playgrounds
141-
'node/no-unsupported-features/es-builtins': [
141+
'n/no-unsupported-features/es-builtins': [
142142
'error',
143143
{
144144
version: '^18.0.0 || >=20.0.0',
145145
},
146146
],
147-
'node/no-unsupported-features/node-builtins': [
147+
'n/no-unsupported-features/node-builtins': [
148148
'error',
149149
{
150150
version: '^18.0.0 || >=20.0.0',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"eslint": "^8.57.0",
5151
"eslint-define-config": "^2.1.0",
5252
"eslint-plugin-import": "^2.29.1",
53-
"eslint-plugin-node": "^11.1.0",
53+
"eslint-plugin-n": "^14.0.0",
5454
"eslint-plugin-regexp": "^2.3.0",
5555
"execa": "^8.0.1",
5656
"fast-glob": "^3.3.2",

packages/plugin-vue-jsx/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import jsx from '@vue/babel-plugin-jsx'
66
import { createFilter, normalizePath } from 'vite'
77
import type { ComponentOptions } from 'vue'
88
import type { Plugin } from 'vite'
9-
// eslint-disable-next-line node/no-extraneous-import
9+
// eslint-disable-next-line n/no-extraneous-import
1010
import type { CallExpression, Identifier } from '@babel/types'
1111
import type { Options } from './types'
1212

packages/plugin-vue/src/handleHotUpdate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc'
33
import type { HmrContext, ModuleNode } from 'vite'
44
import { isCSSRequest } from 'vite'
55

6-
// eslint-disable-next-line node/no-extraneous-import
6+
// eslint-disable-next-line n/no-extraneous-import
77
import type * as t from '@babel/types'
88

99
import {

pnpm-lock.yaml

+27-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)