Browse Source

test: fix lint error (#41596)

* test: fix lint error

* chore: fix lint

---------

Co-authored-by: yoyo837 <yoyo837@hotmail.com>
pull/41603/head
afc163 2 years ago
committed by GitHub
parent
commit
9b40680cfc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      scripts/check-cssinjs.js
  2. 2
      scripts/collect-token-statistic.js

3
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)',
),
);

2
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)',
),
);

Loading…
Cancel
Save