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 1f3111b

Browse files
Fixed broken config of plugin:vue/vue3-strongly-recommended (#2334)
1 parent 1437921 commit 1f3111b

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

‎lib/configs/vue3-strongly-recommended.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = {
3030
'vue/v-bind-style': 'warn',
3131
'vue/v-on-event-hyphenation': [
3232
'warn',
33+
'always',
3334
{
3435
autofix: true
3536
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
categories: ['vue3-strongly-recommended'],
1313
url: 'https://eslint.vuejs.org/rules/v-on-event-hyphenation.html',
1414
defaultOptions: {
15-
vue3: [{ autofix: true }]
15+
vue3: ['always',{ autofix: true }]
1616
}
1717
},
1818
fixable: 'code',

‎tests/lib/configs/configs.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use strict'
2+
3+
const { ESLint } = require('../../eslint-compat')
4+
const plugin = require('../../../lib/index')
5+
6+
describe('configs', () => {
7+
for (const name of Object.keys(plugin.configs)) {
8+
const configName = `plugin:vue/${name}`
9+
const eslint = new ESLint({
10+
overrideConfig: {
11+
extends: [configName]
12+
},
13+
useEslintrc: false,
14+
plugins: { vue: plugin },
15+
fix: true
16+
})
17+
describe(`test for ${configName}`, () => {
18+
it('without error', async () => {
19+
await eslint.lintText('', {
20+
filePath: 'test.vue'
21+
})
22+
})
23+
})
24+
}
25+
})

0 commit comments

Comments
(0)

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