Skip to content

Commit

Permalink
ci: 去掉无用eslint规则,加上提交自动vue-tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 22, 2022
1 parent e612861 commit 32f2bfe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ module.exports = {
'vue/no-parsing-error': 'off',
'vue/require-default-prop': 'off',
'vue/no-v-html': 'off',
'no-unused-vars': [
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
// we are only using this rule to check for unused arguments since TS
// catches unused variables but not args.
{ varsIgnorePattern: '.*', args: 'none' },
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-undef': 'off', // ts(2304)
'@typescript-eslint/naming-convention': [
'error',
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npx vue-tsc --noEmit
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"build-github": "vite build -m prod --base=/meadmin-template/ && npm run type-check",
"type-check": "vue-tsc --noEmit",
"preview": "vite preview",
"release-main": "vue-tsc --noEmit & release-it -c .release-it-main.json",
"release-template": "vue-tsc --noEmit & release-it",
"release-main": "release-it -c .release-it-main.json",
"release-template": "release-it",
"eslint": "eslint . --cache --ext .vue,.ts,.tsx",
"eslint:fix": "eslint . --ext .vue,.ts,.tsx --fix",
"prettier": "prettier --cache -l \"./**/*\"",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
toFile: 'types/meIconComments.d.ts',
name: 'MeIcon_{{name}}',
template: fs.readFileSync('./template/meIconComments.d.ts', 'utf-8'),
codeTemplates: [{ key: '//code', template: '{{name}}: Icon;\n ' }],
codeTemplates: [{ key: '//code', template: '{{name}}: Icon;\n ' }],
},
{
// pinia module
Expand Down

0 comments on commit 32f2bfe

Please sign in to comment.