tiny-vue/volar.config.js

15 lines
438 B
JavaScript
Raw Normal View History

2023-05-25 14:26:49 +08:00
const baseConfig = require('./.eslintrc.cjs') // load your project eslint config
module.exports = {
plugins: [
2023-05-25 14:26:49 +08:00
require('@volar-plugins/eslint').default((program) => ({
...baseConfig,
ignorePatterns: ['**/*.vue.*'], // ignore virtual files: *.vue.ts, *.vue.html, *.vue.css
parserOptions: {
...baseConfig.parserOptions,
programs: [program] // replace eslint typescript program
}
}))
]
}