Skip to content

Commit

Permalink
☂️ fix: sass rules deprecation warnings (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz authored Aug 14, 2024
1 parent 1c0f571 commit f421e7c
Show file tree
Hide file tree
Showing 9 changed files with 1,762 additions and 1,444 deletions.
81 changes: 0 additions & 81 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,84 +174,3 @@ declare module 'vue' {
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
}
}
declare module '@vue/runtime-core' {
interface GlobalComponents {}
interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly _: UnwrapRef<typeof import('lodash-es')>
readonly computed: UnwrapRef<typeof import('vue')['computed']>
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
readonly createLogger: UnwrapRef<typeof import('vuex')['createLogger']>
readonly createNamespacedHelpers: UnwrapRef<typeof import('vuex')['createNamespacedHelpers']>
readonly createRouter: UnwrapRef<typeof import('vue-router')['createRouter']>
readonly createStore: UnwrapRef<typeof import('vuex')['createStore']>
readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']>
readonly createWebHashHistory: UnwrapRef<typeof import('vue-router')['createWebHashHistory']>
readonly createWebHistory: UnwrapRef<typeof import('vue-router')['createWebHistory']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly key: UnwrapRef<typeof import('./src/hooks/useBaseStore')['key']>
readonly mapActions: UnwrapRef<typeof import('vuex')['mapActions']>
readonly mapGetters: UnwrapRef<typeof import('vuex')['mapGetters']>
readonly mapMutations: UnwrapRef<typeof import('vuex')['mapMutations']>
readonly mapState: UnwrapRef<typeof import('vuex')['mapState']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
readonly ref: UnwrapRef<typeof import('vue')['ref']>
readonly render: UnwrapRef<typeof import('vue')['render']>
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
readonly unref: UnwrapRef<typeof import('vue')['unref']>
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
readonly useBaseStore: UnwrapRef<typeof import('./src/hooks/useBaseStore')['default']>
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
readonly useCurrentInstance: UnwrapRef<typeof import('./src/hooks/useCurrentInstance')['default']>
readonly useLanguage: UnwrapRef<typeof import('./src/hooks/useLanguage')['useLanguage']>
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
readonly useStore: UnwrapRef<typeof import('vuex')['useStore']>
readonly uuidv4: UnwrapRef<typeof import('uuid')['v4']>
readonly watch: UnwrapRef<typeof import('vue')['watch']>
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
}
}
28 changes: 11 additions & 17 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,17 @@ export default defineFlatConfig([
}
}
}],
'@stylistic/no-trailing-spaces': ['error']
'@stylistic/no-trailing-spaces': ['error'],
'@stylistic/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
requireLast: false
},
singleline: {
delimiter: 'semi',
requireLast: true
}
}]
}
},
{
Expand Down Expand Up @@ -355,25 +365,9 @@ export default defineFlatConfig([
}
),
...pluginTypeScript.configs.recommended.rules,
'@typescript-eslint/indent': ['error', 2, {
SwitchCase: 1
}],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 1,
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none',
requireLast: false
},
singleline: {
delimiter: 'semi',
requireLast: true
}
}
],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/consistent-type-imports': ['error', {
Expand Down
60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,62 +49,62 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"axios": "1.7.2",
"axios": "1.7.4",
"echarts": "^5.5.1",
"element-plus": "2.7.7",
"element-plus": "2.8.0",
"js-cookie": "^3.0.5",
"lodash-es": "^4.17.21",
"nprogress": "^0.2.0",
"vue": "^3.4.33",
"vue-router": "^4.4.0",
"vue": "^3.4.37",
"vue-router": "^4.4.3",
"vuex": "^4.1.0"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/preset-env": "^7.24.8",
"@eslint/js": "^9.7.0",
"@iconify/json": "^2.2.230",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@eslint/js": "^9.9.0",
"@iconify/json": "^2.2.237",
"@iconify/vue": "^4.1.2",
"@stylistic/eslint-plugin": "^2.3.0",
"@stylistic/stylelint-plugin": "^2.1.2",
"@stylistic/eslint-plugin": "^2.6.2",
"@stylistic/stylelint-plugin": "^3.0.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.14.12",
"@types/node": "^22.2.0",
"@types/nprogress": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-vue": "^5.1.0",
"@vitest/coverage-v8": "^2.0.4",
"@vue/compiler-sfc": "^3.4.33",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@vitejs/plugin-vue": "^5.1.2",
"@vitest/coverage-v8": "^2.0.5",
"@vue/compiler-sfc": "^3.4.37",
"@vue/test-utils": "2.4.6",
"babel-plugin-transform-vite-meta-env": "^1.0.3",
"cross-env": "^7.0.3",
"eslint": "^9.7.0",
"eslint": "^9.9.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-html": "8.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "9.27.0",
"globals": "^15.8.0",
"husky": "^9.1.1",
"globals": "^15.9.0",
"husky": "^9.1.4",
"jsdom": "^24.1.1",
"lint-staged": "^15.2.7",
"postcss": "^8.4.39",
"lint-staged": "^15.2.9",
"postcss": "^8.4.41",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"rollup": "4.19.0",
"sass": "1.77.6",
"stylelint": "^16.7.0",
"rollup": "4.20.0",
"sass": "1.77.8",
"stylelint": "^16.8.1",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-config-standard-scss": "13.1.0",
"typescript": "^5.5.4",
"unocss": "^0.61.5",
"unplugin-auto-import": "^0.18.1",
"unplugin-icons": "^0.19.0",
"unplugin-vue-components": "^0.27.3",
"vite": "^5.3.4",
"vitest": "^2.0.4",
"unocss": "^0.62.1",
"unplugin-auto-import": "^0.18.2",
"unplugin-icons": "^0.19.2",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.0",
"vitest": "^2.0.5",
"vue-eslint-parser": "^9.4.3"
}
}
Loading

0 comments on commit f421e7c

Please sign in to comment.