Skip to content

Commit

Permalink
fix: resolve eslint errors as well as TS type errors (#5172)
Browse files Browse the repository at this point in the history
* fix: remove TypeScript error suppression for missing types in Vue ESLint config

* fix: enhance application configuration with CSS options type support
  • Loading branch information
chengazhen authored Dec 19, 2024
1 parent db5b727 commit 3201b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/lint-configs/eslint-config/src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { interopDefault } from '../util';

export async function vue(): Promise<Linter.Config[]> {
const [pluginVue, parserVue, parserTs] = await Promise.all([
// @ts-expect-error missing types
interopDefault(import('eslint-plugin-vue')),
interopDefault(import('vue-eslint-parser')),
// @ts-expect-error missing types
Expand Down
4 changes: 2 additions & 2 deletions internal/vite-config/src/config/application.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UserConfig } from 'vite';
import type { CSSOptions, UserConfig } from 'vite';

import type { DefineApplicationOptions } from '../typing';

Expand Down Expand Up @@ -100,7 +100,7 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) {
});
}

function createCssOptions(injectGlobalScss = true) {
function createCssOptions(injectGlobalScss = true): CSSOptions {
const root = findMonorepoRoot();
return {
preprocessorOptions: injectGlobalScss
Expand Down

0 comments on commit 3201b84

Please sign in to comment.