eslint-plugin-complete 1.0.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/LICENSE +9 -0
- package/README.md +114 -0
- package/dist/comments.d.ts +22 -0
- package/dist/comments.d.ts.map +1 -0
- package/dist/comments.js +66 -0
- package/dist/completeCommon.d.ts +25 -0
- package/dist/completeCommon.d.ts.map +1 -0
- package/dist/completeCommon.js +53 -0
- package/dist/completeSentence.d.ts +9 -0
- package/dist/completeSentence.d.ts.map +1 -0
- package/dist/completeSentence.js +267 -0
- package/dist/configs/recommended.d.ts +3 -0
- package/dist/configs/recommended.d.ts.map +1 -0
- package/dist/configs/recommended.js +63 -0
- package/dist/configs.d.ts +4 -0
- package/dist/configs.d.ts.map +1 -0
- package/dist/configs.js +4 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +73 -0
- package/dist/format.d.ts +18 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +246 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/interfaces/MyPluginDocs.d.ts +6 -0
- package/dist/interfaces/MyPluginDocs.d.ts.map +1 -0
- package/dist/interfaces/MyPluginDocs.js +1 -0
- package/dist/jsdoc.d.ts +4 -0
- package/dist/jsdoc.d.ts.map +1 -0
- package/dist/jsdoc.js +24 -0
- package/dist/leadingLineComments.d.ts +32 -0
- package/dist/leadingLineComments.d.ts.map +1 -0
- package/dist/leadingLineComments.js +77 -0
- package/dist/list.d.ts +49 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +140 -0
- package/dist/rules/complete-sentences-jsdoc.d.ts +4 -0
- package/dist/rules/complete-sentences-jsdoc.d.ts.map +1 -0
- package/dist/rules/complete-sentences-jsdoc.js +48 -0
- package/dist/rules/complete-sentences-line-comments.d.ts +4 -0
- package/dist/rules/complete-sentences-line-comments.d.ts.map +1 -0
- package/dist/rules/complete-sentences-line-comments.js +88 -0
- package/dist/rules/consistent-enum-values.d.ts +2 -0
- package/dist/rules/consistent-enum-values.d.ts.map +1 -0
- package/dist/rules/consistent-enum-values.js +46 -0
- package/dist/rules/consistent-named-tuples.d.ts +2 -0
- package/dist/rules/consistent-named-tuples.d.ts.map +1 -0
- package/dist/rules/consistent-named-tuples.js +34 -0
- package/dist/rules/eqeqeq-fix.d.ts +2 -0
- package/dist/rules/eqeqeq-fix.d.ts.map +1 -0
- package/dist/rules/eqeqeq-fix.js +173 -0
- package/dist/rules/format-jsdoc-comments.d.ts +8 -0
- package/dist/rules/format-jsdoc-comments.d.ts.map +1 -0
- package/dist/rules/format-jsdoc-comments.js +117 -0
- package/dist/rules/format-line-comments.d.ts +8 -0
- package/dist/rules/format-line-comments.d.ts.map +1 -0
- package/dist/rules/format-line-comments.js +118 -0
- package/dist/rules/jsdoc-code-block-language.d.ts +2 -0
- package/dist/rules/jsdoc-code-block-language.d.ts.map +1 -0
- package/dist/rules/jsdoc-code-block-language.js +52 -0
- package/dist/rules/newline-between-switch-case.d.ts +4 -0
- package/dist/rules/newline-between-switch-case.d.ts.map +1 -0
- package/dist/rules/newline-between-switch-case.js +63 -0
- package/dist/rules/no-confusing-set-methods.d.ts +5 -0
- package/dist/rules/no-confusing-set-methods.d.ts.map +1 -0
- package/dist/rules/no-confusing-set-methods.js +51 -0
- package/dist/rules/no-empty-jsdoc.d.ts +2 -0
- package/dist/rules/no-empty-jsdoc.d.ts.map +1 -0
- package/dist/rules/no-empty-jsdoc.js +45 -0
- package/dist/rules/no-empty-line-comments.d.ts +2 -0
- package/dist/rules/no-empty-line-comments.d.ts.map +1 -0
- package/dist/rules/no-empty-line-comments.js +40 -0
- package/dist/rules/no-explicit-array-loops.d.ts +5 -0
- package/dist/rules/no-explicit-array-loops.d.ts.map +1 -0
- package/dist/rules/no-explicit-array-loops.js +114 -0
- package/dist/rules/no-explicit-map-set-loops.d.ts +5 -0
- package/dist/rules/no-explicit-map-set-loops.d.ts.map +1 -0
- package/dist/rules/no-explicit-map-set-loops.js +74 -0
- package/dist/rules/no-for-in.d.ts +2 -0
- package/dist/rules/no-for-in.d.ts.map +1 -0
- package/dist/rules/no-for-in.js +27 -0
- package/dist/rules/no-let-any.d.ts +3 -0
- package/dist/rules/no-let-any.d.ts.map +1 -0
- package/dist/rules/no-let-any.js +45 -0
- package/dist/rules/no-mutable-return.d.ts +5 -0
- package/dist/rules/no-mutable-return.d.ts.map +1 -0
- package/dist/rules/no-mutable-return.js +63 -0
- package/dist/rules/no-number-enums.d.ts +2 -0
- package/dist/rules/no-number-enums.d.ts.map +1 -0
- package/dist/rules/no-number-enums.js +27 -0
- package/dist/rules/no-object-any.d.ts +3 -0
- package/dist/rules/no-object-any.d.ts.map +1 -0
- package/dist/rules/no-object-any.js +51 -0
- package/dist/rules/no-object-methods-with-map-set.d.ts +5 -0
- package/dist/rules/no-object-methods-with-map-set.d.ts.map +1 -0
- package/dist/rules/no-object-methods-with-map-set.js +84 -0
- package/dist/rules/no-string-length-0.d.ts +3 -0
- package/dist/rules/no-string-length-0.d.ts.map +1 -0
- package/dist/rules/no-string-length-0.js +52 -0
- package/dist/rules/no-template-curly-in-string-fix.d.ts +6 -0
- package/dist/rules/no-template-curly-in-string-fix.d.ts.map +1 -0
- package/dist/rules/no-template-curly-in-string-fix.js +39 -0
- package/dist/rules/no-undefined-return-type.d.ts +3 -0
- package/dist/rules/no-undefined-return-type.d.ts.map +1 -0
- package/dist/rules/no-undefined-return-type.js +40 -0
- package/dist/rules/no-unnecessary-assignment.d.ts +5 -0
- package/dist/rules/no-unnecessary-assignment.d.ts.map +1 -0
- package/dist/rules/no-unnecessary-assignment.js +255 -0
- package/dist/rules/no-unsafe-plusplus.d.ts +2 -0
- package/dist/rules/no-unsafe-plusplus.d.ts.map +1 -0
- package/dist/rules/no-unsafe-plusplus.js +34 -0
- package/dist/rules/no-useless-return.d.ts +2 -0
- package/dist/rules/no-useless-return.d.ts.map +1 -0
- package/dist/rules/no-useless-return.js +347 -0
- package/dist/rules/no-void-return-type.d.ts +2 -0
- package/dist/rules/no-void-return-type.d.ts.map +1 -0
- package/dist/rules/no-void-return-type.js +49 -0
- package/dist/rules/prefer-const.d.ts +2 -0
- package/dist/rules/prefer-const.d.ts.map +1 -0
- package/dist/rules/prefer-const.js +426 -0
- package/dist/rules/prefer-plusplus.d.ts +5 -0
- package/dist/rules/prefer-plusplus.d.ts.map +1 -0
- package/dist/rules/prefer-plusplus.js +49 -0
- package/dist/rules/prefer-postfix-plusplus.d.ts +2 -0
- package/dist/rules/prefer-postfix-plusplus.d.ts.map +1 -0
- package/dist/rules/prefer-postfix-plusplus.js +32 -0
- package/dist/rules/prefer-readonly-parameter-types.d.ts +13 -0
- package/dist/rules/prefer-readonly-parameter-types.d.ts.map +1 -0
- package/dist/rules/prefer-readonly-parameter-types.js +140 -0
- package/dist/rules/require-break.d.ts +5 -0
- package/dist/rules/require-break.d.ts.map +1 -0
- package/dist/rules/require-break.js +76 -0
- package/dist/rules/require-capital-const-assertions.d.ts +4 -0
- package/dist/rules/require-capital-const-assertions.d.ts.map +1 -0
- package/dist/rules/require-capital-const-assertions.js +112 -0
- package/dist/rules/require-capital-read-only.d.ts +5 -0
- package/dist/rules/require-capital-read-only.d.ts.map +1 -0
- package/dist/rules/require-capital-read-only.js +111 -0
- package/dist/rules/require-unannotated-const-assertions.d.ts +2 -0
- package/dist/rules/require-unannotated-const-assertions.d.ts.map +1 -0
- package/dist/rules/require-unannotated-const-assertions.js +27 -0
- package/dist/rules/require-variadic-function-argument.d.ts +5 -0
- package/dist/rules/require-variadic-function-argument.d.ts.map +1 -0
- package/dist/rules/require-variadic-function-argument.js +86 -0
- package/dist/rules/strict-array-methods.d.ts +3 -0
- package/dist/rules/strict-array-methods.d.ts.map +1 -0
- package/dist/rules/strict-array-methods.js +83 -0
- package/dist/rules/strict-enums.d.ts +5 -0
- package/dist/rules/strict-enums.d.ts.map +1 -0
- package/dist/rules/strict-enums.js +445 -0
- package/dist/rules/strict-undefined-functions.d.ts +5 -0
- package/dist/rules/strict-undefined-functions.d.ts.map +1 -0
- package/dist/rules/strict-undefined-functions.js +49 -0
- package/dist/rules/strict-void-functions.d.ts +2 -0
- package/dist/rules/strict-void-functions.d.ts.map +1 -0
- package/dist/rules/strict-void-functions.js +43 -0
- package/dist/rules.d.ts +49 -0
- package/dist/rules.d.ts.map +1 -0
- package/dist/rules.js +85 -0
- package/dist/template.d.ts +2 -0
- package/dist/template.d.ts.map +1 -0
- package/dist/template.js +29 -0
- package/dist/typeUtils.d.ts +28 -0
- package/dist/typeUtils.d.ts.map +1 -0
- package/dist/typeUtils.js +76 -0
- package/dist/utils.d.ts +13 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +54 -0
- package/package.json +55 -0
package/dist/rules.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const rules: {
|
|
2
|
+
"complete-sentences-jsdoc": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./completeSentence.js").CompleteSentenceMessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
3
|
+
"complete-sentences-line-comments": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./completeSentence.js").CompleteSentenceMessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
"consistent-enum-values": import("@typescript-eslint/utils/ts-eslint").RuleModule<"inconsistentValue", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
"consistent-named-tuples": import("@typescript-eslint/utils/ts-eslint").RuleModule<"notNamed", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
6
|
+
"eqeqeq-fix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"unexpected", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
"format-jsdoc-comments": import("@typescript-eslint/utils/ts-eslint").RuleModule<"incorrectlyFormatted", import("./rules/format-jsdoc-comments.js").Options, import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
8
|
+
"format-line-comments": import("@typescript-eslint/utils/ts-eslint").RuleModule<"incorrectlyFormatted", import("./rules/format-line-comments.js").Options, import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
"jsdoc-code-block-language": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noLanguage", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
10
|
+
"newline-between-switch-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noNewline", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
11
|
+
"no-confusing-set-methods": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noKeys" | "noEntries", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
12
|
+
"no-empty-jsdoc": import("@typescript-eslint/utils/ts-eslint").RuleModule<"isEmpty", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
13
|
+
"no-empty-line-comments": import("@typescript-eslint/utils/ts-eslint").RuleModule<"isEmpty", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
14
|
+
"no-explicit-array-loops": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noExplicitArray", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
15
|
+
"no-explicit-map-set-loops": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noExplicitMap" | "noExplicitSet", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
16
|
+
"no-for-in": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noForIn", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
17
|
+
"no-let-any": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
18
|
+
"no-mutable-return": import("@typescript-eslint/utils/ts-eslint").RuleModule<"mutableArray" | "mutableMap" | "mutableSet", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
19
|
+
"no-number-enums": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noNumberEnums", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
20
|
+
"no-object-any": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
21
|
+
"no-object-methods-with-map-set": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noObjectEntriesMap" | "noObjectKeysMap" | "noObjectValuesMap" | "noObjectEntriesSet" | "noObjectKeysSet" | "noObjectValuesSet", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
22
|
+
"no-string-length-0": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noStringLength0", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
23
|
+
"no-template-curly-in-string-fix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"unexpectedTemplateExpression", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
24
|
+
"no-undefined-return-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"undefinedReturnType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
25
|
+
"no-unnecessary-assignment": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-unnecessary-assignment.js").MessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
26
|
+
"no-unsafe-plusplus": import("@typescript-eslint/utils/ts-eslint").RuleModule<"plusPlus" | "minusMinus", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
27
|
+
"no-useless-return": import("@typescript-eslint/utils/ts-eslint").RuleModule<"unnecessaryReturn", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
28
|
+
"no-void-return-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"voidReturnType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
29
|
+
"prefer-const": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useConst", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
30
|
+
"prefer-plusplus": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-plusplus.js").MessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
31
|
+
"prefer-postfix-plusplus": import("@typescript-eslint/utils/ts-eslint").RuleModule<"plusPlus" | "minusMinus", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
32
|
+
"prefer-readonly-parameter-types": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldBeReadonly", [{
|
|
33
|
+
allow?: import("@typescript-eslint/type-utils").TypeOrValueSpecifier[];
|
|
34
|
+
checkParameterProperties?: boolean;
|
|
35
|
+
ignoreInferredTypes?: boolean;
|
|
36
|
+
treatMethodsAsReadonly?: boolean;
|
|
37
|
+
onlyRecordsArraysMapsSet?: boolean;
|
|
38
|
+
}], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
39
|
+
"require-break": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noBreak", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
40
|
+
"require-capital-const-assertions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noConstAssertion", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
41
|
+
"require-capital-read-only": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/require-capital-read-only.js").MessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
42
|
+
"require-unannotated-const-assertions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"annotatedConstAssertion", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
43
|
+
"require-variadic-function-argument": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noArgument", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
44
|
+
"strict-array-methods": import("@typescript-eslint/utils/ts-eslint").RuleModule<"conditionError", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
45
|
+
"strict-enums": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/strict-enums.js").MessageIds, [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
46
|
+
"strict-undefined-functions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"mismatchedReturnType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
47
|
+
"strict-void-functions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"mismatchedReturnType", [], import("./interfaces/MyPluginDocs.js").MyPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCjB,CAAC"}
|
package/dist/rules.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// THIS FILE IS AUTOMATICALLY GENERATED BY THE "generate.ts" SCRIPT.
|
|
2
|
+
/// DO NOT EDIT THIS FILE! YOU CAN REGENERATE IT WITH:
|
|
3
|
+
/// npm run generate
|
|
4
|
+
import { completeSentencesJSDoc } from "./rules/complete-sentences-jsdoc.js";
|
|
5
|
+
import { completeSentencesLineComments } from "./rules/complete-sentences-line-comments.js";
|
|
6
|
+
import { consistentEnumValues } from "./rules/consistent-enum-values.js";
|
|
7
|
+
import { consistentNamedTuples } from "./rules/consistent-named-tuples.js";
|
|
8
|
+
import { eqeqeqFix } from "./rules/eqeqeq-fix.js";
|
|
9
|
+
import { formatJSDocComments } from "./rules/format-jsdoc-comments.js";
|
|
10
|
+
import { formatLineComments } from "./rules/format-line-comments.js";
|
|
11
|
+
import { jsdocCodeBlockLanguage } from "./rules/jsdoc-code-block-language.js";
|
|
12
|
+
import { newlineBetweenSwitchCase } from "./rules/newline-between-switch-case.js";
|
|
13
|
+
import { noConfusingSetMethods } from "./rules/no-confusing-set-methods.js";
|
|
14
|
+
import { noEmptyJSDoc } from "./rules/no-empty-jsdoc.js";
|
|
15
|
+
import { noEmptyLineComments } from "./rules/no-empty-line-comments.js";
|
|
16
|
+
import { noExplicitArrayLoops } from "./rules/no-explicit-array-loops.js";
|
|
17
|
+
import { noExplicitMapSetLoops } from "./rules/no-explicit-map-set-loops.js";
|
|
18
|
+
import { noForIn } from "./rules/no-for-in.js";
|
|
19
|
+
import { noLetAny } from "./rules/no-let-any.js";
|
|
20
|
+
import { noMutableReturn } from "./rules/no-mutable-return.js";
|
|
21
|
+
import { noNumberEnums } from "./rules/no-number-enums.js";
|
|
22
|
+
import { noObjectAny } from "./rules/no-object-any.js";
|
|
23
|
+
import { noObjectMethodsWithMapSet } from "./rules/no-object-methods-with-map-set.js";
|
|
24
|
+
import { noStringLength0 } from "./rules/no-string-length-0.js";
|
|
25
|
+
import { noTemplateCurlyInStringFix } from "./rules/no-template-curly-in-string-fix.js";
|
|
26
|
+
import { noUndefinedReturnType } from "./rules/no-undefined-return-type.js";
|
|
27
|
+
import { noUnnecessaryAssignment } from "./rules/no-unnecessary-assignment.js";
|
|
28
|
+
import { noUnsafePlusplus } from "./rules/no-unsafe-plusplus.js";
|
|
29
|
+
import { noUselessReturn } from "./rules/no-useless-return.js";
|
|
30
|
+
import { noVoidReturnType } from "./rules/no-void-return-type.js";
|
|
31
|
+
import { preferConst } from "./rules/prefer-const.js";
|
|
32
|
+
import { preferPlusplus } from "./rules/prefer-plusplus.js";
|
|
33
|
+
import { preferPostfixPlusplus } from "./rules/prefer-postfix-plusplus.js";
|
|
34
|
+
import { preferReadonlyParameterTypes } from "./rules/prefer-readonly-parameter-types.js";
|
|
35
|
+
import { requireBreak } from "./rules/require-break.js";
|
|
36
|
+
import { requireCapitalConstAssertions } from "./rules/require-capital-const-assertions.js";
|
|
37
|
+
import { requireCapitalReadOnly } from "./rules/require-capital-read-only.js";
|
|
38
|
+
import { requireUnannotatedConstAssertions } from "./rules/require-unannotated-const-assertions.js";
|
|
39
|
+
import { requireVariadicFunctionArgument } from "./rules/require-variadic-function-argument.js";
|
|
40
|
+
import { strictArrayMethods } from "./rules/strict-array-methods.js";
|
|
41
|
+
import { strictEnums } from "./rules/strict-enums.js";
|
|
42
|
+
import { strictUndefinedFunctions } from "./rules/strict-undefined-functions.js";
|
|
43
|
+
import { strictVoidFunctions } from "./rules/strict-void-functions.js";
|
|
44
|
+
export const rules = {
|
|
45
|
+
"complete-sentences-jsdoc": completeSentencesJSDoc,
|
|
46
|
+
"complete-sentences-line-comments": completeSentencesLineComments,
|
|
47
|
+
"consistent-enum-values": consistentEnumValues,
|
|
48
|
+
"consistent-named-tuples": consistentNamedTuples,
|
|
49
|
+
"eqeqeq-fix": eqeqeqFix,
|
|
50
|
+
"format-jsdoc-comments": formatJSDocComments,
|
|
51
|
+
"format-line-comments": formatLineComments,
|
|
52
|
+
"jsdoc-code-block-language": jsdocCodeBlockLanguage,
|
|
53
|
+
"newline-between-switch-case": newlineBetweenSwitchCase,
|
|
54
|
+
"no-confusing-set-methods": noConfusingSetMethods,
|
|
55
|
+
"no-empty-jsdoc": noEmptyJSDoc,
|
|
56
|
+
"no-empty-line-comments": noEmptyLineComments,
|
|
57
|
+
"no-explicit-array-loops": noExplicitArrayLoops,
|
|
58
|
+
"no-explicit-map-set-loops": noExplicitMapSetLoops,
|
|
59
|
+
"no-for-in": noForIn,
|
|
60
|
+
"no-let-any": noLetAny,
|
|
61
|
+
"no-mutable-return": noMutableReturn,
|
|
62
|
+
"no-number-enums": noNumberEnums,
|
|
63
|
+
"no-object-any": noObjectAny,
|
|
64
|
+
"no-object-methods-with-map-set": noObjectMethodsWithMapSet,
|
|
65
|
+
"no-string-length-0": noStringLength0,
|
|
66
|
+
"no-template-curly-in-string-fix": noTemplateCurlyInStringFix,
|
|
67
|
+
"no-undefined-return-type": noUndefinedReturnType,
|
|
68
|
+
"no-unnecessary-assignment": noUnnecessaryAssignment,
|
|
69
|
+
"no-unsafe-plusplus": noUnsafePlusplus,
|
|
70
|
+
"no-useless-return": noUselessReturn,
|
|
71
|
+
"no-void-return-type": noVoidReturnType,
|
|
72
|
+
"prefer-const": preferConst,
|
|
73
|
+
"prefer-plusplus": preferPlusplus,
|
|
74
|
+
"prefer-postfix-plusplus": preferPostfixPlusplus,
|
|
75
|
+
"prefer-readonly-parameter-types": preferReadonlyParameterTypes,
|
|
76
|
+
"require-break": requireBreak,
|
|
77
|
+
"require-capital-const-assertions": requireCapitalConstAssertions,
|
|
78
|
+
"require-capital-read-only": requireCapitalReadOnly,
|
|
79
|
+
"require-unannotated-const-assertions": requireUnannotatedConstAssertions,
|
|
80
|
+
"require-variadic-function-argument": requireVariadicFunctionArgument,
|
|
81
|
+
"strict-array-methods": strictArrayMethods,
|
|
82
|
+
"strict-enums": strictEnums,
|
|
83
|
+
"strict-undefined-functions": strictUndefinedFunctions,
|
|
84
|
+
"strict-void-functions": strictVoidFunctions,
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":""}
|
package/dist/template.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/*
|
|
3
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
4
|
+
import { createRule } from "../utils.js";
|
|
5
|
+
|
|
6
|
+
export const RULE_NAME_CAMEL_CASE = createRule({
|
|
7
|
+
name: "RULE_NAME",
|
|
8
|
+
meta: {
|
|
9
|
+
type: "problem",
|
|
10
|
+
docs: {
|
|
11
|
+
description: "RULE_DESCRIPTION",
|
|
12
|
+
recommended: true,
|
|
13
|
+
requiresTypeChecking: true,
|
|
14
|
+
},
|
|
15
|
+
schema: [],
|
|
16
|
+
messages: {
|
|
17
|
+
foo: "Foo must be bar.",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
defaultOptions: [],
|
|
21
|
+
create(context) {
|
|
22
|
+
const parserServices = ESLintUtils.getParserServices(context);
|
|
23
|
+
const checker = parserServices.program.getTypeChecker();
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
export declare function getTypeName(type: ts.Type): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* @param symbol The symbol to check.
|
|
5
|
+
* @param flagsToCheck The composition of one or more `ts.SymbolFlags`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isSymbolFlagSet(symbol: ts.Symbol, flagsToCheck: number | ts.SymbolFlags): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if the given type is either an array/tuple type, or a union made up solely of array/tuple
|
|
10
|
+
* types.
|
|
11
|
+
*
|
|
12
|
+
* Based on the `isTypeArrayTypeOrUnionOfArrayTypes` from `typescript-eslint`, but modified to also
|
|
13
|
+
* match tuples.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isTypeArrayTupleTypeOrUnionOfArrayTupleTypes(type: ts.Type, checker: ts.TypeChecker): boolean;
|
|
16
|
+
export declare function isAny(type: ts.Type): boolean;
|
|
17
|
+
/** Returns all types of a union type or an array containing `type` itself if it's no union type. */
|
|
18
|
+
export declare function unionTypeParts(type: ts.Type): readonly ts.Type[];
|
|
19
|
+
/**
|
|
20
|
+
* Note that if the type is a union, this function will decompose it into the parts and get the
|
|
21
|
+
* flags of every union constituent.
|
|
22
|
+
*
|
|
23
|
+
* @param type The type to check.
|
|
24
|
+
* @param flagsToCheck The composition of one or more `ts.TypeFlags`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: number | ts.TypeFlags): boolean;
|
|
27
|
+
export declare function isFlagSet(flags: number, flag: number): boolean;
|
|
28
|
+
//# sourceMappingURL=typeUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../src/typeUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,YAAY,CAAC;AAW5B,wBAAgB,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,MAAM,GAAG,SAAS,CAoB7D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,EAAE,CAAC,MAAM,EACjB,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,WAAW,GACpC,OAAO,CAET;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CAC1D,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAE5C;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,SAAS,EAAE,CAAC,IAAI,EAAE,CAEhE;AAOD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,SAAS,GAClC,OAAO,CAGT;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Some of the functions are copy-pasted here from the `typescript-eslint` repository and slightly
|
|
2
|
+
// modified.
|
|
3
|
+
import ts from "typescript";
|
|
4
|
+
/** Gets all of the type flags in a type, iterating through unions automatically. */
|
|
5
|
+
function getTypeFlags(type) {
|
|
6
|
+
let flags = 0;
|
|
7
|
+
for (const t of unionTypeParts(type)) {
|
|
8
|
+
flags |= t.flags;
|
|
9
|
+
}
|
|
10
|
+
return flags;
|
|
11
|
+
}
|
|
12
|
+
export function getTypeName(type) {
|
|
13
|
+
const escapedName = type.getSymbol()?.escapedName;
|
|
14
|
+
if (escapedName !== undefined && escapedName !== "__type") {
|
|
15
|
+
return escapedName;
|
|
16
|
+
}
|
|
17
|
+
const aliasSymbolName = type.aliasSymbol?.getName();
|
|
18
|
+
if (aliasSymbolName !== undefined) {
|
|
19
|
+
return aliasSymbolName;
|
|
20
|
+
}
|
|
21
|
+
// The above checks do not work with boolean values.
|
|
22
|
+
if ("intrinsicName" in type) {
|
|
23
|
+
const { intrinsicName } = type;
|
|
24
|
+
if (typeof intrinsicName === "string" && intrinsicName !== "") {
|
|
25
|
+
return intrinsicName;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param symbol The symbol to check.
|
|
32
|
+
* @param flagsToCheck The composition of one or more `ts.SymbolFlags`.
|
|
33
|
+
*/
|
|
34
|
+
export function isSymbolFlagSet(symbol, flagsToCheck) {
|
|
35
|
+
return isFlagSet(symbol.flags, flagsToCheck);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Checks if the given type is either an array/tuple type, or a union made up solely of array/tuple
|
|
39
|
+
* types.
|
|
40
|
+
*
|
|
41
|
+
* Based on the `isTypeArrayTypeOrUnionOfArrayTypes` from `typescript-eslint`, but modified to also
|
|
42
|
+
* match tuples.
|
|
43
|
+
*/
|
|
44
|
+
export function isTypeArrayTupleTypeOrUnionOfArrayTupleTypes(type, checker) {
|
|
45
|
+
for (const t of unionTypeParts(type)) {
|
|
46
|
+
if (!checker.isArrayType(t) && !checker.isTupleType(t)) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
export function isAny(type) {
|
|
53
|
+
return isTypeFlagSet(type, ts.TypeFlags.Any);
|
|
54
|
+
}
|
|
55
|
+
/** Returns all types of a union type or an array containing `type` itself if it's no union type. */
|
|
56
|
+
export function unionTypeParts(type) {
|
|
57
|
+
return isUnion(type) ? type.types : [type];
|
|
58
|
+
}
|
|
59
|
+
function isUnion(type) {
|
|
60
|
+
// We cannot use the `isTypeFlagSet` function here, since that decomposes unions.
|
|
61
|
+
return isFlagSet(type.flags, ts.TypeFlags.Union);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Note that if the type is a union, this function will decompose it into the parts and get the
|
|
65
|
+
* flags of every union constituent.
|
|
66
|
+
*
|
|
67
|
+
* @param type The type to check.
|
|
68
|
+
* @param flagsToCheck The composition of one or more `ts.TypeFlags`.
|
|
69
|
+
*/
|
|
70
|
+
export function isTypeFlagSet(type, flagsToCheck) {
|
|
71
|
+
const flags = getTypeFlags(type);
|
|
72
|
+
return isFlagSet(flags, flagsToCheck);
|
|
73
|
+
}
|
|
74
|
+
export function isFlagSet(flags, flag) {
|
|
75
|
+
return (flags & flag) !== 0;
|
|
76
|
+
}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TSESTree } from "@typescript-eslint/utils";
|
|
2
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
3
|
+
import type { MyPluginDocs } from "./interfaces/MyPluginDocs.js";
|
|
4
|
+
export declare function areStringsEqualExcludingTrailingSpaces(string1: string, string2: string): boolean;
|
|
5
|
+
/** @see https://typescript-eslint.io/developers/custom-rules#extra-rule-docs-types */
|
|
6
|
+
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, MyPluginDocs>>) => ESLintUtils.RuleModule<MessageIds, Options, MyPluginDocs, ESLintUtils.RuleListener>;
|
|
7
|
+
/**
|
|
8
|
+
* From: https://stackoverflow.com/questions/13627308/add-st-nd-rd-and-th-ordinal-suffix-to-a-number
|
|
9
|
+
*/
|
|
10
|
+
export declare function getOrdinalSuffix(i: number): string;
|
|
11
|
+
export declare function getParentFunction(node: TSESTree.Node): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
|
|
12
|
+
export declare function hasURL(text: string): boolean;
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAY,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAKjE,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAqBT;AAED,sFAAsF;AAEtF,eAAO,MAAM,UAAU,+PAGtB,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAalD;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,GAEjB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,2BAA2B,GACpC,QAAQ,CAAC,mCAAmC,GAC5C,QAAQ,CAAC,kBAAkB,GAC3B,SAAS,CAYZ;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5C"}
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ASTUtils, ESLintUtils } from "@typescript-eslint/utils";
|
|
2
|
+
/** Taken from ESLint: https://github.com/eslint/eslint/blob/main/lib/rules/max-len.js */
|
|
3
|
+
const URL_REGEXP = /[^:/?#]:\/\/[^?#]/u;
|
|
4
|
+
export function areStringsEqualExcludingTrailingSpaces(string1, string2) {
|
|
5
|
+
const string1Lines = string1.split("\n");
|
|
6
|
+
const string2Lines = string2.split("\n");
|
|
7
|
+
if (string1Lines.length !== string2Lines.length) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
// eslint-disable-next-line unicorn/no-for-loop
|
|
11
|
+
for (let i = 0; i < string1Lines.length; i++) {
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
13
|
+
const line1 = string1Lines[i];
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
15
|
+
const line2 = string2Lines[i];
|
|
16
|
+
if (line1.trimEnd() !== line2.trimEnd()) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
/** @see https://typescript-eslint.io/developers/custom-rules#extra-rule-docs-types */
|
|
23
|
+
// eslint-disable-next-line new-cap
|
|
24
|
+
export const createRule = ESLintUtils.RuleCreator((ruleName) => `https://github.com/complete-ts/complete/blob/main/packages/eslint-plugin-complete/docs/rules/${ruleName}.md`);
|
|
25
|
+
/**
|
|
26
|
+
* From: https://stackoverflow.com/questions/13627308/add-st-nd-rd-and-th-ordinal-suffix-to-a-number
|
|
27
|
+
*/
|
|
28
|
+
export function getOrdinalSuffix(i) {
|
|
29
|
+
const j = i % 10;
|
|
30
|
+
const k = i % 100;
|
|
31
|
+
if (j === 1 && k !== 11) {
|
|
32
|
+
return `${i}st`;
|
|
33
|
+
}
|
|
34
|
+
if (j === 2 && k !== 12) {
|
|
35
|
+
return `${i}nd`;
|
|
36
|
+
}
|
|
37
|
+
if (j === 3 && k !== 13) {
|
|
38
|
+
return `${i}rd`;
|
|
39
|
+
}
|
|
40
|
+
return `${i}th`;
|
|
41
|
+
}
|
|
42
|
+
export function getParentFunction(node) {
|
|
43
|
+
let parent = node;
|
|
44
|
+
while (parent !== undefined) {
|
|
45
|
+
parent = parent.parent; // eslint-disable-line @typescript-eslint/prefer-destructuring
|
|
46
|
+
if (ASTUtils.isFunction(parent)) {
|
|
47
|
+
return parent;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
export function hasURL(text) {
|
|
53
|
+
return URL_REGEXP.test(text);
|
|
54
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-plugin-complete",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "An ESLint plugin that contains useful rules.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"plugin",
|
|
8
|
+
"complete",
|
|
9
|
+
"lint",
|
|
10
|
+
"linting",
|
|
11
|
+
"rules",
|
|
12
|
+
"enum",
|
|
13
|
+
"enums",
|
|
14
|
+
"comment",
|
|
15
|
+
"comments",
|
|
16
|
+
"format",
|
|
17
|
+
"autoformat",
|
|
18
|
+
"prettier",
|
|
19
|
+
"sentences"
|
|
20
|
+
],
|
|
21
|
+
"homepage": "https://complete-js.github.io/",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/complete-js/complete/issues"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/complete-js/complete.git"
|
|
28
|
+
},
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"author": "Zamiell",
|
|
31
|
+
"type": "module",
|
|
32
|
+
"main": "./dist/index.js",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"package.json",
|
|
37
|
+
"README.md"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsx ./scripts/build.ts",
|
|
41
|
+
"create-rule": "tsx ./scripts/createRule.ts",
|
|
42
|
+
"generate": "tsx ./scripts/generate.ts",
|
|
43
|
+
"lint": "tsx ./scripts/lint.ts",
|
|
44
|
+
"test": "jest"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.4.0",
|
|
48
|
+
"@typescript-eslint/utils": "^8.4.0",
|
|
49
|
+
"typescript-eslint": "^8.4.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"eslint": ">= 9.0.0",
|
|
53
|
+
"typescript": ">= 5.0.0"
|
|
54
|
+
}
|
|
55
|
+
}
|