File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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' ,
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