Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9afbf2b

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

File tree

60 files changed

+994
-998
lines changed

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

‎eslint.config.js

Lines changed: 5 additions & 9 deletions
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 }

‎lib/rules/attribute-hyphenation.js

Lines changed: 1 addition & 1 deletion
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,

‎lib/rules/html-indent.js

Lines changed: 1 addition & 1 deletion
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,

‎lib/rules/no-invalid-model-keys.js

Lines changed: 2 additions & 2 deletions
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) {

‎lib/rules/no-restricted-custom-event.js

Lines changed: 1 addition & 1 deletion
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
)

‎lib/rules/no-undef-properties.js

Lines changed: 3 additions & 3 deletions
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

‎lib/rules/script-indent.js

Lines changed: 1 addition & 1 deletion
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,

‎lib/rules/script-setup-uses-vars.js

Lines changed: 2 additions & 2 deletions
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.

‎lib/rules/v-on-event-hyphenation.js

Lines changed: 1 addition & 1 deletion
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,

‎lib/rules/v-on-function-call.js

Lines changed: 3 additions & 3 deletions
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) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /