conf: eslint报错问题

environments/test/deployments/1
saatana 4 years ago
parent 441bccb5c9
commit 1a193821d1

2
.gitignore vendored

@ -1,4 +1,4 @@
.elintchache
.eslintcache
node_modules
dist
*.local

@ -39,6 +39,7 @@
"@vitejs/plugin-legacy": "^1.7.1",
"@vitejs/plugin-vue": "^2.2.0",
"@vitejs/plugin-vue-jsx": "^1.3.8",
"airbnb": "^0.0.2",
"consola": "^2.15.3",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",

@ -1,4 +1,3 @@
import { UserConfigExport, ConfigEnv } from 'vite';
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
@ -13,7 +12,7 @@ import removeConsole from 'vite-plugin-remove-console';
import legacy from '@vitejs/plugin-legacy';
import eslintPlugin from '@nabla/vite-plugin-eslint';
export default ({ command, mode }: ConfigEnv): UserConfigExport => {
export default ({ command, mode }) => {
console.info('command', command);
console.info('mode', mode);
return {
Loading…
Cancel
Save