just-scripts 2.4.1 → 2.4.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/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "just-scripts",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 27 Oct 2025 17:54:42 GMT",
|
|
6
|
+
"version": "2.4.2",
|
|
7
|
+
"tag": "just-scripts_v2.4.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "1581488+christiango@users.noreply.github.com",
|
|
12
|
+
"package": "just-scripts",
|
|
13
|
+
"commit": "a327543a7aeca4dba48ce3c32267c219a73e51d0",
|
|
14
|
+
"comment": "Add support for report-unused-disable-directives in the eslint task"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 22 May 2025 19:11:12 GMT",
|
|
6
21
|
"version": "2.4.1",
|
|
7
22
|
"tag": "just-scripts_v2.4.1",
|
|
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 Mon, 27 Oct 2025 17:54:42 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.4.2
|
|
8
|
+
|
|
9
|
+
Mon, 27 Oct 2025 17:54:42 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Add support for report-unused-disable-directives in the eslint task (1581488+christiango@users.noreply.github.com)
|
|
14
|
+
|
|
7
15
|
## 2.4.1
|
|
8
16
|
|
|
9
|
-
Thu, 22 May 2025 19:11:
|
|
17
|
+
Thu, 22 May 2025 19:11:12 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -30,6 +30,10 @@ export interface EsLintTaskOptions {
|
|
|
30
30
|
* This will be passed as an environment variable to eslint with the value ESLINT_USE_FLAT_CONFIG (https://eslint.org/blog/2024/04/eslint-v9.0.0-released/#flat-config-is-now-the-default-and-has-some-changes).
|
|
31
31
|
*/
|
|
32
32
|
useFlatConfig?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* When set to true, eslint will report any eslint-disable comments that are not used as an error.
|
|
35
|
+
*/
|
|
36
|
+
reportUnusedDisableDirectives?: boolean;
|
|
33
37
|
}
|
|
34
38
|
export declare function eslintTask(options?: EsLintTaskOptions): TaskFunction;
|
|
35
39
|
//# 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;IAChB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;
|
|
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;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,YAAY,CA8DxE"}
|
package/lib/tasks/eslintTask.js
CHANGED
|
@@ -27,6 +27,7 @@ function eslintTask(options = {}) {
|
|
|
27
27
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
28
28
|
...(format ? ['--format', format] : []),
|
|
29
29
|
...(quiet ? ['--quiet'] : []),
|
|
30
|
+
...(options.reportUnusedDisableDirectives ? ['--report-unused-disable-directives'] : []),
|
|
30
31
|
'--color',
|
|
31
32
|
];
|
|
32
33
|
const env = { ...process.env };
|
|
@@ -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;AAuCzB,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,EACL,aAAa,GACd,GAAG,OAAO,CAAC;QACZ,MAAM,SAAS,GAAG,IAAA,mBAAO,EAAC,sBAAsB,CAAC,CAAC;QAClD,kIAAkI;QAClI,MAAM,gBAAgB,GACpB,UAAU,IAAI,IAAA,sBAAU,EAAC,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,gBAAgB,CAAC,EAAE;YACpE,MAAM,gBAAgB,GAAG,UAAU,IAAI,IAAA,sBAAU,EAAC,eAAe,CAAC,CAAC;YAEnE,MAAM,UAAU,GAAG;gBACjB,SAAS;gBACT,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;gBAC1B,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,U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oCAAoC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxF,SAAS;aACV,CAAC;YAEF,MAAM,GAAG,GAAsB,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAElD,IAAI,MAAM,EAAE;gBACV,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC;aAClB;YAED,IAAI,aAAa,KAAK,SAAS,EAAE;gBAC/B,GAAG,CAAC,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;aAC5D;YAED,kBAAM,CAAC,IAAI,CAAC,IAAA,+BAAU,EAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,OAAO,IAAA,0BAAK,EAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;SACvE;aAAM;YACL,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;IACH,CAAC,CAAC;AACJ,CAAC;AA9DD,gCA8DC"}
|
package/package.json
CHANGED
package/src/tasks/eslintTask.ts
CHANGED
|
@@ -33,6 +33,10 @@ export interface EsLintTaskOptions {
|
|
|
33
33
|
* This will be passed as an environment variable to eslint with the value ESLINT_USE_FLAT_CONFIG (https://eslint.org/blog/2024/04/eslint-v9.0.0-released/#flat-config-is-now-the-default-and-has-some-changes).
|
|
34
34
|
*/
|
|
35
35
|
useFlatConfig?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* When set to true, eslint will report any eslint-disable comments that are not used as an error.
|
|
38
|
+
*/
|
|
39
|
+
reportUnusedDisableDirectives?: boolean;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
@@ -77,6 +81,7 @@ export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
|
77
81
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
78
82
|
...(format ? ['--format', format] : []),
|
|
79
83
|
...(quiet ? ['--quiet'] : []),
|
|
84
|
+
...(options.reportUnusedDisableDirectives ? ['--report-unused-disable-directives'] : []),
|
|
80
85
|
'--color',
|
|
81
86
|
];
|
|
82
87
|
|