2023-06-10 14:54:45 +08:00
|
|
|
const baseConfig = require('./.eslintrc.js') // load your project eslint config
|
2023-03-24 17:07:29 +08:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
2023-05-25 11:51:00 +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-10-11 18:20:44 +08:00
|
|
|
}
|