Skip to content

Commit a716e7f

Browse files
author
issayah
committed
Fixed issues revolving around broken scripts.
1 parent 5b2c0b0 commit a716e7f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ module.exports = {
1212
'@vue/typescript/recommended',
1313
'prettier',
1414
],
15+
plugins: ['prettier'],
1516
parserOptions: {
1617
ecmaVersion: 2021,
1718
},
1819
rules: {
20+
'prettier/prettier': ['warn', {endOfLine: 'auto'}],
1921
'no-alert': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2022
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2123
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"scripts": {
2929
"audit": "improved-yarn-audit --ignore-dev-deps --min-severity moderate",
3030
"dev": "vite",
31-
"build": "vite build",
31+
"build": "vue-tsc --noEmit && vite build",
3232
"serve": "vite preview",
3333
"docs:dev": "npm exec --workspace=docs vuepress dev docs",
3434
"docs:build": "npm exec --workspace=docs vuepress build .",
@@ -38,7 +38,6 @@
3838
"test": "npm run test:lint && npm run test:unit",
3939
"test:lint": "npm run lint",
4040
"test:unit": "vitest",
41-
"prepare": "husky install && vite build",
4241
"publish": "npm publish --tag develop",
4342
"release": "standard-version"
4443
},
@@ -61,6 +60,7 @@
6160
"@vue/test-utils": "^2.0.0-rc.14",
6261
"eslint": "8.x.x",
6362
"eslint-config-prettier": "8.x.x",
63+
"eslint-plugin-prettier": "^4.0.0",
6464
"eslint-plugin-vue": "8.x.x",
6565
"husky": "^7.0.2",
6666
"improved-yarn-audit": "3.x.x",
@@ -75,7 +75,8 @@
7575
"vite-plugin-dts": "1.x.x",
7676
"vitest": "^0.10.4",
7777
"vue": "3.x.x",
78-
"vue-router": "4.x.x"
78+
"vue-router": "4.x.x",
79+
"vue-tsc": "^0.37.2"
7980
},
8081
"repository": {
8182
"type": "git",

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
"allowSyntheticDefaultImports": true,
1212
"sourceMap": true,
1313
"baseUrl": ".",
14-
"types": ["vitest/globals", "@vuepress/client/types"],
14+
"types": ["vitest/globals", "@vuepress/client/types", "vite/client"],
1515
"paths": {},
1616
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
1717
},
1818
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
19-
"exclude": ["node_modules"]
19+
"exclude": ["node_modules"],
20+
"vueCompilerOptions": {
21+
"experimentalSuppressInvalidJsxElementTypeErrors": true
22+
}
2023
}

0 commit comments

Comments
 (0)