mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 20:36:34 +00:00
chore: lint and build
This commit is contained in:
parent
d86b0fdaa0
commit
c1356bfe70
@ -46,6 +46,7 @@ export default tseslint.config({
|
|||||||
'@stylistic/semi': ['error', 'always'],
|
'@stylistic/semi': ['error', 'always'],
|
||||||
'@stylistic/eol-last': ['error', 'always'],
|
'@stylistic/eol-last': ['error', 'always'],
|
||||||
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
|
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
|
||||||
|
'@stylistic/max-len': 'off',
|
||||||
|
|
||||||
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }],
|
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }],
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
|||||||
@ -22,13 +22,13 @@ export default async ({
|
|||||||
}: Options) => {
|
}: Options) => {
|
||||||
const formats = (env['FORMATS']?.split(',') ?? defaultFormats) as LibraryFormats[];
|
const formats = (env['FORMATS']?.split(',') ?? defaultFormats) as LibraryFormats[];
|
||||||
|
|
||||||
let externals: string[] = [];
|
const { peerDependencies = {}, dependencies = {} } = await getPackageJson(
|
||||||
|
|
||||||
if (externalDeps) {
|
|
||||||
const { peerDependencies = {}, devDependencies = {} } = await getPackageJson(
|
|
||||||
resolvePath('package.json'),
|
resolvePath('package.json'),
|
||||||
);
|
);
|
||||||
externals = [...Object.keys(peerDependencies), ...Object.keys(devDependencies)];
|
const externals: string[] = [...Object.keys(peerDependencies)];
|
||||||
|
|
||||||
|
if (externalDeps) {
|
||||||
|
externals.push(...Object.keys(dependencies));
|
||||||
}
|
}
|
||||||
|
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user