Skip to content

Commit f421e7c

Browse files
authored
☂️ fix: sass rules deprecation warnings (#403)
1 parent 1c0f571 commit f421e7c

File tree

9 files changed

+1762
-1444
lines changed

9 files changed

+1762
-1444
lines changed

auto-imports.d.ts

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -174,84 +174,3 @@ declare module 'vue' {
174174
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
175175
}
176176
}
177-
declare module '@vue/runtime-core' {
178-
interface GlobalComponents {}
179-
interface ComponentCustomProperties {
180-
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
181-
readonly _: UnwrapRef<typeof import('lodash-es')>
182-
readonly computed: UnwrapRef<typeof import('vue')['computed']>
183-
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
184-
readonly createLogger: UnwrapRef<typeof import('vuex')['createLogger']>
185-
readonly createNamespacedHelpers: UnwrapRef<typeof import('vuex')['createNamespacedHelpers']>
186-
readonly createRouter: UnwrapRef<typeof import('vue-router')['createRouter']>
187-
readonly createStore: UnwrapRef<typeof import('vuex')['createStore']>
188-
readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']>
189-
readonly createWebHashHistory: UnwrapRef<typeof import('vue-router')['createWebHashHistory']>
190-
readonly createWebHistory: UnwrapRef<typeof import('vue-router')['createWebHistory']>
191-
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
192-
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
193-
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
194-
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
195-
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
196-
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
197-
readonly h: UnwrapRef<typeof import('vue')['h']>
198-
readonly inject: UnwrapRef<typeof import('vue')['inject']>
199-
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
200-
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
201-
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
202-
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
203-
readonly key: UnwrapRef<typeof import('./src/hooks/useBaseStore')['key']>
204-
readonly mapActions: UnwrapRef<typeof import('vuex')['mapActions']>
205-
readonly mapGetters: UnwrapRef<typeof import('vuex')['mapGetters']>
206-
readonly mapMutations: UnwrapRef<typeof import('vuex')['mapMutations']>
207-
readonly mapState: UnwrapRef<typeof import('vuex')['mapState']>
208-
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
209-
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
210-
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
211-
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
212-
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
213-
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
214-
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
215-
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
216-
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
217-
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
218-
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
219-
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
220-
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
221-
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
222-
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
223-
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
224-
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
225-
readonly provide: UnwrapRef<typeof import('vue')['provide']>
226-
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
227-
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
228-
readonly ref: UnwrapRef<typeof import('vue')['ref']>
229-
readonly render: UnwrapRef<typeof import('vue')['render']>
230-
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
231-
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
232-
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
233-
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
234-
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
235-
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
236-
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
237-
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
238-
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
239-
readonly unref: UnwrapRef<typeof import('vue')['unref']>
240-
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
241-
readonly useBaseStore: UnwrapRef<typeof import('./src/hooks/useBaseStore')['default']>
242-
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
243-
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
244-
readonly useCurrentInstance: UnwrapRef<typeof import('./src/hooks/useCurrentInstance')['default']>
245-
readonly useLanguage: UnwrapRef<typeof import('./src/hooks/useLanguage')['useLanguage']>
246-
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
247-
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
248-
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
249-
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
250-
readonly useStore: UnwrapRef<typeof import('vuex')['useStore']>
251-
readonly uuidv4: UnwrapRef<typeof import('uuid')['v4']>
252-
readonly watch: UnwrapRef<typeof import('vue')['watch']>
253-
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
254-
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
255-
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
256-
}
257-
}

