Skip to content

Commit

Permalink
chore: improve eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Dec 17, 2023
1 parent 5aa16cf commit f1b4baa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": 0,
"vue/valid-template-root": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"release-major": "standard-version --release-as major --tag-prefix v && pnpm run build",
"release-minor": "standard-version --release-as minor --tag-prefix v && pnpm run build",
"release-patch": "standard-version --release-as patch --tag-prefix v && pnpm run build",
"lint": "eslint --ext .js,.ts,.tsx,.vue",
"lint:fix": "eslint --ext .js,.ts,.tsx,.vue --fix"
"lint": "eslint -f mo --ext .js,.ts,.tsx,.vue ./packages",
"lint:fix": "eslint -f mo --ext .js,.ts,.tsx,.vue --fix ./packages"
},
"dependencies": {
"mitt": "^3.0.0",
Expand All @@ -67,6 +67,7 @@
"deepmerge": "^4.2.2",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0",
"eslint-formatter-mo": "^1.2.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.6.0",
"fast-glob": "^3.2.12",
Expand Down Expand Up @@ -108,17 +109,17 @@
"vue3-bmap-gl"
],
"lint-staged": {
"*.{js,ts?(x)}": [
"eslint"
"**/*.{js,jsx,ts,tsx}": [
"eslint -f mo"
],
"*.vue": [
"eslint"
"**/*.vue": [
"eslint -f mo"
],
"**/*.css": [
"prettier --write"
],
"**/*.md": [
"eslint"
"eslint -f mo"
]
}
}
2 changes: 1 addition & 1 deletion packages/components/overlay/ground-overlay/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script setup lang="ts">
import { nextTick, provide, Ref, watch } from 'vue'
import useParentComponentEffect from '../../../hooks/useParentComponentEffect'
import { bindEvents, Callback, error, callWhenDifferentValue, type Point, warn } from '../../../utils'
import { bindEvents, Callback, callWhenDifferentValue, type Point, warn } from '../../../utils'
export type GroundOverlayUrl =
| string
| HTMLCanvasElement
Expand Down

0 comments on commit f1b4baa

Please sign in to comment.