@sarj/eslint-plugin 15.12.0 → 15.12.1
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 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by `
|
|
1
|
+
<!-- Generated by `code-standards maintain docs sync`; do not edit. -->
|
|
2
2
|
|
|
3
3
|
# @sarj/eslint-plugin
|
|
4
4
|
|
|
@@ -10,4 +10,4 @@ npm install --save-dev @sarj/eslint-plugin
|
|
|
10
10
|
|
|
11
11
|
Rules and configuration are documented in the generated rule directory.
|
|
12
12
|
|
|
13
|
-
[Documentation](https://code-standards.sarj.ai/rules/eslint/) · [Source](https://github.com/sarj-ai/standards)
|
|
13
|
+
[Documentation](https://code-standards.sarj.ai/rules/eslint/) · [Source](https://github.com/sarj-ai/code-standards)
|
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ var import_utils2 = require("@typescript-eslint/utils");
|
|
|
47
47
|
|
|
48
48
|
// src/rules/_docs.ts
|
|
49
49
|
var import_utils = require("@typescript-eslint/utils");
|
|
50
|
-
var REPO_BLOB = "https://github.com/sarj-ai/standards/blob/main";
|
|
50
|
+
var REPO_BLOB = "https://github.com/sarj-ai/code-standards/blob/main";
|
|
51
51
|
var TESTS_DIR = "packages/typescript/tests/rules";
|
|
52
52
|
var examplesPath = (name) => `${TESTS_DIR}/${name}.test.ts`;
|
|
53
53
|
var examplesUrl = (name) => `${REPO_BLOB}/${examplesPath(name)}`;
|
|
@@ -16635,7 +16635,7 @@ var rules = {
|
|
|
16635
16635
|
};
|
|
16636
16636
|
var meta = {
|
|
16637
16637
|
name: "@sarj/eslint-plugin",
|
|
16638
|
-
version: "15.12.
|
|
16638
|
+
version: "15.12.1"
|
|
16639
16639
|
};
|
|
16640
16640
|
var applicationOnlyRules = [
|
|
16641
16641
|
"no-restricted-library-load",
|
package/dist/index.d.cts
CHANGED
|
@@ -95,7 +95,7 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
|
|
|
95
95
|
/**
|
|
96
96
|
* @fileoverview prefer-shadcn-primitives — visible application UI should use shared shadcn primitives.
|
|
97
97
|
*
|
|
98
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/prefer-shadcn-primitives.test.ts
|
|
98
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/prefer-shadcn-primitives.test.ts
|
|
99
99
|
*/
|
|
100
100
|
interface RuleOptions$4 {
|
|
101
101
|
readonly assumeAvailable?: boolean;
|
|
@@ -117,7 +117,7 @@ interface WallOptions {
|
|
|
117
117
|
/**
|
|
118
118
|
* @fileoverview no-storage-in-stateless-modules — private storage inside a module a team declared stateless diverges from the system of record, silently.
|
|
119
119
|
*
|
|
120
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-storage-in-stateless-modules.test.ts
|
|
120
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-storage-in-stateless-modules.test.ts
|
|
121
121
|
*/
|
|
122
122
|
interface RuleOptions$3 {
|
|
123
123
|
readonly modules?: readonly string[];
|
|
@@ -127,7 +127,7 @@ interface RuleOptions$3 {
|
|
|
127
127
|
/**
|
|
128
128
|
* @fileoverview no-restricted-library-load — literal runtime module loads must obey the same library policy as static imports.
|
|
129
129
|
*
|
|
130
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-restricted-library-load.test.ts
|
|
130
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-restricted-library-load.test.ts
|
|
131
131
|
*/
|
|
132
132
|
interface RestrictedLibrary {
|
|
133
133
|
readonly id: string;
|
|
@@ -139,7 +139,7 @@ interface RestrictedLibrary {
|
|
|
139
139
|
/**
|
|
140
140
|
* @fileoverview no-raw-fetch-outside-clients — a bare `fetch` outside the client layer opts out of retry, timeout and status handling, and cannot be stubbed.
|
|
141
141
|
*
|
|
142
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-raw-fetch-outside-clients.test.ts
|
|
142
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-raw-fetch-outside-clients.test.ts
|
|
143
143
|
*/
|
|
144
144
|
interface RuleOptions$2 {
|
|
145
145
|
/** Regular-expression sources matched against the filename. */
|
|
@@ -159,7 +159,7 @@ interface LoggingOptions {
|
|
|
159
159
|
/**
|
|
160
160
|
* @fileoverview no-fat-try-blocks — a `try` holding more than three throwing statements catches failures its handler was never written for.
|
|
161
161
|
*
|
|
162
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-fat-try-blocks.test.ts
|
|
162
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-fat-try-blocks.test.ts
|
|
163
163
|
*/
|
|
164
164
|
interface RuleOptions$1 {
|
|
165
165
|
readonly max?: number;
|
|
@@ -168,7 +168,7 @@ interface RuleOptions$1 {
|
|
|
168
168
|
/**
|
|
169
169
|
* @fileoverview no-dynamic-sql — a runtime value interpolated into statement text is SQL injection, and it defeats the prepared-statement cache.
|
|
170
170
|
*
|
|
171
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-dynamic-sql.test.ts
|
|
171
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-dynamic-sql.test.ts
|
|
172
172
|
*/
|
|
173
173
|
interface RuleOptions {
|
|
174
174
|
readonly methods?: readonly string[];
|
|
@@ -177,7 +177,7 @@ interface RuleOptions {
|
|
|
177
177
|
/**
|
|
178
178
|
* @fileoverview _renames — every rule this plugin has renamed, old name to new; the old names no longer resolve, so this map is what says what to write instead.
|
|
179
179
|
*
|
|
180
|
-
* `
|
|
180
|
+
* `code-standards maintain sync-ledger` turns each entry into the consumer-facing ledger row.
|
|
181
181
|
*
|
|
182
182
|
*/
|
|
183
183
|
declare const renamedRules: {
|
|
@@ -459,7 +459,7 @@ type FlatPreset = {
|
|
|
459
459
|
declare const plugin: {
|
|
460
460
|
readonly meta: {
|
|
461
461
|
readonly name: "@sarj/eslint-plugin";
|
|
462
|
-
readonly version: "15.12.
|
|
462
|
+
readonly version: "15.12.1";
|
|
463
463
|
};
|
|
464
464
|
readonly rules: {
|
|
465
465
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ declare function publicDocumentation(rules: Readonly<Record<string, {
|
|
|
95
95
|
/**
|
|
96
96
|
* @fileoverview prefer-shadcn-primitives — visible application UI should use shared shadcn primitives.
|
|
97
97
|
*
|
|
98
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/prefer-shadcn-primitives.test.ts
|
|
98
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/prefer-shadcn-primitives.test.ts
|
|
99
99
|
*/
|
|
100
100
|
interface RuleOptions$4 {
|
|
101
101
|
readonly assumeAvailable?: boolean;
|
|
@@ -117,7 +117,7 @@ interface WallOptions {
|
|
|
117
117
|
/**
|
|
118
118
|
* @fileoverview no-storage-in-stateless-modules — private storage inside a module a team declared stateless diverges from the system of record, silently.
|
|
119
119
|
*
|
|
120
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-storage-in-stateless-modules.test.ts
|
|
120
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-storage-in-stateless-modules.test.ts
|
|
121
121
|
*/
|
|
122
122
|
interface RuleOptions$3 {
|
|
123
123
|
readonly modules?: readonly string[];
|
|
@@ -127,7 +127,7 @@ interface RuleOptions$3 {
|
|
|
127
127
|
/**
|
|
128
128
|
* @fileoverview no-restricted-library-load — literal runtime module loads must obey the same library policy as static imports.
|
|
129
129
|
*
|
|
130
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-restricted-library-load.test.ts
|
|
130
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-restricted-library-load.test.ts
|
|
131
131
|
*/
|
|
132
132
|
interface RestrictedLibrary {
|
|
133
133
|
readonly id: string;
|
|
@@ -139,7 +139,7 @@ interface RestrictedLibrary {
|
|
|
139
139
|
/**
|
|
140
140
|
* @fileoverview no-raw-fetch-outside-clients — a bare `fetch` outside the client layer opts out of retry, timeout and status handling, and cannot be stubbed.
|
|
141
141
|
*
|
|
142
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-raw-fetch-outside-clients.test.ts
|
|
142
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-raw-fetch-outside-clients.test.ts
|
|
143
143
|
*/
|
|
144
144
|
interface RuleOptions$2 {
|
|
145
145
|
/** Regular-expression sources matched against the filename. */
|
|
@@ -159,7 +159,7 @@ interface LoggingOptions {
|
|
|
159
159
|
/**
|
|
160
160
|
* @fileoverview no-fat-try-blocks — a `try` holding more than three throwing statements catches failures its handler was never written for.
|
|
161
161
|
*
|
|
162
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-fat-try-blocks.test.ts
|
|
162
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-fat-try-blocks.test.ts
|
|
163
163
|
*/
|
|
164
164
|
interface RuleOptions$1 {
|
|
165
165
|
readonly max?: number;
|
|
@@ -168,7 +168,7 @@ interface RuleOptions$1 {
|
|
|
168
168
|
/**
|
|
169
169
|
* @fileoverview no-dynamic-sql — a runtime value interpolated into statement text is SQL injection, and it defeats the prepared-statement cache.
|
|
170
170
|
*
|
|
171
|
-
* Examples: https://github.com/sarj-ai/standards/blob/main/packages/typescript/tests/rules/no-dynamic-sql.test.ts
|
|
171
|
+
* Examples: https://github.com/sarj-ai/code-standards/blob/main/packages/typescript/tests/rules/no-dynamic-sql.test.ts
|
|
172
172
|
*/
|
|
173
173
|
interface RuleOptions {
|
|
174
174
|
readonly methods?: readonly string[];
|
|
@@ -177,7 +177,7 @@ interface RuleOptions {
|
|
|
177
177
|
/**
|
|
178
178
|
* @fileoverview _renames — every rule this plugin has renamed, old name to new; the old names no longer resolve, so this map is what says what to write instead.
|
|
179
179
|
*
|
|
180
|
-
* `
|
|
180
|
+
* `code-standards maintain sync-ledger` turns each entry into the consumer-facing ledger row.
|
|
181
181
|
*
|
|
182
182
|
*/
|
|
183
183
|
declare const renamedRules: {
|
|
@@ -459,7 +459,7 @@ type FlatPreset = {
|
|
|
459
459
|
declare const plugin: {
|
|
460
460
|
readonly meta: {
|
|
461
461
|
readonly name: "@sarj/eslint-plugin";
|
|
462
|
-
readonly version: "15.12.
|
|
462
|
+
readonly version: "15.12.1";
|
|
463
463
|
};
|
|
464
464
|
readonly rules: {
|
|
465
465
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
|
3
3
|
|
|
4
4
|
// src/rules/_docs.ts
|
|
5
5
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
6
|
-
var REPO_BLOB = "https://github.com/sarj-ai/standards/blob/main";
|
|
6
|
+
var REPO_BLOB = "https://github.com/sarj-ai/code-standards/blob/main";
|
|
7
7
|
var TESTS_DIR = "packages/typescript/tests/rules";
|
|
8
8
|
var examplesPath = (name) => `${TESTS_DIR}/${name}.test.ts`;
|
|
9
9
|
var examplesUrl = (name) => `${REPO_BLOB}/${examplesPath(name)}`;
|
|
@@ -16616,7 +16616,7 @@ var rules = {
|
|
|
16616
16616
|
};
|
|
16617
16617
|
var meta = {
|
|
16618
16618
|
name: "@sarj/eslint-plugin",
|
|
16619
|
-
version: "15.12.
|
|
16619
|
+
version: "15.12.1"
|
|
16620
16620
|
};
|
|
16621
16621
|
var applicationOnlyRules = [
|
|
16622
16622
|
"no-restricted-library-load",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarj/eslint-plugin",
|
|
3
|
-
"version": "15.12.
|
|
3
|
+
"version": "15.12.1",
|
|
4
4
|
"packageManager": "npm@12.0.2",
|
|
5
5
|
"description": "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
6
6
|
"type": "module",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/sarj-ai/standards.git",
|
|
28
|
+
"url": "git+https://github.com/sarj-ai/code-standards.git",
|
|
29
29
|
"directory": "packages/typescript"
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://code-standards.sarj.ai/rules/eslint/",
|
|
32
32
|
"bugs": {
|
|
33
|
-
"url": "https://github.com/sarj-ai/standards/issues"
|
|
33
|
+
"url": "https://github.com/sarj-ai/code-standards/issues"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup",
|