@sarj/eslint-plugin 16.42.1 → 17.1.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/README.md +2 -0
- package/dist/{_docs-_eXGTNOq.d.cts → _docs-CzrWp3w7.d.cts} +48 -5
- package/dist/{_docs-_eXGTNOq.d.ts → _docs-CzrWp3w7.d.ts} +48 -5
- package/dist/index.cjs +4179 -3929
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +4116 -3982
- package/dist/rule-examples.d.cts +3 -1
- package/dist/rule-examples.d.ts +3 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { D as DocumentedRule } from './_docs-
|
|
2
|
-
export { p as publicDocumentation } from './_docs-
|
|
1
|
+
import { D as DocumentedRule } from './_docs-CzrWp3w7.cjs';
|
|
2
|
+
export { p as publicDocumentation } from './_docs-CzrWp3w7.cjs';
|
|
3
3
|
import '@typescript-eslint/utils';
|
|
4
|
+
import 'eslint';
|
|
5
|
+
import '@eslint/core';
|
|
4
6
|
|
|
5
7
|
interface RuleOptions$5 {
|
|
6
8
|
readonly basePath?: string;
|
|
@@ -126,6 +128,9 @@ interface RetiredRule {
|
|
|
126
128
|
declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
127
129
|
|
|
128
130
|
declare const RULES: {
|
|
131
|
+
readonly "no-frontend-comments": DocumentedRule<readonly [{
|
|
132
|
+
readonly allFiles?: boolean;
|
|
133
|
+
}], "noFrontendComments">;
|
|
129
134
|
readonly "no-mutating-input-with-result": DocumentedRule<[], "inputWrite">;
|
|
130
135
|
readonly "no-negative-only-http-status-assertion": DocumentedRule<[], "expectedStatus">;
|
|
131
136
|
readonly "production-derived-test-cases": DocumentedRule<[], "independentCases">;
|
|
@@ -137,7 +142,9 @@ declare const RULES: {
|
|
|
137
142
|
readonly "prefer-dependency-interface": DocumentedRule<[], "interface">;
|
|
138
143
|
readonly "no-generic-json-parser": DocumentedRule<[], "genericParser">;
|
|
139
144
|
readonly "no-redundant-local-alias": DocumentedRule<[], "redundantAlias">;
|
|
140
|
-
readonly "no-test-comments": DocumentedRule<[
|
|
145
|
+
readonly "no-test-comments": DocumentedRule<readonly [{
|
|
146
|
+
readonly allFiles?: boolean;
|
|
147
|
+
}], "testComment">;
|
|
141
148
|
readonly "no-mutating-container-transform": DocumentedRule<[], "borrowedMutation">;
|
|
142
149
|
readonly "no-redundant-consumer-union": DocumentedRule<[], "redundant">;
|
|
143
150
|
readonly "prefer-minimal-parameter-contract": DocumentedRule<[], "minimal">;
|
|
@@ -327,6 +334,7 @@ declare const meta: {
|
|
|
327
334
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
328
335
|
type PresetMembership = "both" | "strict";
|
|
329
336
|
declare const RULE_POLICY: {
|
|
337
|
+
readonly "@sarj/no-frontend-comments": readonly ["warn", "both"];
|
|
330
338
|
readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
|
|
331
339
|
readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
|
|
332
340
|
readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { D as DocumentedRule } from './_docs-
|
|
2
|
-
export { p as publicDocumentation } from './_docs-
|
|
1
|
+
import { D as DocumentedRule } from './_docs-CzrWp3w7.js';
|
|
2
|
+
export { p as publicDocumentation } from './_docs-CzrWp3w7.js';
|
|
3
3
|
import '@typescript-eslint/utils';
|
|
4
|
+
import 'eslint';
|
|
5
|
+
import '@eslint/core';
|
|
4
6
|
|
|
5
7
|
interface RuleOptions$5 {
|
|
6
8
|
readonly basePath?: string;
|
|
@@ -126,6 +128,9 @@ interface RetiredRule {
|
|
|
126
128
|
declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
127
129
|
|
|
128
130
|
declare const RULES: {
|
|
131
|
+
readonly "no-frontend-comments": DocumentedRule<readonly [{
|
|
132
|
+
readonly allFiles?: boolean;
|
|
133
|
+
}], "noFrontendComments">;
|
|
129
134
|
readonly "no-mutating-input-with-result": DocumentedRule<[], "inputWrite">;
|
|
130
135
|
readonly "no-negative-only-http-status-assertion": DocumentedRule<[], "expectedStatus">;
|
|
131
136
|
readonly "production-derived-test-cases": DocumentedRule<[], "independentCases">;
|
|
@@ -137,7 +142,9 @@ declare const RULES: {
|
|
|
137
142
|
readonly "prefer-dependency-interface": DocumentedRule<[], "interface">;
|
|
138
143
|
readonly "no-generic-json-parser": DocumentedRule<[], "genericParser">;
|
|
139
144
|
readonly "no-redundant-local-alias": DocumentedRule<[], "redundantAlias">;
|
|
140
|
-
readonly "no-test-comments": DocumentedRule<[
|
|
145
|
+
readonly "no-test-comments": DocumentedRule<readonly [{
|
|
146
|
+
readonly allFiles?: boolean;
|
|
147
|
+
}], "testComment">;
|
|
141
148
|
readonly "no-mutating-container-transform": DocumentedRule<[], "borrowedMutation">;
|
|
142
149
|
readonly "no-redundant-consumer-union": DocumentedRule<[], "redundant">;
|
|
143
150
|
readonly "prefer-minimal-parameter-contract": DocumentedRule<[], "minimal">;
|
|
@@ -327,6 +334,7 @@ declare const meta: {
|
|
|
327
334
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
328
335
|
type PresetMembership = "both" | "strict";
|
|
329
336
|
declare const RULE_POLICY: {
|
|
337
|
+
readonly "@sarj/no-frontend-comments": readonly ["warn", "both"];
|
|
330
338
|
readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
|
|
331
339
|
readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
|
|
332
340
|
readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
|