Skip to content

Commit 7de8d86

Browse files
Mihai PlamadealaLwveMike
Mihai Plamadeala
authored andcommitted
fix(lint): fix json lint errors
1 parent cda0009 commit 7de8d86

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

example/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "example",
3-
"private": true,
4-
"version": "0.0.0",
53
"type": "module",
4+
"version": "0.0.0",
5+
"private": true,
66
"scripts": {
77
"dev": "vite",
88
"build": "vue-tsc && vite build",

example/tsconfig.json

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4+
"jsx": "preserve",
5+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
46
"useDefineForClassFields": true,
7+
"rootDir": ".",
58
"module": "ESNext",
6-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7-
"skipLibCheck": true,
8-
9-
/* Bundler mode */
109
"moduleResolution": "bundler",
11-
"allowImportingTsExtensions": true,
1210
"resolveJsonModule": true,
13-
"isolatedModules": true,
14-
"noEmit": true,
15-
"jsx": "preserve",
16-
17-
/* Linting */
11+
"allowImportingTsExtensions": true,
1812
"strict": true,
13+
"noFallthroughCasesInSwitch": true,
1914
"noUnusedLocals": true,
2015
"noUnusedParameters": true,
21-
"noFallthroughCasesInSwitch": true,
22-
"rootDir": "."
16+
"noEmit": true,
17+
"isolatedModules": true,
18+
"skipLibCheck": true
2319
},
24-
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
20+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
2521
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
"typecheck": "tsc --noEmit",
4747
"prepare": "simple-git-hooks"
4848
},
49+
"peerDependencies": {
50+
"@vue/compiler-core": "3.x",
51+
"vue": "3.x"
52+
},
53+
"optionalDependencies": {
54+
"@vue/compiler-sfc": "^3.3.6"
55+
},
4956
"devDependencies": {
5057
"@antfu/eslint-config": "^1.0.0-beta.22",
5158
"@antfu/ni": "^0.21.8",
@@ -64,13 +71,6 @@
6471
"vite": "^4.4.11",
6572
"vitest": "^0.34.6"
6673
},
67-
"peerDependencies": {
68-
"@vue/compiler-core": "3.x",
69-
"vue": "3.x"
70-
},
71-
"optionalDependencies": {
72-
"@vue/compiler-sfc": "^3.3.6"
73-
},
7474
"simple-git-hooks": {
7575
"pre-commit": "pnpm lint-staged"
7676
},

0 commit comments

Comments
 (0)