From 44adf04bc9dbd57b15cd1bbd6e6fcfb882f88e2c Mon Sep 17 00:00:00 2001 From: Janry Date: Fri, 15 Oct 2021 12:08:50 +0800 Subject: [PATCH] fix(antd/next): fix style compiler error (#2310) --- .eslintrc | 1 + packages/.eslintrc | 1 + packages/antd/src/form-layout/style.ts | 2 +- packages/antd/src/form/style.ts | 2 +- packages/next/src/form-layout/style.ts | 2 +- packages/next/src/form/style.ts | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index f9476cdd70c..72b7088fd16 100644 --- a/.eslintrc +++ b/.eslintrc @@ -30,6 +30,7 @@ "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/ban-ts-comment": "off", "react/no-unescaped-entities": "off", "react/prop-types": "off" }, diff --git a/packages/.eslintrc b/packages/.eslintrc index 42535453840..7c5d7dc87f1 100644 --- a/packages/.eslintrc +++ b/packages/.eslintrc @@ -43,6 +43,7 @@ "@typescript-eslint/no-use-before-define": 0, "@typescript-eslint/no-unused-vars": 1, "@typescript-eslint/no-namespace": 0, + "@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/ban-types": 0, "@typescript-eslint/adjacent-overload-signatures": 0, "@typescript-eslint/explicit-module-boundary-types": 0, diff --git a/packages/antd/src/form-layout/style.ts b/packages/antd/src/form-layout/style.ts index 1d62fa9215a..11dce55e309 100644 --- a/packages/antd/src/form-layout/style.ts +++ b/packages/antd/src/form-layout/style.ts @@ -1 +1 @@ -import './style.less' +// @ts-ignore diff --git a/packages/antd/src/form/style.ts b/packages/antd/src/form/style.ts index 1d62fa9215a..11dce55e309 100644 --- a/packages/antd/src/form/style.ts +++ b/packages/antd/src/form/style.ts @@ -1 +1 @@ -import './style.less' +// @ts-ignore diff --git a/packages/next/src/form-layout/style.ts b/packages/next/src/form-layout/style.ts index 87c1bbd8c51..11dce55e309 100644 --- a/packages/next/src/form-layout/style.ts +++ b/packages/next/src/form-layout/style.ts @@ -1 +1 @@ -import './main.scss' +// @ts-ignore diff --git a/packages/next/src/form/style.ts b/packages/next/src/form/style.ts index 87c1bbd8c51..11dce55e309 100644 --- a/packages/next/src/form/style.ts +++ b/packages/next/src/form/style.ts @@ -1 +1 @@ -import './main.scss' +// @ts-ignore