@checkdigit/eslint-plugin 7.0.0-PR.88-a0ce → 7.0.0-PR.88-46de

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.
@@ -11603,8 +11603,16 @@
11603
11603
  "format": "esm"
11604
11604
  },
11605
11605
  "src/index.ts": {
11606
- "bytes": 3510,
11606
+ "bytes": 3890,
11607
11607
  "imports": [
11608
+ {
11609
+ "path": "package.json",
11610
+ "kind": "import-statement",
11611
+ "original": "../package.json",
11612
+ "with": {
11613
+ "type": "json"
11614
+ }
11615
+ },
11608
11616
  {
11609
11617
  "path": "src/invalid-json-stringify.ts",
11610
11618
  "kind": "import-statement",
@@ -12242,7 +12250,7 @@
12242
12250
  "bytesInOutput": 524
12243
12251
  },
12244
12252
  "node_modules/ajv/lib/compile/util.js": {
12245
- "bytesInOutput": 7315
12253
+ "bytesInOutput": 7321
12246
12254
  },
12247
12255
  "node_modules/ajv/lib/compile/schema_obj.js": {
12248
12256
  "bytesInOutput": 265
@@ -12260,7 +12268,7 @@
12260
12268
  "bytesInOutput": 2060
12261
12269
  },
12262
12270
  "node_modules/ajv/lib/dotjs/validate.js": {
12263
- "bytesInOutput": 21531
12271
+ "bytesInOutput": 21534
12264
12272
  },
12265
12273
  "node_modules/ajv/lib/compile/index.js": {
12266
12274
  "bytesInOutput": 10002
@@ -12344,7 +12352,7 @@
12344
12352
  "bytesInOutput": 1149
12345
12353
  },
12346
12354
  "node_modules/ajv/lib/compile/rules.js": {
12347
- "bytesInOutput": 2596
12355
+ "bytesInOutput": 2597
12348
12356
  },
12349
12357
  "node_modules/ajv/lib/data.js": {
12350
12358
  "bytesInOutput": 1329
@@ -12362,13 +12370,13 @@
12362
12370
  "bytesInOutput": 1141
12363
12371
  },
12364
12372
  "node_modules/ajv/lib/keyword.js": {
12365
- "bytesInOutput": 3304
12373
+ "bytesInOutput": 3308
12366
12374
  },
12367
12375
  "node_modules/ajv/lib/refs/data.json": {
12368
12376
  "bytesInOutput": 654
12369
12377
  },
12370
12378
  "node_modules/ajv/lib/ajv.js": {
12371
- "bytesInOutput": 13544
12379
+ "bytesInOutput": 13546
12372
12380
  },
12373
12381
  "node_modules/globals/globals.json": {
12374
12382
  "bytesInOutput": 56110
@@ -12377,7 +12385,7 @@
12377
12385
  "bytesInOutput": 157
12378
12386
  },
12379
12387
  "node_modules/@eslint/eslintrc/dist/eslintrc.cjs": {
12380
- "bytesInOutput": 104228
12388
+ "bytesInOutput": 104279
12381
12389
  },
12382
12390
  "node_modules/@eslint/js/src/configs/eslint-all.js": {
12383
12391
  "bytesInOutput": 7489
@@ -12530,7 +12538,7 @@
12530
12538
  "bytesInOutput": 13714
12531
12539
  },
12532
12540
  "node_modules/eslint/lib/languages/js/source-code/source-code.js": {
12533
- "bytesInOutput": 30115
12541
+ "bytesInOutput": 30127
12534
12542
  },
12535
12543
  "node_modules/eslint/lib/languages/js/source-code/index.js": {
12536
12544
  "bytesInOutput": 240
@@ -13511,7 +13519,7 @@
13511
13519
  "bytesInOutput": 11472
13512
13520
  },
13513
13521
  "node_modules/@eslint/config-array/dist/cjs/index.cjs": {
13514
- "bytesInOutput": 26163
13522
+ "bytesInOutput": 26170
13515
13523
  },
13516
13524
  "node_modules/eslint/lib/shared/severity.js": {
13517
13525
  "bytesInOutput": 928
@@ -13538,10 +13546,10 @@
13538
13546
  "bytesInOutput": 4470
13539
13547
  },
13540
13548
  "node_modules/eslint/lib/config/config.js": {
13541
- "bytesInOutput": 5990
13549
+ "bytesInOutput": 5992
13542
13550
  },
13543
13551
  "node_modules/eslint/lib/config/flat-config-array.js": {
13544
- "bytesInOutput": 4758
13552
+ "bytesInOutput": 4760
13545
13553
  },
13546
13554
  "node_modules/eslint/lib/shared/flags.js": {
13547
13555
  "bytesInOutput": 575
@@ -13592,7 +13600,7 @@
13592
13600
  "bytesInOutput": 262
13593
13601
  },
13594
13602
  "node_modules/eslint/lib/eslint/eslint-helpers.js": {
13595
- "bytesInOutput": 20276
13603
+ "bytesInOutput": 20280
13596
13604
  },
13597
13605
  "node_modules/json-buffer/index.js": {
13598
13606
  "bytesInOutput": 1665
@@ -13643,22 +13651,22 @@
13643
13651
  "bytesInOutput": 2238
13644
13652
  },
13645
13653
  "node_modules/eslint/lib/config/config-loader.js": {
13646
- "bytesInOutput": 19050
13654
+ "bytesInOutput": 19065
13647
13655
  },
13648
13656
  "node_modules/eslint/lib/eslint/eslint.js": {
13649
- "bytesInOutput": 26271
13657
+ "bytesInOutput": 26321
13650
13658
  },
13651
13659
  "node_modules/eslint/conf/default-cli-options.js": {
13652
13660
  "bytesInOutput": 783
13653
13661
  },
13654
13662
  "node_modules/eslint/lib/cli-engine/load-rules.js": {
13655
- "bytesInOutput": 759
13663
+ "bytesInOutput": 763
13656
13664
  },
13657
13665
  "node_modules/eslint/lib/cli-engine/cli-engine.js": {
13658
- "bytesInOutput": 24097
13666
+ "bytesInOutput": 24118
13659
13667
  },
13660
13668
  "node_modules/eslint/lib/eslint/legacy-eslint.js": {
13661
- "bytesInOutput": 20904
13669
+ "bytesInOutput": 20908
13662
13670
  },
13663
13671
  "node_modules/eslint/lib/unsupported-api.js": {
13664
13672
  "bytesInOutput": 494
@@ -13676,7 +13684,7 @@
13676
13684
  "bytesInOutput": 1018
13677
13685
  },
13678
13686
  "node_modules/eslint/lib/rule-tester/rule-tester.js": {
13679
- "bytesInOutput": 38608
13687
+ "bytesInOutput": 38627
13680
13688
  },
13681
13689
  "node_modules/eslint/lib/rule-tester/index.js": {
13682
13690
  "bytesInOutput": 227
@@ -14192,7 +14200,7 @@
14192
14200
  "bytesInOutput": 2060
14193
14201
  },
14194
14202
  "src/index.ts": {
14195
- "bytesInOutput": 2307
14203
+ "bytesInOutput": 2449
14196
14204
  },
14197
14205
  "package.json": {
14198
14206
  "bytesInOutput": 3085
@@ -14246,7 +14254,7 @@
14246
14254
  "bytesInOutput": 3362
14247
14255
  }
14248
14256
  },
14249
- "bytes": 3750711
14257
+ "bytes": 3751328
14250
14258
  }
