just-scripts 2.1.3 → 2.2.0
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/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "just-scripts",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 19 Aug 2023 08:01:46 GMT",
|
|
6
|
+
"tag": "just-scripts_v2.2.0",
|
|
7
|
+
"version": "2.2.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kyleehrlich@microsoft.com",
|
|
12
|
+
"package": "just-scripts",
|
|
13
|
+
"commit": "0636501549595ebeb1228df9f5cebcbac6c00b18",
|
|
14
|
+
"comment": "Add quiet option to eslint task"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 10 Mar 2023 08:01:53 GMT",
|
|
6
21
|
"tag": "just-scripts_v2.1.3",
|
|
7
22
|
"version": "2.1.3",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - just-scripts
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 19 Aug 2023 08:01:46 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.2.0
|
|
8
|
+
|
|
9
|
+
Sat, 19 Aug 2023 08:01:46 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Add quiet option to eslint task (kyleehrlich@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 2.1.3
|
|
8
16
|
|
|
9
|
-
Fri, 10 Mar 2023 08:01:
|
|
17
|
+
Fri, 10 Mar 2023 08:01:53 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -23,6 +23,8 @@ export interface EsLintTaskOptions {
|
|
|
23
23
|
outputFile?: string;
|
|
24
24
|
/** Can be set to dictate the format of use for report file generated with the output flag: https://eslint.org/docs/latest/user-guide/command-line-interface#-f---format */
|
|
25
25
|
format?: string;
|
|
26
|
+
/** Prevents the logging & auto-fixing of warnings */
|
|
27
|
+
quiet?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare function eslintTask(options?: EsLintTaskOptions): TaskFunction;
|
|
28
30
|
//# sourceMappingURL=eslintTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslintTask.d.ts","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,WAAW,CAAC;AAItE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2KAA2K;IAC3K,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"eslintTask.d.ts","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,WAAW,CAAC;AAItE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2KAA2K;IAC3K,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,YAAY,CAkDxE"}
|
package/lib/tasks/eslintTask.js
CHANGED
|
@@ -6,7 +6,7 @@ const just_scripts_utils_1 = require("just-scripts-utils");
|
|
|
6
6
|
const fs = require("fs");
|
|
7
7
|
function eslintTask(options = {}) {
|
|
8
8
|
return function eslint() {
|
|
9
|
-
const { files, configPath, ignorePath, fix, extensions, noEslintRc, maxWarnings, resolvePluginsPath, cache, cacheLocation, timing, outputFile, format, } = options;
|
|
9
|
+
const { files, configPath, ignorePath, fix, extensions, noEslintRc, maxWarnings, resolvePluginsPath, cache, cacheLocation, timing, outputFile, format, quiet, } = options;
|
|
10
10
|
const eslintCmd = just_task_1.resolve('eslint/bin/eslint.js');
|
|
11
11
|
// Try all possible extensions in the order listed here: https://eslint.org/docs/user-guide/configuring#configuration-file-formats
|
|
12
12
|
const eslintConfigPath = configPath || just_task_1.resolveCwd('.eslintrc', { extensions: ['.js', '.cjs', '.yaml', '.yml', '.json'] });
|
|
@@ -26,6 +26,7 @@ function eslintTask(options = {}) {
|
|
|
26
26
|
...(cacheLocation ? ['--cache-location', cacheLocation] : []),
|
|
27
27
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
28
28
|
...(format ? ['--format', format] : []),
|
|
29
|
+
...(quiet ? ['--quiet'] : []),
|
|
29
30
|
'--color',
|
|
30
31
|
];
|
|
31
32
|
just_task_1.logger.info(just_scripts_utils_1.encodeArgs(eslintArgs).join(' '));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslintTask.js","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,2DAAuD;AACvD,yBAAyB;
|
|
1
|
+
{"version":3,"file":"eslintTask.js","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,2DAAuD;AACvD,yBAAyB;AA8BzB,SAAgB,UAAU,CAAC,UAA6B,EAAE;IACxD,OAAO,SAAS,MAAM;QACpB,MAAM,EACJ,KAAK,EACL,UAAU,EACV,UAAU,EACV,GAAG,EACH,UAAU,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,GACN,GAAG,OAAO,CAAC;QACZ,MAAM,SAAS,GAAG,mBAAO,CAAC,sBAAsB,CAAC,CAAC;QAClD,kIAAkI;QAClI,MAAM,gBAAgB,GACpB,UAAU,IAAI,sBAAU,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QAEnG,IAAI,SAAS,IAAI,gBAAgB,IAAI,EAAE,CAAC,UAAU,CAAC,gBAA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EAAE,CAAC;gBACpD,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7B,SAAS;aACV,CAAC;YAEF,kBAAM,CAAC,IAAI,CAAC,+BAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,OAAO,0BAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;SAC3G;aAAM;YACL,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;IACH,CAAC,CAAC;AACJ,CAAC;AAlDD,gCAkDC"}
|
package/package.json
CHANGED
package/src/tasks/eslintTask.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface EsLintTaskOptions {
|
|
|
26
26
|
outputFile?: string;
|
|
27
27
|
/** Can be set to dictate the format of use for report file generated with the output flag: https://eslint.org/docs/latest/user-guide/command-line-interface#-f---format */
|
|
28
28
|
format?: string;
|
|
29
|
+
/** Prevents the logging & auto-fixing of warnings */
|
|
30
|
+
quiet?: boolean;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
@@ -44,6 +46,7 @@ export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
|
44
46
|
timing,
|
|
45
47
|
outputFile,
|
|
46
48
|
format,
|
|
49
|
+
quiet,
|
|
47
50
|
} = options;
|
|
48
51
|
const eslintCmd = resolve('eslint/bin/eslint.js');
|
|
49
52
|
// Try all possible extensions in the order listed here: https://eslint.org/docs/user-guide/configuring#configuration-file-formats
|
|
@@ -67,6 +70,7 @@ export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
|
67
70
|
...(cacheLocation ? ['--cache-location', cacheLocation] : []),
|
|
68
71
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
69
72
|
...(format ? ['--format', format] : []),
|
|
73
|
+
...(quiet ? ['--quiet'] : []),
|
|
70
74
|
'--color',
|
|
71
75
|
];
|
|
72
76
|
|