@umijs/lint 4.0.0-rc.14 → 4.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const STYLE_EXTS = [
|
|
|
12
12
|
exports.default = (opts, args) => {
|
|
13
13
|
if (!args.eslintOnly) {
|
|
14
14
|
const stylelint = new linter_1.StyleLinter(opts);
|
|
15
|
-
const styleArgs =
|
|
15
|
+
const styleArgs = { ...args, _: [...args._] };
|
|
16
16
|
if (!styleArgs.cssinjs) {
|
|
17
17
|
for (const suffix of ES_EXTS) {
|
|
18
18
|
styleArgs._.unshift('--ignore-pattern', suffix);
|
|
@@ -22,7 +22,7 @@ exports.default = (opts, args) => {
|
|
|
22
22
|
}
|
|
23
23
|
if (!args.stylelintOnly) {
|
|
24
24
|
const eslint = new linter_1.EsLinter(opts);
|
|
25
|
-
const esArgs =
|
|
25
|
+
const esArgs = { ...args, _: [...args._] };
|
|
26
26
|
for (const suffix of STYLE_EXTS) {
|
|
27
27
|
esArgs._.unshift('--ignore-pattern', suffix);
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/lint",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.15",
|
|
4
4
|
"description": "@umijs/lint",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/lint#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@stylelint/postcss-css-in-js": "^0.37.2",
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "5.20.0",
|
|
28
28
|
"@typescript-eslint/parser": "5.20.0",
|
|
29
|
-
"@umijs/babel-preset-umi": "4.0.0-rc.
|
|
29
|
+
"@umijs/babel-preset-umi": "4.0.0-rc.15",
|
|
30
30
|
"eslint-plugin-jest": "26.1.4",
|
|
31
31
|
"eslint-plugin-react": "7.29.4",
|
|
32
32
|
"eslint-plugin-react-hooks": "4.4.0",
|