From 512374734aef30cfa5b5be7a09162dbc472bfa5a Mon Sep 17 00:00:00 2001 From: Amumu Date: Mon, 3 Apr 2023 10:03:22 +0800 Subject: [PATCH] test: fix lint error (#41596) (#41600) * test: fix lint error * chore: fix lint --------- --- scripts/check-cssinjs.js | 3 +-- scripts/collect-token-statistic.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/check-cssinjs.js b/scripts/check-cssinjs.js index 93feaa256c..45b1b853d5 100644 --- a/scripts/check-cssinjs.js +++ b/scripts/check-cssinjs.js @@ -1,5 +1,4 @@ /* eslint-disable import/no-unresolved,no-console,global-require,import/no-dynamic-require */ - const chalk = require('chalk'); const React = require('react'); const ReactDOMServer = require('react-dom/server'); @@ -30,7 +29,7 @@ const EmptyElement = React.createElement('div'); const styleFiles = glob.globSync( path.join( process.cwd(), - 'components/!(version|config-provider|icon|auto-complete|col|row|time-picker|)/style/index.?(ts|tsx)', + 'components/!(version|config-provider|icon|auto-complete|col|row|time-picker)/style/index.?(ts|tsx)', ), ); diff --git a/scripts/collect-token-statistic.js b/scripts/collect-token-statistic.js index 7a204fe4ac..8a204ccc81 100644 --- a/scripts/collect-token-statistic.js +++ b/scripts/collect-token-statistic.js @@ -18,7 +18,7 @@ const EmptyElement = React.createElement('div'); const styleFiles = glob.globSync( path.join( process.cwd(), - 'components/!(version|config-provider|icon|auto-complete|col|row|time-picker|)/style/index.?(ts|tsx)', + 'components/!(version|config-provider|icon|auto-complete|col|row|time-picker)/style/index.?(ts|tsx)', ), );