fix: eslint启动报错

environments/test/deployments/1
向文可 4 years ago
parent 5351cc4587
commit 1779cc8613

@ -89,12 +89,15 @@ export default (configEnv) => {
legacy({ legacy({
targets: ['defaults', 'not IE 11'], targets: ['defaults', 'not IE 11'],
}), }),
eslintPlugin({ {
...eslintPlugin({
eslintOptions: { eslintOptions: {
cache: true, cache: true,
}, },
shouldLint: (path) => /\/src\/[^?]*\.(vue|m?[jt]sx?)$/.test(path), shouldLint: (path) => /\/src\/[^?]*\.(vue|m?[jt]sx?)$/.test(path),
}), }),
enforce: 'post',
},
], ],
css: { css: {
preprocessorOptions: { preprocessorOptions: {

Loading…
Cancel
Save