@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/dist/index.d.cts CHANGED
@@ -1,6 +1,8 @@
1
- import { D as DocumentedRule } from './_docs-_eXGTNOq.cjs';
2
- export { p as publicDocumentation } from './_docs-_eXGTNOq.cjs';
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<[], "testComment">;
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-_eXGTNOq.js';
2
- export { p as publicDocumentation } from './_docs-_eXGTNOq.js';
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<[], "testComment">;
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"];