File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const HTML_ELEMENT_NAMES = new Set(require('./html-elements.json'))
13
13
const SVG_ELEMENT_NAMES = new Set ( require ( './svg-elements.json' ) )
14
14
const VOID_ELEMENT_NAMES = new Set ( require ( './void-elements.json' ) )
15
15
const assert = require ( 'assert' )
16
+ const path = require ( 'path' )
16
17
const vueEslintParser = require ( 'vue-eslint-parser' )
17
18
18
19
/**
@@ -95,11 +96,12 @@ module.exports = {
95
96
return module . exports . defineTemplateBodyVisitor ( context , handlers )
96
97
} ,
97
98
98
- meta : Object . assign (
99
- { } ,
100
- coreRule . meta ,
101
- { docs : Object . assign ( { } , coreRule . meta . docs , { category } ) }
102
- )
99
+ meta : Object . assign ( { } , coreRule . meta , {
100
+ docs : Object . assign ( { } , coreRule . meta . docs , {
101
+ category,
102
+ url : `https://vuejs.github.io/eslint-plugin-vue/rules/${ path . basename ( coreRule . meta . docs . url ) || '' } .html`
103
+ } )
104
+ } )
103
105
}
104
106
} ,
105
107
You can’t perform that action at this time.
0 commit comments