Skip to content

Commit 8d33d93

Browse files
committed
chore: update
1 parent 6c4041b commit 8d33d93

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'use strict'
77

88
const 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

lib/meta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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 }

lib/processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Toru Nagashima <https://github.com/mysticatea>
33
*/
44
import type { Linter } from 'eslint'
5-
import * as meta from './meta'
5+
import meta from './meta.ts'
66

77
type LintMessage = Linter.LintMessage
88

tests/lib/rules/block-order.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

tests/lib/rules/comment-directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"paths": {
2424
"*": ["typings/*"]
2525
},
26-
"skipLibCheck": true
26+
"skipLibCheck": true,
27+
"allowImportingTsExtensions": true
2728
},
2829
"include": [
2930
"lib/**/*",

0 commit comments

Comments
 (0)