fix: resolve eslint errors as well as TS type errors (#5172)
* fix: remove TypeScript error suppression for missing types in Vue ESLint config * fix: enhance application configuration with CSS options type supportdev-v5^2
parent
db5b727300
commit
3201b843a8
|
@ -4,7 +4,6 @@ import { interopDefault } from '../util';
|
||||||
|
|
||||||
export async function vue(): Promise<Linter.Config[]> {
|
export async function vue(): Promise<Linter.Config[]> {
|
||||||
const [pluginVue, parserVue, parserTs] = await Promise.all([
|
const [pluginVue, parserVue, parserTs] = await Promise.all([
|
||||||
// @ts-expect-error missing types
|
|
||||||
interopDefault(import('eslint-plugin-vue')),
|
interopDefault(import('eslint-plugin-vue')),
|
||||||
interopDefault(import('vue-eslint-parser')),
|
interopDefault(import('vue-eslint-parser')),
|
||||||
// @ts-expect-error missing types
|
// @ts-expect-error missing types
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { UserConfig } from 'vite';
|
import type { CSSOptions, UserConfig } from 'vite';
|
||||||
|
|
||||||
import type { DefineApplicationOptions } from '../typing';
|
import type { DefineApplicationOptions } from '../typing';
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCssOptions(injectGlobalScss = true) {
|
function createCssOptions(injectGlobalScss = true): CSSOptions {
|
||||||
const root = findMonorepoRoot();
|
const root = findMonorepoRoot();
|
||||||
return {
|
return {
|
||||||
preprocessorOptions: injectGlobalScss
|
preprocessorOptions: injectGlobalScss
|
||||||
|
|
Loading…
Reference in New Issue