Skip to content

Commit 1e673d0

Browse files
committed
Fix eslint-plugin/meta-property-ordering lint issues
1 parent 6726117 commit 1e673d0

27 files changed

+53
-52
lines changed

eslint-internal-rules/require-eslint-community.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ module.exports = {
88
categories: ['Internal']
99
},
1010
fixable: 'code',
11+
schema: [],
1112
messages: {
1213
useCommunityPackageInstead:
1314
'Please use `@eslint-community/{{name}}` instead.'
14-
},
15-
schema: []
15+
}
1616
},
1717

1818
/** @param {import('eslint').Rule.RuleContext} context */

lib/rules/define-emits-declaration.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ module.exports = {
1515
url: 'https://eslint.vuejs.org/rules/define-emits-declaration.html'
1616
},
1717
fixable: null,
18-
messages: {
19-
hasArg: 'Use type-based declaration instead of runtime declaration.',
20-
hasTypeArg: 'Use runtime declaration instead of type-based declaration.'
21-
},
2218
schema: [
2319
{
2420
enum: ['type-based', 'runtime']
2521
}
26-
]
22+
],
23+
messages: {
24+
hasArg: 'Use type-based declaration instead of runtime declaration.',
25+
hasTypeArg: 'Use runtime declaration instead of type-based declaration.'
26+
}
2727
},
2828
/** @param {RuleContext} context */
2929
create(context) {

lib/rules/define-props-declaration.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ module.exports = {
1515
url: 'https://eslint.vuejs.org/rules/define-props-declaration.html'
1616
},
1717
fixable: null,
18-
messages: {
19-
hasArg: 'Use type-based declaration instead of runtime declaration.',
20-
hasTypeArg: 'Use runtime declaration instead of type-based declaration.'
21-
},
2218
schema: [
2319
{
2420
enum: ['type-based', 'runtime']
2521
}
26-
]
22+
],
23+
messages: {
24+
hasArg: 'Use type-based declaration instead of runtime declaration.',
25+
hasTypeArg: 'Use runtime declaration instead of type-based declaration.'
26+
}
2727
},
2828
/** @param {RuleContext} context */
2929
create(context) {

lib/rules/html-closing-bracket-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = {
5959
categories: ['vue3-strongly-recommended', 'strongly-recommended'],
6060
url: 'https://eslint.vuejs.org/rules/html-closing-bracket-spacing.html'
6161
},
62+
fixable: 'whitespace',
6263
schema: [
6364
{
6465
type: 'object',
@@ -70,7 +71,6 @@ module.exports = {
7071
additionalProperties: false
7172
}
7273
],
73-
fixable: 'whitespace',
7474
messages: {
7575
missing: "Expected a space before '{{bracket}}', but not found.",
7676
unexpected: "Expected no space before '{{bracket}}', but found."

lib/rules/match-component-file-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ function canVerify(node) {
2323

2424
module.exports = {
2525
meta: {
26-
hasSuggestions: true,
2726
type: 'suggestion',
2827
docs: {
2928
description: 'require component name property to match its file name',
3029
categories: undefined,
3130
url: 'https://eslint.vuejs.org/rules/match-component-file-name.html'
3231
},
3332
fixable: null,
33+
hasSuggestions: true,
3434
schema: [
3535
{
3636
type: 'object',

lib/rules/match-component-import-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ function getExpectedNames(identifier) {
1818
module.exports = {
1919
meta: {
2020
type: 'problem',
21-
schema: [],
2221
docs: {
2322
description:
2423
'require the registered component name to match the imported component name',
2524
categories: undefined,
2625
url: 'https://eslint.vuejs.org/rules/match-component-import-name.html'
2726
},
2827
fixable: null,
28+
schema: [],
2929
messages: {
3030
unexpected:
3131
'Component alias {{importedName}} should be one of: {{expectedName}}.'

lib/rules/no-child-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function getLocationRange(nodes) {
7070

7171
module.exports = {
7272
meta: {
73-
hasSuggestions: true,
7473
type: 'problem',
7574
docs: {
7675
description:
@@ -79,6 +78,7 @@ module.exports = {
7978
url: 'https://eslint.vuejs.org/rules/no-child-content.html'
8079
},
8180
fixable: null,
81+
hasSuggestions: true,
8282
schema: [
8383
{
8484
type: 'object',

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ module.exports = {
66
// eslint-disable-next-line eslint-plugin/prefer-message-ids
77
meta: {
88
...baseRule.meta,
9+
// eslint-disable-next-line eslint-plugin/meta-property-ordering
910
type: baseRule.meta.type,
1011
docs: {
1112
description: baseRule.meta.docs.description,
1213
categories: undefined,
1314
url: 'https://eslint.vuejs.org/rules/no-invalid-model-keys.html'
1415
},
16+
schema: [],
1517
deprecated: true,
16-
replacedBy: ['valid-model-definition'],
17-
schema: []
18+
replacedBy: ['valid-model-definition']
1819
},
1920
/** @param {RuleContext} context */
2021
create(context) {

lib/rules/no-potential-component-option-typo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const utils = require('../utils')
88
const vueComponentOptions = require('../utils/vue-component-options.json')
99
module.exports = {
1010
meta: {
11-
hasSuggestions: true,
1211
type: 'suggestion',
1312
docs: {
1413
description: 'disallow a potential typo in your component property',
@@ -17,6 +16,7 @@ module.exports = {
1716
url: 'https://eslint.vuejs.org/rules/no-potential-component-option-typo.html'
1817
},
1918
fixable: null,
19+
hasSuggestions: true,
2020
schema: [
2121
{
2222
type: 'object',

lib/rules/no-required-prop-with-default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const utils = require('../utils')
1414

1515
module.exports = {
1616
meta: {
17-
hasSuggestions: true,
1817
type: 'problem',
1918
docs: {
2019
description: 'enforce props with default values to be optional',
2120
categories: undefined,
2221
url: 'https://eslint.vuejs.org/rules/no-required-prop-with-default.html'
2322
},
2423
fixable: 'code',
24+
hasSuggestions: true,
2525
schema: [
2626
{
2727
type: 'object',

0 commit comments

Comments
 (0)