@checkdigit/eslint-plugin 7.6.0-PR.102-c994 → 7.6.0-PR.102-cd28
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/package.json +1 -1
- package/src/index.ts +19 -19
- package/src/invalid-json-stringify.ts +1 -1
- package/src/no-duplicated-imports.ts +1 -1
- package/src/no-legacy-service-typing.ts +1 -1
- package/src/no-promise-instance-method.ts +1 -1
- package/src/no-random-v4-uuid.ts +1 -1
- package/src/no-serve-runtime.ts +1 -1
- package/src/require-fixed-services-import.ts +1 -1
- package/src/require-resolve-full-response.ts +2 -2
- package/src/require-type-out-of-type-only-imports.ts +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@checkdigit/eslint-plugin","version":"7.6.0-PR.102-
|
|
1
|
+
{"name":"@checkdigit/eslint-plugin","version":"7.6.0-PR.102-cd28","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","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"files":["src","dist-types","dist-mjs","!src/**/test/**","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/test/**","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-mjs/**/test/**","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"scripts":{"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 --max-warnings 0 --fix .","prepare":"","prepublishOnly":"npm run build:dist-types && 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.17.0","@typescript-eslint/utils":"^8.17.0","ts-api-utils":"^2.0.0"},"devDependencies":{"@checkdigit/jest-config":"^6.0.2","@checkdigit/prettier-config":"^6.0.0","@checkdigit/typescript-config":"^9.0.0","@eslint/js":"^9.16.0","@types/eslint":"^9.6.1","@types/eslint-config-prettier":"^6.11.3","@typescript-eslint/parser":"^8.17.0","@typescript-eslint/rule-tester":"^8.17.0","eslint":"^9.16.0","eslint-config-prettier":"^9.1.0","eslint-import-resolver-typescript":"^3.7.0","eslint-plugin-eslint-plugin":"^6.3.2","eslint-plugin-import":"^2.31.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-no-secrets":"^2.1.1","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.17.0"},"peerDependencies":{"eslint":">=9 <10"},"engines":{"node":">=20.17"}}
|
package/src/index.ts
CHANGED
|
@@ -8,31 +8,31 @@
|
|
|
8
8
|
|
|
9
9
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
10
10
|
|
|
11
|
-
import invalidJsonStringify, { ruleId as invalidJsonStringifyRuleId } from './invalid-json-stringify';
|
|
12
|
-
import noDuplicatedImports, { ruleId as noDuplicatedImportsRuleId } from './no-duplicated-imports';
|
|
13
|
-
import noLegacyServiceTyping, { ruleId as noLegacyServiceTypingRuleId } from './no-legacy-service-typing';
|
|
14
|
-
import noPromiseInstanceMethod, { ruleId as noPromiseInstanceMethodRuleId } from './no-promise-instance-method';
|
|
11
|
+
import invalidJsonStringify, { ruleId as invalidJsonStringifyRuleId } from './invalid-json-stringify.ts';
|
|
12
|
+
import noDuplicatedImports, { ruleId as noDuplicatedImportsRuleId } from './no-duplicated-imports.ts';
|
|
13
|
+
import noLegacyServiceTyping, { ruleId as noLegacyServiceTypingRuleId } from './no-legacy-service-typing.ts';
|
|
14
|
+
import noPromiseInstanceMethod, { ruleId as noPromiseInstanceMethodRuleId } from './no-promise-instance-method.ts';
|
|
15
15
|
import requireFixedServicesImport, {
|
|
16
16
|
ruleId as requireFixedServicesImportRuleId,
|
|
17
|
-
} from './require-fixed-services-import';
|
|
17
|
+
} from './require-fixed-services-import.ts';
|
|
18
18
|
import requireResolveFullResponse, {
|
|
19
19
|
ruleId as requireResolveFullResponseRuleId,
|
|
20
|
-
} from './require-resolve-full-response';
|
|
20
|
+
} from './require-resolve-full-response.ts';
|
|
21
21
|
import requireTypeOutOfTypeOnlyImports, {
|
|
22
22
|
ruleId as requireTypeOutOfTypeOnlyImportsRuleId,
|
|
23
|
-
} from './require-type-out-of-type-only-imports';
|
|
24
|
-
import noServeRuntime, { ruleId as noServeRuntimeRuleId } from './no-serve-runtime';
|
|
25
|
-
import filePathComment from './file-path-comment';
|
|
26
|
-
import noCardNumbers from './no-card-numbers';
|
|
27
|
-
import noSideEffects from './no-side-effects';
|
|
28
|
-
import noRandomV4UUID from './no-random-v4-uuid';
|
|
29
|
-
import noTestImport from './no-test-import';
|
|
30
|
-
import noUuid from './no-uuid';
|
|
31
|
-
import noWallabyComment from './no-wallaby-comment';
|
|
32
|
-
import objectLiteralResponse from './object-literal-response';
|
|
33
|
-
import regexComment from './regular-expression-comment';
|
|
34
|
-
import requireAssertPredicateRejectsThrows from './require-assert-predicate-rejects-throws';
|
|
35
|
-
import requireStrictAssert from './require-strict-assert';
|
|
23
|
+
} from './require-type-out-of-type-only-imports.ts';
|
|
24
|
+
import noServeRuntime, { ruleId as noServeRuntimeRuleId } from './no-serve-runtime.ts';
|
|
25
|
+
import filePathComment from './file-path-comment.ts';
|
|
26
|
+
import noCardNumbers from './no-card-numbers.ts';
|
|
27
|
+
import noSideEffects from './no-side-effects.ts';
|
|
28
|
+
import noRandomV4UUID from './no-random-v4-uuid.ts';
|
|
29
|
+
import noTestImport from './no-test-import.ts';
|
|
30
|
+
import noUuid from './no-uuid.ts';
|
|
31
|
+
import noWallabyComment from './no-wallaby-comment.ts';
|
|
32
|
+
import objectLiteralResponse from './object-literal-response.ts';
|
|
33
|
+
import regexComment from './regular-expression-comment.ts';
|
|
34
|
+
import requireAssertPredicateRejectsThrows from './require-assert-predicate-rejects-throws.ts';
|
|
35
|
+
import requireStrictAssert from './require-strict-assert.ts';
|
|
36
36
|
|
|
37
37
|
const rules: Record<string, TSESLint.LooseRuleDefinition> = {
|
|
38
38
|
'file-path-comment': filePathComment,
|
|
@@ -10,7 +10,7 @@ import { strict as assert } from 'node:assert';
|
|
|
10
10
|
|
|
11
11
|
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';
|
|
12
12
|
|
|
13
|
-
import getDocumentationUrl from './get-documentation-url';
|
|
13
|
+
import getDocumentationUrl from './get-documentation-url.ts';
|
|
14
14
|
|
|
15
15
|
export const ruleId = 'no-duplicated-imports';
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { AST_NODE_TYPES, ESLintUtils, TSESTree } from '@typescript-eslint/utils';
|
|
10
|
-
import getDocumentationUrl from './get-documentation-url';
|
|
10
|
+
import getDocumentationUrl from './get-documentation-url.ts';
|
|
11
11
|
|
|
12
12
|
export const ruleId = 'no-legacy-service-typing';
|
|
13
13
|
|
package/src/no-random-v4-uuid.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { AST_NODE_TYPES, ESLintUtils, TSESLint, TSESTree } from '@typescript-eslint/utils';
|
|
10
|
-
import getDocumentationUrl from './get-documentation-url';
|
|
10
|
+
import getDocumentationUrl from './get-documentation-url.ts';
|
|
11
11
|
|
|
12
12
|
export const ruleId = 'no-random-v4-uuid';
|
|
13
13
|
const NO_RANDOM_V4_UUID = 'NO_RANDOM_V4_UUID';
|
package/src/no-serve-runtime.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
import { strict as assert } from 'node:assert';
|
|
10
10
|
import { AST_NODE_TYPES, ESLintUtils, TSESTree } from '@typescript-eslint/utils';
|
|
11
11
|
import { DefinitionType, type Scope } from '@typescript-eslint/scope-manager';
|
|
12
|
-
import getDocumentationUrl from './get-documentation-url';
|
|
13
|
-
import { getEnclosingScopeNode } from './library/ts-tree';
|
|
12
|
+
import getDocumentationUrl from './get-documentation-url.ts';
|
|
13
|
+
import { getEnclosingScopeNode } from './library/ts-tree.ts';
|
|
14
14
|
|
|
15
15
|
export const ruleId = 'require-resolve-full-response';
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';
|
|
10
|
-
import getDocumentationUrl from './get-documentation-url';
|
|
10
|
+
import getDocumentationUrl from './get-documentation-url.ts';
|
|
11
11
|
|
|
12
12
|
export const ruleId = 'require-type-out-of-type-only-imports';
|
|
13
13
|
|