eslint.config.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,17 @@ export default defineFlatConfig([
6666
}
6767
}
6868
}],
69-
'@stylistic/no-trailing-spaces': ['error']
69+
'@stylistic/no-trailing-spaces': ['error'],
70+
'@stylistic/member-delimiter-style': ['error', {
71+
multiline: {
72+
delimiter: 'none',
73+
requireLast: false
74+
},
75+
singleline: {
76+
delimiter: 'semi',
77+
requireLast: true
78+
}
79+
}]
7080
}
7181
},
7282
{
@@ -355,25 +365,9 @@ export default defineFlatConfig([
355365
}
356366
),
357367
...pluginTypeScript.configs.recommended.rules,
358-
'@typescript-eslint/indent': ['error', 2, {
359-
SwitchCase: 1
360-
}],
361368
'@typescript-eslint/explicit-module-boundary-types': 'off',
362369
'@typescript-eslint/no-explicit-any': 'off',
363370
'@typescript-eslint/no-unused-vars': 1,
364-
'@typescript-eslint/member-delimiter-style': [
365-
'error',
366-
{
367-
multiline: {
368-
delimiter: 'none',
369-
requireLast: false
370-
},
371-
singleline: {
372-
delimiter: 'semi',
373-
requireLast: true
374-
}
375-
}
376-
],
377371
'@typescript-eslint/no-empty-function': 0,
378372
'@typescript-eslint/no-non-null-assertion': 0,
379373
'@typescript-eslint/consistent-type-imports': ['error', {

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,62 +49,62 @@
4949
},
5050
"dependencies": {
5151
"@element-plus/icons-vue": "2.3.1",
52-
"axios": "1.7.2",
52+
"axios": "1.7.4",
5353
"echarts": "^5.5.1",
54-
"element-plus": "2.7.7",
54+
"element-plus": "2.8.0",
5555
"js-cookie": "^3.0.5",
5656
"lodash-es": "^4.17.21",
5757
"nprogress": "^0.2.0",
58-
"vue": "^3.4.33",
59-
"vue-router": "^4.4.0",
58+
"vue": "^3.4.37",
59+
"vue-router": "^4.4.3",
6060
"vuex": "^4.1.0"
6161
},
6262
"devDependencies": {
63-
"@babel/core": "^7.24.9",
64-
"@babel/preset-env": "^7.24.8",
65-
"@eslint/js": "^9.7.0",
66-
"@iconify/json": "^2.2.230",
63+
"@babel/core": "^7.25.2",
64+
"@babel/preset-env": "^7.25.3",
65+
"@eslint/js": "^9.9.0",
66+
"@iconify/json": "^2.2.237",
6767
"@iconify/vue": "^4.1.2",
68-
"@stylistic/eslint-plugin": "^2.3.0",
69-
"@stylistic/stylelint-plugin": "^2.1.2",
68+
"@stylistic/eslint-plugin": "^2.6.2",
69+
"@stylistic/stylelint-plugin": "^3.0.0",
7070
"@types/js-cookie": "^3.0.6",
7171
"@types/lodash-es": "^4.17.12",
72-
"@types/node": "^20.14.12",
72+
"@types/node": "^22.2.0",
7373
"@types/nprogress": "^0.2.3",
74-
"@typescript-eslint/eslint-plugin": "^7.17.0",
75-
"@typescript-eslint/parser": "^7.17.0",
76-
"@vitejs/plugin-vue": "^5.1.0",
77-
"@vitest/coverage-v8": "^2.0.4",
78-
"@vue/compiler-sfc": "^3.4.33",
74+
"@typescript-eslint/eslint-plugin": "^8.1.0",
75+
"@typescript-eslint/parser": "^8.1.0",
76+
"@vitejs/plugin-vue": "^5.1.2",
77+
"@vitest/coverage-v8": "^2.0.5",
78+
"@vue/compiler-sfc": "^3.4.37",
7979
"@vue/test-utils": "2.4.6",
8080
"babel-plugin-transform-vite-meta-env": "^1.0.3",
8181
"cross-env": "^7.0.3",
82-
"eslint": "^9.7.0",
82+
"eslint": "^9.9.0",
8383
"eslint-define-config": "^2.1.0",
8484
"eslint-plugin-html": "8.1.1",
8585
"eslint-plugin-import": "^2.29.1",
8686
"eslint-plugin-vue": "9.27.0",
87-
"globals": "^15.8.0",
88-
"husky": "^9.1.1",
87+
"globals": "^15.9.0",
88+
"husky": "^9.1.4",
8989
"jsdom": "^24.1.1",
90-
"lint-staged": "^15.2.7",
91-
"postcss": "^8.4.39",
90+
"lint-staged": "^15.2.9",
91+
"postcss": "^8.4.41",
9292
"postcss-html": "^1.7.0",
9393
"postcss-scss": "^4.0.9",
94-
"rollup": "4.19.0",
95-
"sass": "1.77.6",
96-
"stylelint": "^16.7.0",
94+
"rollup": "4.20.0",
95+
"sass": "1.77.8",
96+
"stylelint": "^16.8.1",
9797
"stylelint-config-recommended-scss": "^14.1.0",
9898
"stylelint-config-recommended-vue": "^1.5.0",
9999
"stylelint-config-standard": "^36.0.1",
100100
"stylelint-config-standard-scss": "13.1.0",
101101
"typescript": "^5.5.4",
102-
"unocss": "^0.61.5",
103-
"unplugin-auto-import": "^0.18.1",
104-
"unplugin-icons": "^0.19.0",
105-
"unplugin-vue-components": "^0.27.3",
106-
"vite": "^5.3.4",
107-
"vitest": "^2.0.4",
102+
"unocss": "^0.62.1",
103+
"unplugin-auto-import": "^0.18.2",
104+
"unplugin-icons": "^0.19.2",
105+
"unplugin-vue-components": "^0.27.4",
106+
"vite": "^5.4.0",
107+
"vitest": "^2.0.5",
108108
"vue-eslint-parser": "^9.4.3"
109109
}
110110
}

0 commit comments

Comments
 (0)