14251
14259
  }
14252
14260
  }
@@ -1,4 +1,5 @@
1
1
  // src/index.ts
2
+ import _package from "../package.json" with { type: "json" };
2
3
  import invalidJsonStringify, { ruleId as invalidJsonStringifyRuleId } from "./invalid-json-stringify.mjs";
3
4
  import noFullResponse, { ruleId as noFullResponseRuleId } from "./agent/no-full-response.mjs";
4
5
  import noPromiseInstanceMethod, { ruleId as noPromiseInstanceMethodRuleId } from "./no-promise-instance-method.mjs";
@@ -17,60 +18,75 @@ import objectLiteralResponse from "./object-literal-response.mjs";
17
18
  import regexComment from "./regular-expression-comment.mjs";
18
19
  import requireAssertPredicateRejectsThrows from "./require-assert-predicate-rejects-throws.mjs";
19
20
  import requireStrictAssert from "./require-strict-assert.mjs";
20
- var src_default = {
21
- rules: {
22
- "file-path-comment": filePathComment,
23
- "no-card-numbers": noCardNumbers,
24
- "no-uuid": noUuid,
25
- "require-strict-assert": requireStrictAssert,
26
- "no-test-import": noTestImport,
27
- "no-wallaby-comment": noWallabyComment,
28
- "regular-expression-comment": regexComment,
29
- "require-assert-predicate-rejects-throws": requireAssertPredicateRejectsThrows,
30
- "object-literal-response": objectLiteralResponse,
31
- [invalidJsonStringifyRuleId]: invalidJsonStringify,
32
- [noPromiseInstanceMethodRuleId]: noPromiseInstanceMethod,
33
- [noFullResponseRuleId]: noFullResponse,
34
- [requireResolveFullResponseRuleId]: requireResolveFullResponse,
35
- [requireTypeOutOfTypeOnlyImportsRuleId]: requireTypeOutOfTypeOnlyImports
21
+ var rules = {
22
+ "file-path-comment": filePathComment,
23
+ "no-card-numbers": noCardNumbers,
24
+ "no-uuid": noUuid,
25
+ "require-strict-assert": requireStrictAssert,
26
+ "no-test-import": noTestImport,
27
+ "no-wallaby-comment": noWallabyComment,
28
+ "regular-expression-comment": regexComment,
29
+ "require-assert-predicate-rejects-throws": requireAssertPredicateRejectsThrows,
30
+ "object-literal-response": objectLiteralResponse,
31
+ [invalidJsonStringifyRuleId]: invalidJsonStringify,
32
+ [noPromiseInstanceMethodRuleId]: noPromiseInstanceMethod,
33
+ [noFullResponseRuleId]: noFullResponse,
34
+ [requireResolveFullResponseRuleId]: requireResolveFullResponse,
35
+ [requireTypeOutOfTypeOnlyImportsRuleId]: requireTypeOutOfTypeOnlyImports
36
+ };
37
+ var plugin = {
38
+ meta: {
39
+ name: _package.name,
40
+ version: _package.version
41
+ },
42
+ rules
43
+ };
44
+ var configs = {
45
+ all: {
46
+ plugins: {
47
+ "@checkdigit": plugin
48
+ },
49
+ rules: {
50
+ "@checkdigit/no-card-numbers": "error",
51
+ "@checkdigit/file-path-comment": "error",
52
+ "@checkdigit/no-uuid": "error",
53
+ "@checkdigit/require-strict-assert": "error",
54
+ "@checkdigit/no-wallaby-comment": "error",
55
+ "@checkdigit/regular-expression-comment": "error",
56
+ "@checkdigit/require-assert-predicate-rejects-throws": "error",
57
+ "@checkdigit/object-literal-response": "error",
58
+ "@checkdigit/no-test-import": "error",
59
+ [`@checkdigit/${invalidJsonStringifyRuleId}`]: "error",
60
+ [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: "error",
61
+ [`@checkdigit/${noFullResponseRuleId}`]: "error",
62
+ [`@checkdigit/${requireResolveFullResponseRuleId}`]: "error",
63
+ [`@checkdigit/${requireTypeOutOfTypeOnlyImportsRuleId}`]: "error"
64
+ }
36
65
  },
37
- configs: {
38
- all: {
39
- rules: {
40
- "@checkdigit/no-card-numbers": "error",
41
- "@checkdigit/file-path-comment": "error",
42
- "@checkdigit/no-uuid": "error",
43
- "@checkdigit/require-strict-assert": "error",
44
- "@checkdigit/no-wallaby-comment": "error",
45
- "@checkdigit/regular-expression-comment": "error",
46
- "@checkdigit/require-assert-predicate-rejects-throws": "error",
47
- "@checkdigit/object-literal-response": "error",
48
- "@checkdigit/no-test-import": "error",
49
- [`@checkdigit/${invalidJsonStringifyRuleId}`]: "error",
50
- [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: "error",
51
- [`@checkdigit/${noFullResponseRuleId}`]: "error",
52
- [`@checkdigit/${requireResolveFullResponseRuleId}`]: "error",
53
- [`@checkdigit/${requireTypeOutOfTypeOnlyImportsRuleId}`]: "error"
54
- }
66
+ recommended: {
67
+ plugins: {
68
+ "@checkdigit": plugin
55
69
  },
56
- recommended: {
57
- rules: {
58
- "@checkdigit/no-card-numbers": "error",
59
- "@checkdigit/file-path-comment": "off",
60
- "@checkdigit/no-uuid": "error",
61
- "@checkdigit/require-strict-assert": "error",
62
- "@checkdigit/no-wallaby-comment": "off",
63
- "@checkdigit/regular-expression-comment": "error",
64
- "@checkdigit/require-assert-predicate-rejects-throws": "error",
65
- "@checkdigit/object-literal-response": "error",
66
- "@checkdigit/no-test-import": "error",
67
- [`@checkdigit/${invalidJsonStringifyRuleId}`]: "error",
68
- [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: "error"
69
- }
70
+ rules: {
71
+ "@checkdigit/no-card-numbers": "error",
72
+ "@checkdigit/file-path-comment": "off",
73
+ "@checkdigit/no-uuid": "error",
74
+ "@checkdigit/require-strict-assert": "error",
75
+ "@checkdigit/no-wallaby-comment": "off",
76
+ "@checkdigit/regular-expression-comment": "error",
77
+ "@checkdigit/require-assert-predicate-rejects-throws": "error",
78
+ "@checkdigit/object-literal-response": "error",
79
+ "@checkdigit/no-test-import": "error",
80
+ [`@checkdigit/${invalidJsonStringifyRuleId}`]: "error",
81
+ [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: "error"
70
82
  }
71
83
  }
72
84
  };
85
+ var src_default = {
86
+ ...plugin,
87
+ configs
88
+ };
73
89
  export {
74
90
  src_default as default
75
91
  };
76
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgIm1hcHBpbmdzIjogIjtBQVFBLE9BQU8sd0JBQXdCLFVBQVUsa0NBQWtDO0FBQzNFLE9BQU8sa0JBQWtCLFVBQVUsNEJBQTRCO0FBQy9ELE9BQU8sMkJBQTJCLFVB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comment': import("eslint").Rule.RuleModule;
4
- 'no-card-numbers': import("eslint").Rule.RuleModule;
5
- 'no-uuid': import("eslint").Rule.RuleModule;
6
- 'require-strict-assert': import("eslint").Rule.RuleModule;
7
- 'no-test-import': import("eslint").Rule.RuleModule;
8
- 'no-wallaby-comment': import("eslint").Rule.RuleModule;
9
- 'regular-expression-comment': import("eslint").Rule.RuleModule;
10
- 'require-assert-predicate-rejects-throws': import("eslint").Rule.RuleModule;
11
- 'object-literal-response': import("eslint").Rule.RuleModule;
12
- "invalid-json-stringify": import("eslint").Rule.RuleModule;
13
- "no-promise-instance-method": import("eslint").Rule.RuleModule;
14
- "no-full-response": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeFullResponse" | "unknownError", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
15
- "require-resolve-full-response": import("@typescript-eslint/utils/ts-eslint").RuleModule<"unknownError" | "invalidOptions", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
16
- "require-type-out-of-type-only-imports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"moveTypeOutside", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
17
- };
18
- configs: {
19
- all: {
20
- rules: {
21
- '@checkdigit/no-card-numbers': string;
22
- '@checkdigit/file-path-comment': string;
23
- '@checkdigit/no-uuid': string;
24
- '@checkdigit/require-strict-assert': string;
25
- '@checkdigit/no-wallaby-comment': string;
26
- '@checkdigit/regular-expression-comment': string;
27
- '@checkdigit/require-assert-predicate-rejects-throws': string;
28
- '@checkdigit/object-literal-response': string;
29
- '@checkdigit/no-test-import': string;
30
- "@checkdigit/invalid-json-stringify": string;
31
- "@checkdigit/no-promise-instance-method": string;
32
- "@checkdigit/no-full-response": string;
33
- "@checkdigit/require-resolve-full-response": string;
34
- "@checkdigit/require-type-out-of-type-only-imports": string;
35
- };
36
- };
37
- recommended: {
38
- rules: {
39
- '@checkdigit/no-card-numbers': string;
40
- '@checkdigit/file-path-comment': string;
41
- '@checkdigit/no-uuid': string;
42
- '@checkdigit/require-strict-assert': string;
43
- '@checkdigit/no-wallaby-comment': string;
44
- '@checkdigit/regular-expression-comment': string;
45
- '@checkdigit/require-assert-predicate-rejects-throws': string;
46
- '@checkdigit/object-literal-response': string;
47
- '@checkdigit/no-test-import': string;
48
- "@checkdigit/invalid-json-stringify": string;
49
- "@checkdigit/no-promise-instance-method": string;
50
- };
51
- };
3
+ configs: Record<string, TSESLint.FlatConfig.Config>;
4
+ meta?: {
5
+ name?: string | undefined;
6
+ version?: string | undefined;
52
7
  };
8
+ processors?: Partial<Record<string, TSESLint.Processor.LooseProcessorModule>> | undefined;
9
+ rules?: Record<string, TSESLint.LooseRuleDefinition> | undefined;
53
10
  };
54
11
  export default _default;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@checkdigit/eslint-plugin","version":"7.0.0-PR.88-a0ce","description":"Check Digit eslint plugins","keywords":["eslint","eslintplugin"],"homepage":"https://github.com/checkdigit/eslint-plugin#readme","bugs":{"url":"https://github.com/checkdigit/eslint-plugin/issues"},"repository":{"type":"git","url":"https://github.com/checkdigit/eslint-plugin"},"license":"MIT","author":"Check Digit, LLC","sideEffects":false,"type":"module","exports":{".":{"types":"./dist-types/index.d.ts","require":"./dist-cjs/index.cjs","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"files":["src","dist-types","dist-cjs","dist-mjs","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-cjs/**/*.test.cjs","!dist-cjs/**/*.spec.cjs","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"scripts":{"build:dist-cjs":"rimraf dist-cjs && npx builder --type=commonjs --sourceMap --entryPoint=index.ts --outDir=dist-cjs --outFile=index.cjs --external=espree && echo \"module.exports = module.exports.default;\" >> dist-cjs/index.cjs && node dist-cjs/index.cjs","build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","ci:compile":"tsc --noEmit","ci:coverage":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier","ci:test":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false","lint":"eslint --max-warnings 0 .","lint:fix":"eslint . --fix","prepublishOnly":"npm run build:dist-types && npm run build:dist-cjs && npm run build:dist-mjs","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style"},"prettier":"@checkdigit/prettier-config","jest":{"preset":"@checkdigit/jest-config"},"dependencies":{"@typescript-eslint/type-utils":"^8.8.1","@typescript-eslint/utils":"^8.8.1","ts-api-utils":"^1.3.0"},"devDependencies":{"@checkdigit/jest-config":"^6.0.2","@checkdigit/prettier-config":"^5.5.1","@checkdigit/typescript-config":"6.0.0","@eslint/js":"^9.12.0","@types/eslint":"^9.6.1","@types/eslint-config-prettier":"^6.11.3","@typescript-eslint/parser":"^8.8.1","@typescript-eslint/rule-tester":"^8.8.1","eslint":"^9.12.0","eslint-config-prettier":"^9.1.0","eslint-import-resolver-typescript":"^3.6.3","eslint-plugin-eslint-plugin":"^6.2.0","eslint-plugin-import":"^2.31.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-no-secrets":"^1.0.2","eslint-plugin-node":"^11.1.0","eslint-plugin-sonarjs":"1.0.4","http-status-codes":"^2.3.0","rimraf":"^6.0.1","typescript-eslint":"^8.8.1"},"peerDependencies":{"eslint":">=9 <10"},"engines":{"node":">=20.14"}}
1
+ {"name":"@checkdigit/eslint-plugin","version":"7.0.0-PR.88-46de","description":"Check Digit eslint plugins","keywords":["eslint","eslintplugin"],"homepage":"https://github.com/checkdigit/eslint-plugin#readme","bugs":{"url":"https://github.com/checkdigit/eslint-plugin/issues"},"repository":{"type":"git","url":"https://github.com/checkdigit/eslint-plugin"},"license":"MIT","author":"Check Digit, LLC","sideEffects":false,"type":"module","exports":{".":{"types":"./dist-types/index.d.ts","require":"./dist-cjs/index.cjs","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"files":["src","dist-types","dist-cjs","dist-mjs","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-cjs/**/*.test.cjs","!dist-cjs/**/*.spec.cjs","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"scripts":{"build:dist-cjs":"rimraf dist-cjs && npx builder --type=commonjs --sourceMap --entryPoint=index.ts --outDir=dist-cjs --outFile=index.cjs --external=espree && echo \"module.exports = module.exports.default;\" >> dist-cjs/index.cjs && node dist-cjs/index.cjs","build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","ci:compile":"tsc --noEmit","ci:coverage":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier","ci:test":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false","lint":"eslint --max-warnings 0 .","lint:fix":"eslint . --fix","prepublishOnly":"npm run build:dist-types && npm run build:dist-cjs && npm run build:dist-mjs","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style"},"prettier":"@checkdigit/prettier-config","jest":{"preset":"@checkdigit/jest-config"},"dependencies":{"@typescript-eslint/type-utils":"^8.8.1","@typescript-eslint/utils":"^8.8.1","ts-api-utils":"^1.3.0"},"devDependencies":{"@checkdigit/jest-config":"^6.0.2","@checkdigit/prettier-config":"^5.5.1","@checkdigit/typescript-config":"6.0.0","@eslint/js":"^9.12.0","@types/eslint":"^9.6.1","@types/eslint-config-prettier":"^6.11.3","@typescript-eslint/parser":"^8.8.1","@typescript-eslint/rule-tester":"^8.8.1","eslint":"^9.12.0","eslint-config-prettier":"^9.1.0","eslint-import-resolver-typescript":"^3.6.3","eslint-plugin-eslint-plugin":"^6.2.0","eslint-plugin-import":"^2.31.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-no-secrets":"^1.0.2","eslint-plugin-node":"^11.1.0","eslint-plugin-sonarjs":"1.0.4","http-status-codes":"^2.3.0","rimraf":"^6.0.1","typescript-eslint":"^8.8.1"},"peerDependencies":{"eslint":">=9 <10"},"engines":{"node":">=20.14"}}
package/src/index.ts CHANGED
@@ -6,6 +6,9 @@
6
6
  * This code is licensed under the MIT license (see LICENSE.txt for details).
7
7
  */
8
8
 
9
+ import type { TSESLint } from '@typescript-eslint/utils';
10
+
11
+ import _package from '../package.json' with { type: 'json' };
9
12
  import invalidJsonStringify, { ruleId as invalidJsonStringifyRuleId } from './invalid-json-stringify';
10
13
  import noFullResponse, { ruleId as noFullResponseRuleId } from './agent/no-full-response';
11
14
  import noPromiseInstanceMethod, { ruleId as noPromiseInstanceMethodRuleId } from './no-promise-instance-method';
@@ -25,56 +28,74 @@ import regexComment from './regular-expression-comment';
25
28
  import requireAssertPredicateRejectsThrows from './require-assert-predicate-rejects-throws';
26
29
  import requireStrictAssert from './require-strict-assert';
27
30
 
28
- export default {
29
- rules: {
30
- 'file-path-comment': filePathComment,
31
- 'no-card-numbers': noCardNumbers,
32
- 'no-uuid': noUuid,
33
- 'require-strict-assert': requireStrictAssert,
34
- 'no-test-import': noTestImport,
35
- 'no-wallaby-comment': noWallabyComment,
36
- 'regular-expression-comment': regexComment,
37
- 'require-assert-predicate-rejects-throws': requireAssertPredicateRejectsThrows,
38
- 'object-literal-response': objectLiteralResponse,
39
- [invalidJsonStringifyRuleId]: invalidJsonStringify,
40
- [noPromiseInstanceMethodRuleId]: noPromiseInstanceMethod,
41
- [noFullResponseRuleId]: noFullResponse,
42
- [requireResolveFullResponseRuleId]: requireResolveFullResponse,
43
- [requireTypeOutOfTypeOnlyImportsRuleId]: requireTypeOutOfTypeOnlyImports,
31
+ const rules: Record<string, TSESLint.LooseRuleDefinition> = {
32
+ 'file-path-comment': filePathComment,
33
+ 'no-card-numbers': noCardNumbers,
34
+ 'no-uuid': noUuid,
35
+ 'require-strict-assert': requireStrictAssert,
36
+ 'no-test-import': noTestImport,
37
+ 'no-wallaby-comment': noWallabyComment,
38
+ 'regular-expression-comment': regexComment,
39
+ 'require-assert-predicate-rejects-throws': requireAssertPredicateRejectsThrows,
40
+ 'object-literal-response': objectLiteralResponse,
41
+ [invalidJsonStringifyRuleId]: invalidJsonStringify,
42
+ [noPromiseInstanceMethodRuleId]: noPromiseInstanceMethod,
43
+ [noFullResponseRuleId]: noFullResponse,
44
+ [requireResolveFullResponseRuleId]: requireResolveFullResponse,
45
+ [requireTypeOutOfTypeOnlyImportsRuleId]: requireTypeOutOfTypeOnlyImports,
46
+ };
47
+
48
+ const plugin: TSESLint.FlatConfig.Plugin = {
49
+ meta: {
50
+ name: _package.name,
51
+ version: _package.version,
52
+ },
53
+ rules,
54
+ };
55
+
56
+ const configs: Record<string, TSESLint.FlatConfig.Config> = {
57
+ all: {
58
+ plugins: {
59
+ '@checkdigit': plugin,
60
+ },
61
+ rules: {
62
+ '@checkdigit/no-card-numbers': 'error',
63
+ '@checkdigit/file-path-comment': 'error',
64
+ '@checkdigit/no-uuid': 'error',
65
+ '@checkdigit/require-strict-assert': 'error',
66
+ '@checkdigit/no-wallaby-comment': 'error',
67
+ '@checkdigit/regular-expression-comment': 'error',
68
+ '@checkdigit/require-assert-predicate-rejects-throws': 'error',
69
+ '@checkdigit/object-literal-response': 'error',
70
+ '@checkdigit/no-test-import': 'error',
71
+ [`@checkdigit/${invalidJsonStringifyRuleId}`]: 'error',
72
+ [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: 'error',
73
+ [`@checkdigit/${noFullResponseRuleId}`]: 'error',
74
+ [`@checkdigit/${requireResolveFullResponseRuleId}`]: 'error',
75
+ [`@checkdigit/${requireTypeOutOfTypeOnlyImportsRuleId}`]: 'error',
76
+ },
44
77
  },
45
- configs: {
46
- all: {
47
- rules: {
48
- '@checkdigit/no-card-numbers': 'error',
49
- '@checkdigit/file-path-comment': 'error',
50
- '@checkdigit/no-uuid': 'error',
51
- '@checkdigit/require-strict-assert': 'error',
52
- '@checkdigit/no-wallaby-comment': 'error',
53
- '@checkdigit/regular-expression-comment': 'error',
54
- '@checkdigit/require-assert-predicate-rejects-throws': 'error',
55
- '@checkdigit/object-literal-response': 'error',
56
- '@checkdigit/no-test-import': 'error',
57
- [`@checkdigit/${invalidJsonStringifyRuleId}`]: 'error',
58
- [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: 'error',
59
- [`@checkdigit/${noFullResponseRuleId}`]: 'error',
60
- [`@checkdigit/${requireResolveFullResponseRuleId}`]: 'error',
61
- [`@checkdigit/${requireTypeOutOfTypeOnlyImportsRuleId}`]: 'error',
62
- },
78
+ recommended: {
79
+ plugins: {
80
+ '@checkdigit': plugin,
63
81
  },
64
- recommended: {
65
- rules: {
66
- '@checkdigit/no-card-numbers': 'error',
67
- '@checkdigit/file-path-comment': 'off',
68
- '@checkdigit/no-uuid': 'error',
69
- '@checkdigit/require-strict-assert': 'error',
70
- '@checkdigit/no-wallaby-comment': 'off',
71
- '@checkdigit/regular-expression-comment': 'error',
72
- '@checkdigit/require-assert-predicate-rejects-throws': 'error',
73
- '@checkdigit/object-literal-response': 'error',
74
- '@checkdigit/no-test-import': 'error',
75
- [`@checkdigit/${invalidJsonStringifyRuleId}`]: 'error',
76
- [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: 'error',
77
- },
82
+ rules: {
83
+ '@checkdigit/no-card-numbers': 'error',
84
+ '@checkdigit/file-path-comment': 'off',
85
+ '@checkdigit/no-uuid': 'error',
86
+ '@checkdigit/require-strict-assert': 'error',
87
+ '@checkdigit/no-wallaby-comment': 'off',
88
+ '@checkdigit/regular-expression-comment': 'error',
89
+ '@checkdigit/require-assert-predicate-rejects-throws': 'error',
90
+ '@checkdigit/object-literal-response': 'error',
91
+ '@checkdigit/no-test-import': 'error',
92
+ [`@checkdigit/${invalidJsonStringifyRuleId}`]: 'error',
93
+ [`@checkdigit/${noPromiseInstanceMethodRuleId}`]: 'error',
78
94
  },
79
95
  },
80
96
  };
97
+
98
+ export default {
99
+ ...plugin,
100
+ configs,
101
+ };