Skip to content

Commit 9afbf2b

Browse files
authored
Update development dependencies (#2478)
1 parent ab88141 commit 9afbf2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+994
-998
lines changed

Diff for: eslint.config.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
'use strict'
22

33
const globals = require('globals')
4-
const { FlatCompat } = require('@eslint/eslintrc')
54
const eslintPluginEslintPlugin = require('eslint-plugin-eslint-plugin/configs/all')
5+
const eslintPluginJsonc = require('eslint-plugin-jsonc')
6+
const eslintPluginNodeDependencies = require('eslint-plugin-node-dependencies')
67
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended')
78
const eslintPluginUnicorn = require('eslint-plugin-unicorn')
89

9-
const eslintrc = new FlatCompat({
10-
baseDirectory: __dirname
11-
})
12-
1310
module.exports = [
1411
{
1512
ignores: [
@@ -30,10 +27,8 @@ module.exports = [
3027
},
3128
eslintPluginEslintPlugin,
3229
eslintPluginUnicorn.configs['flat/recommended'],
33-
...eslintrc.extends(
34-
'plugin:node-dependencies/recommended',
35-
'plugin:jsonc/recommended-with-jsonc'
36-
),
30+
...eslintPluginNodeDependencies.configs['flat/recommended'],
31+
...eslintPluginJsonc.configs['flat/recommended-with-jsonc'],
3732
eslintPluginPrettierRecommended,
3833
{
3934
plugins: {
@@ -144,6 +139,7 @@ module.exports = [
144139
'prefer-const': 2,
145140

146141
'prettier/prettier': 'error',
142+
'eslint-plugin/require-meta-docs-recommended': 'off', // use `categories` instead
147143
'eslint-plugin/require-meta-fixable': [
148144
'error',
149145
{ catchNoFixerButFixableProperty: true }

Diff for: lib/rules/attribute-hyphenation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
allOf: [
5252
{ type: 'string' },
5353
{ not: { type: 'string', pattern: ':exit$' } },
54-
{ not: { type: 'string', pattern: '^\\s*$' } }
54+
{ not: { type: 'string', pattern: String.raw`^\s*$` } }
5555
]
5656
},
5757
uniqueItems: true,

Diff for: lib/rules/html-indent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262
allOf: [
6363
{ type: 'string' },
6464
{ not: { type: 'string', pattern: ':exit$' } },
65-
{ not: { type: 'string', pattern: '^\\s*$' } }
65+
{ not: { type: 'string', pattern: String.raw`^\s*$` } }
6666
]
6767
},
6868
uniqueItems: true,

Diff for: lib/rules/no-invalid-model-keys.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module.exports = {
1313
categories: undefined,
1414
url: 'https://eslint.vuejs.org/rules/no-invalid-model-keys.html'
1515
},
16-
schema: [],
1716
deprecated: true,
18-
replacedBy: ['valid-model-definition']
17+
replacedBy: ['valid-model-definition'],
18+
schema: []
1919
},
2020
/** @param {RuleContext} context */
2121
create(context) {

Diff for: lib/rules/no-restricted-custom-event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = {
155155
sourceCode.text[nameWithLoc.range[0]]
156156
}${JSON.stringify(option.suggest)
157157
.slice(1, -1)
158-
.replace(/'/gu, "\\'")}${
158+
.replace(/'/gu, String.raw`\'`)}${
159159
sourceCode.text[nameWithLoc.range[1] - 1]
160160
}`
161161
)

Diff for: lib/rules/no-undef-properties.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ module.exports = {
106106
/** @param {RuleContext} context */
107107
create(context) {
108108
const options = context.options[0] || {}
109-
const ignores = /** @type {string[]} */ (options.ignores || ['/^\\$/']).map(
110-
toRegExp
111-
)
109+
const ignores = /** @type {string[]} */ (
110+
options.ignores || [String.raw`/^\$/`]
111+
).map(toRegExp)
112112
const propertyReferenceExtractor = definePropertyReferenceExtractor(context)
113113
const programNode = context.getSourceCode().ast
114114

Diff for: lib/rules/script-indent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
allOf: [
3333
{ type: 'string' },
3434
{ not: { type: 'string', pattern: ':exit$' } },
35-
{ not: { type: 'string', pattern: '^\\s*$' } }
35+
{ not: { type: 'string', pattern: String.raw`^\s*$` } }
3636
]
3737
},
3838
uniqueItems: true,

Diff for: lib/rules/script-setup-uses-vars.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ module.exports = {
2828
categories: undefined,
2929
url: 'https://eslint.vuejs.org/rules/script-setup-uses-vars.html'
3030
},
31-
schema: [],
32-
deprecated: true
31+
deprecated: true,
32+
schema: []
3333
},
3434
/**
3535
* @param {RuleContext} context - The rule context.

Diff for: lib/rules/v-on-event-hyphenation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
allOf: [
3131
{ type: 'string' },
3232
{ not: { type: 'string', pattern: ':exit$' } },
33-
{ not: { type: 'string', pattern: '^\\s*$' } }
33+
{ not: { type: 'string', pattern: String.raw`^\s*$` } }
3434
]
3535
},
3636
uniqueItems: true,

Diff for: lib/rules/v-on-function-call.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ module.exports = {
7171
url: 'https://eslint.vuejs.org/rules/v-on-function-call.html'
7272
},
7373
fixable: 'code',
74+
deprecated: true,
75+
replacedBy: ['v-on-handler-style'],
7476
schema: [
7577
{ enum: ['always', 'never'] },
7678
{
@@ -87,9 +89,7 @@ module.exports = {
8789
always: "Method calls inside of 'v-on' directives must have parentheses.",
8890
never:
8991
"Method calls without arguments inside of 'v-on' directives must not have parentheses."
90-
},
91-
deprecated: true,
92-
replacedBy: ['v-on-handler-style']
92+
}
9393
},
9494
/** @param {RuleContext} context */
9595
create(context) {

Diff for: lib/utils/regexp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const RE_REGEXP_STR = /^\/(.+)\/(.*)$/u
1212
*/
1313
function escape(string) {
1414
return string && RE_HAS_REGEXP_CHAR.test(string)
15-
? string.replace(RE_REGEXP_CHAR, '\\$&')
15+
? string.replace(RE_REGEXP_CHAR, String.raw`\$&`)
1616
: string
1717
}
1818

Diff for: package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"xml-name-validator": "^4.0.0"
6666
},
6767
"devDependencies": {
68-
"@ota-meshi/site-kit-eslint-editor-vue": "^0.1.2",
69-
"@stylistic/eslint-plugin": "^1.6.1",
68+
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.0",
69+
"@stylistic/eslint-plugin": "^2.2.2",
7070
"@types/eslint": "^8.56.2",
7171
"@types/eslint-visitor-keys": "^3.3.0",
7272
"@types/natural-compare": "^1.4.3",
@@ -77,21 +77,21 @@
7777
"@typescript-eslint/types": "^7.13.1",
7878
"assert": "^2.1.0",
7979
"env-cmd": "^10.1.0",
80-
"esbuild": "^0.20.0",
80+
"esbuild": "^0.21.5",
8181
"eslint": "^8.56.0",
8282
"eslint-config-prettier": "^9.1.0",
83-
"eslint-plugin-eslint-plugin": "~5.3.0",
83+
"eslint-plugin-eslint-plugin": "~6.1.0",
8484
"eslint-plugin-import": "^2.29.1",
8585
"eslint-plugin-jsonc": "^2.13.0",
86-
"eslint-plugin-node-dependencies": "^0.11.2",
86+
"eslint-plugin-node-dependencies": "^0.12.0",
8787
"eslint-plugin-prettier": "^5.1.3",
88-
"eslint-plugin-unicorn": "^51.0.1",
88+
"eslint-plugin-unicorn": "^54.0.0",
8989
"eslint-plugin-vue": "file:.",
9090
"espree": "^9.6.1",
9191
"events": "^3.3.0",
92-
"markdownlint-cli": "^0.39.0",
92+
"markdownlint-cli": "^0.41.0",
9393
"mocha": "^10.3.0",
94-
"nyc": "^15.1.0",
94+
"nyc": "^17.0.0",
9595
"prettier": "^3.2.5",
9696
"typescript": "^5.3.3",
9797
"vitepress": "^1.0.0-rc.42"

0 commit comments

Comments
 (0)