2023-06-10 15:54:00 +08:00
|
|
|
const baseConfig = require('./.eslintrc.js') // load your project eslint config
|
2023-03-28 20:37:18 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}))
|
|
|
|
]
|
2023-09-15 20:07:39 +08:00
|
|
|
}
|