@genesislcap/eslint-stylelint-builder 14.432.1 → 14.432.2
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 +3 -3
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
|
|
|
22
22
|
const defaultConcurrency = Math.max(1, Math.floor(os_1.default.cpus().length / 2));
|
|
23
23
|
concurrencyArg = ` --concurrency ${defaultConcurrency}`;
|
|
24
24
|
}
|
|
25
|
-
const command = `${eslint} "./**/*.{ts,js}" ${fixArg}${concurrencyArg}`;
|
|
25
|
+
const command = `${eslint} "./**/*.{ts,tsx,js,jsx}" ${fixArg}${concurrencyArg}`;
|
|
26
26
|
consola_1.default.info(`Executing: ${command}`);
|
|
27
27
|
(0, build_kit_1.run)(cwd, command);
|
|
28
28
|
consola_1.default.success('ESLint completed');
|
|
@@ -30,7 +30,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
|
|
|
30
30
|
if (!linter || linter === 'stylelint' || linter === 'all') {
|
|
31
31
|
consola_1.default.info('Running Stylelint...');
|
|
32
32
|
const stylelint = yield (0, build_kit_1.resolveBin)('stylelint');
|
|
33
|
-
(0, build_kit_1.run)(cwd, `${stylelint} "./**/*.styles.ts" ${fixArg}`);
|
|
33
|
+
(0, build_kit_1.run)(cwd, `${stylelint} "./**/*.styles.ts" ${fixArg} --allow-empty-input`);
|
|
34
34
|
consola_1.default.success('Stylelint completed');
|
|
35
35
|
}
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/eslint-stylelint-builder",
|
|
3
3
|
"description": "ESLint/Stylelint builder",
|
|
4
|
-
"version": "14.432.
|
|
4
|
+
"version": "14.432.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lint:fix": "genx lint --fix"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@genesislcap/build-kit": "14.432.
|
|
19
|
+
"@genesislcap/build-kit": "14.432.2",
|
|
20
20
|
"consola": "^3.0.2",
|
|
21
21
|
"eslint": "^9.34.0",
|
|
22
22
|
"stylelint": "^14.0.0"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a93cc1972a01671997a744f7ce0477ca5809006d"
|
|
33
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default async (ctx: BuildContext) => {
|
|
|
27
27
|
const defaultConcurrency = Math.max(1, Math.floor(os.cpus().length / 2));
|
|
28
28
|
concurrencyArg = ` --concurrency ${defaultConcurrency}`;
|
|
29
29
|
}
|
|
30
|
-
const command = `${eslint} "./**/*.{ts,js}" ${fixArg}${concurrencyArg}`;
|
|
30
|
+
const command = `${eslint} "./**/*.{ts,tsx,js,jsx}" ${fixArg}${concurrencyArg}`;
|
|
31
31
|
consola.info(`Executing: ${command}`);
|
|
32
32
|
run(cwd, command);
|
|
33
33
|
consola.success('ESLint completed');
|
|
@@ -36,7 +36,7 @@ export default async (ctx: BuildContext) => {
|
|
|
36
36
|
if (!linter || linter === 'stylelint' || linter === 'all') {
|
|
37
37
|
consola.info('Running Stylelint...');
|
|
38
38
|
const stylelint = await resolveBin('stylelint');
|
|
39
|
-
run(cwd, `${stylelint} "./**/*.styles.ts" ${fixArg}`);
|
|
39
|
+
run(cwd, `${stylelint} "./**/*.styles.ts" ${fixArg} --allow-empty-input`);
|
|
40
40
|
consola.success('Stylelint completed');
|
|
41
41
|
}
|
|
42
42
|
} else {
|