Skip to content

Commit 0112430

Browse files
Migrate to newer Typescript version ✔ (#174)
* Bring packages up to date * Migrate to newest typescript and eslint * Adjust files to new linter * Override cross-spawn dependency
1 parent 09d7092 commit 0112430

39 files changed

+2049
-2347
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ coverage
1818
/cypress/screenshots/
1919

2020
# Editor directories and files
21-
.vscode
22-
.vscode/*
23-
!.vscode/extensions.json
2421
.idea
2522
*.suo
2623
*.ntvs*

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig",
6+
"esbenp.prettier-vscode"
7+
]
8+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"explorer.fileNesting.enabled": true,
3+
"explorer.fileNesting.patterns": {
4+
"tsconfig.json": "tsconfig.*.json, env.d.ts",
5+
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6+
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
7+
},
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
}

eslint.config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import pluginVue from 'eslint-plugin-vue'
2+
import {
3+
defineConfigWithVueTs,
4+
vueTsConfigs
5+
} from '@vue/eslint-config-typescript'
6+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
7+
8+
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
9+
// import { configureVueProject } from '@vue/eslint-config-typescript'
10+
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
11+
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
12+
13+
export default defineConfigWithVueTs(
14+
{
15+
name: 'app/files-to-lint',
16+
files: ['**/*.{ts,mts,tsx,vue}']
17+
},
18+
19+
{
20+
name: 'app/files-to-ignore',
21+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/venv/**']
22+
},
23+
24+
pluginVue.configs['flat/essential'],
25+
vueTsConfigs.recommended,
26+
skipFormatting,
27+
{
28+
rules: {
29+
"@typescript-eslint/no-explicit-any": "off"
30+
}
31+
}
32+
)

0 commit comments

Comments
 (0)