File tree Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 66'use strict'
77
88const plugin = {
9- meta : require ( './meta' ) ,
9+ meta : require ( './meta.ts' ) . default ,
1010 configs : {
1111 // eslintrc configs
1212 base : require ( './configs/base' ) ,
@@ -284,8 +284,8 @@ const plugin = {
284284 'valid-v-text' : require ( './rules/valid-v-text' )
285285 } ,
286286 processors : {
287- '.vue' : require ( './processor' ) ,
288- vue : require ( './processor' )
287+ '.vue' : require ( './processor.ts' ) . default ,
288+ vue : require ( './processor.ts' ) . default
289289 }
290290}
291291
Original file line number Diff line number Diff line change 1- import { name , version } from '../package.json' with { type : 'json' }
1+ import pkg from '../package.json' with { type : 'json' }
22
3- export { name , version }
3+ export default { name : pkg . name , version : pkg . version }
Original file line number Diff line number Diff line change 22 * @author Toru Nagashima <https://github.com/mysticatea>
33 */
44import type { Linter } from 'eslint'
5- import * as meta from './meta'
5+ import meta from './meta.ts '
66
77type LintMessage = Linter . LintMessage
88
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const eslint = new ESLint({
2222 'vue/comment-directive' : 'error' ,
2323 'vue/block-order' : 'error'
2424 } ,
25- processor : require ( '../../../lib/processor' )
25+ processor : require ( '../../../lib/processor.ts' ) . default
2626 } ,
2727 fix : true
2828} )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const eslint = new ESLint({
2424 'vue/no-parsing-error' : 'error' ,
2525 'vue/no-duplicate-attributes' : 'error'
2626 } ,
27- processor : require ( '../../../lib/processor' )
27+ processor : require ( '../../../lib/processor.ts' ) . default
2828 }
2929} )
3030
@@ -370,7 +370,7 @@ describe('comment-directive', () => {
370370 'vue/no-parsing-error' : 'error' ,
371371 'vue/no-duplicate-attributes' : 'error'
372372 } ,
373- processor : require ( '../../../lib/processor' )
373+ processor : require ( '../../../lib/processor.ts' ) . default
374374 }
375375 } )
376376
Original file line number Diff line number Diff line change 2323 "paths" : {
2424 "*" : [" typings/*" ]
2525 },
26- "skipLibCheck" : true
26+ "skipLibCheck" : true ,
27+ "allowImportingTsExtensions" : true
2728 },
2829 "include" : [
2930 " lib/**/*" ,
You can’t perform that action at this time.
0 commit comments