File tree 3 files changed +27
-1
lines changed
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ module.exports = {
30
30
'vue/v-bind-style' : 'warn' ,
31
31
'vue/v-on-event-hyphenation' : [
32
32
'warn' ,
33
+ 'always' ,
33
34
{
34
35
autofix : true
35
36
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = {
12
12
categories : [ 'vue3-strongly-recommended' ] ,
13
13
url : 'https://eslint.vuejs.org/rules/v-on-event-hyphenation.html' ,
14
14
defaultOptions : {
15
- vue3 : [ { autofix : true } ]
15
+ vue3 : [ 'always' , { autofix : true } ]
16
16
}
17
17
} ,
18
18
fixable : 'code' ,
Original file line number Diff line number Diff line change
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
+ } )
You can’t perform that action at this time.
0 commit comments