Browse Source

chore: eslint config

main
xingyu 2 years ago
parent
commit
afab7630ec
  1. 1
      .vscode/settings.json
  2. 18
      tsconfig.json

1
.vscode/settings.json vendored

@ -150,6 +150,7 @@
"lintstagedrc", "lintstagedrc",
"logicflow", "logicflow",
"nprogress", "nprogress",
"picocolors",
"pinia", "pinia",
"pnpm", "pnpm",
"qrcode", "qrcode",

18
tsconfig.json

@ -1,29 +1,29 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"lib": ["DOM", "ESNext"],
"jsx": "preserve", "jsx": "preserve",
"experimentalDecorators": true, "lib": ["DOM", "ESNext"],
"noLib": false, "noLib": false,
"experimentalDecorators": true,
"baseUrl": ".",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "node",
"baseUrl": ".",
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"]
}, },
"types": ["vite/client"],
"resolveJsonModule": true, "resolveJsonModule": true,
"types": ["vite/client"],
"allowJs": true, "allowJs": true,
"sourceMap": true,
"removeComments": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"strictFunctionTypes": false, "strictFunctionTypes": false,
"noImplicitAny": false, "noImplicitAny": false,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"removeComments": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true "skipLibCheck": true
}, },
"include": [ "include": [