@pumpn/eslint-config 17.2.4 → 18.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/_common/_exports.js +5 -0
- package/_common/all-extensions/_exports.js +1 -0
- package/_common/all-extensions/js-extensions.js +10 -0
- package/_common/all-extensions.js +6 -0
- package/_common/convert-extensions-to-glob.js +12 -0
- package/_common/js-jsx-extensions.js +3 -0
- package/_common/ts-extensions.js +10 -0
- package/_common/ts-jsx-extensions.js +3 -0
- package/config/_common/_exports.js +5 -0
- package/config/_common/add-prefix-to-rules.js +13 -0
- package/config/_common/core-json-rules.js +24 -0
- package/config/_common/json-plugins.js +9 -0
- package/config/_common/pick-unicorn-rules-for-language/_exports.js +2 -0
- package/config/_common/pick-unicorn-rules-for-language/pick-rules-for-language.js +52 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/_exports.js +9 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/binary-group-length.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/hexadecimal-group-length.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/maximum-nested-calls.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/number-group-length.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/octal-group-length.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/patterns.js +28 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules/_exports.js +1 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules/consistent-function-style.js +3 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules.js +66 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-preference-rules.js +199 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-redundancy-rules.js +47 -0
- package/config/_common/pick-unicorn-rules-for-language/unicorn.js +368 -0
- package/config/_common/pick-unicorn-rules-for-language.js +14 -0
- package/config/_exports.js +11 -0
- package/config/converted-globals.js +16 -0
- package/config/css-config/_exports.js +2 -0
- package/config/css-config/css-plugins.js +9 -0
- package/config/css-config/css-rules/_exports.js +1 -0
- package/config/css-config/css-rules/core-css-rules.js +25 -0
- package/config/css-config/css-rules.js +10 -0
- package/config/css-config.js +17 -0
- package/config/default-glob.js +6 -0
- package/config/html-config/_exports.js +2 -0
- package/config/html-config/html-plugins.js +9 -0
- package/config/html-config/html-rules/_exports.js +1 -0
- package/config/html-config/html-rules/core-html-rules/_exports.js +4 -0
- package/config/html-config/html-rules/core-html-rules/core-html-accessibility-rules.js +28 -0
- package/config/html-config/html-rules/core-html-rules/core-html-best-practice-rules.js +42 -0
- package/config/html-config/html-rules/core-html-rules/core-html-seo-rules.js +16 -0
- package/config/html-config/html-rules/core-html-rules/core-html-style-rules.js +23 -0
- package/config/html-config/html-rules/core-html-rules.js +27 -0
- package/config/html-config/html-rules.js +10 -0
- package/config/html-config.js +12 -0
- package/config/json-config/_exports.js +1 -0
- package/config/json-config/json-rules.js +9 -0
- package/config/json-config.js +13 -0
- package/config/jsonc-config/_exports.js +1 -0
- package/config/jsonc-config/jsonc-rules.js +9 -0
- package/config/jsonc-config.js +26 -0
- package/config/jsx-glob/_exports.js +1 -0
- package/config/jsx-glob/jsx-extensions.js +6 -0
- package/config/jsx-glob.js +7 -0
- package/config/md-config/_exports.js +2 -0
- package/config/md-config/md-plugins.js +9 -0
- package/config/md-config/md-rules/_exports.js +1 -0
- package/config/md-config/md-rules/core-md-rules.js +30 -0
- package/config/md-config/md-rules.js +10 -0
- package/config/md-config.js +15 -0
- package/{plugins.js → config/plugins.js} +7 -6
- package/{rules → config/rules}/_common/_exports.js +0 -1
- package/{rules → config/rules}/_exports.js +1 -4
- package/config/rules/better-tailwindcss/correctness.js +13 -0
- package/config/rules/better-tailwindcss/stylistic.js +42 -0
- package/config/rules/better-tailwindcss.js +15 -0
- package/config/rules/command.js +17 -0
- package/config/rules/depend.js +17 -0
- package/config/rules/eslint-comments/best-practices.js +14 -0
- package/config/rules/eslint-comments/stylistic-issues.js +17 -0
- package/config/rules/eslint-comments.js +15 -0
- package/config/rules/import-x/helpful-warnings.js +26 -0
- package/config/rules/import-x/module-systems.js +14 -0
- package/config/rules/import-x/static-analysis.js +40 -0
- package/config/rules/import-x/style-guide/_exports.js +1 -0
- package/config/rules/import-x/style-guide/max-dependencies.js +3 -0
- package/config/rules/import-x/style-guide.js +94 -0
- package/config/rules/import-x.js +22 -0
- package/config/rules/jsdoc.js +464 -0
- package/config/rules/no-secrets/_exports.js +1 -0
- package/config/rules/no-secrets/tolerance.js +3 -0
- package/config/rules/no-secrets.js +30 -0
- package/config/rules/perfectionist.js +331 -0
- package/config/rules/promise.js +53 -0
- package/config/rules/react/core.js +69 -0
- package/config/rules/react/debug.js +14 -0
- package/config/rules/react/dom.js +25 -0
- package/config/rules/react/jsx.js +23 -0
- package/config/rules/react/naming-convention.js +12 -0
- package/config/rules/react/rsc.js +10 -0
- package/config/rules/react/web-api.js +15 -0
- package/config/rules/react.js +28 -0
- package/config/rules/regexp/best-practices.js +47 -0
- package/config/rules/regexp/possible-errors.js +31 -0
- package/config/rules/regexp/stylistic-issues.js +79 -0
- package/config/rules/regexp.js +20 -0
- package/config/rules/security.js +31 -0
- package/config/rules/sonarjs/problem.js +134 -0
- package/config/rules/sonarjs/suggestion.js +167 -0
- package/config/rules/sonarjs.js +15 -0
- package/config/rules/stylistic/_common/_exports.js +1 -0
- package/{rules → config/rules}/stylistic/_exports.js +1 -1
- package/config/rules/stylistic/brackets/_exports.js +2 -0
- package/config/rules/stylistic/brackets/min-elements-for-curly-newline.js +3 -0
- package/config/rules/stylistic/brackets/wrap-multilines-default.js +3 -0
- package/config/rules/stylistic/brackets.js +90 -0
- package/config/rules/stylistic/commas.js +18 -0
- package/config/rules/stylistic/comments.js +13 -0
- package/config/rules/stylistic/disallow.js +36 -0
- package/config/rules/stylistic/indent.js +19 -0
- package/config/rules/stylistic/jsx.js +42 -0
- package/config/rules/stylistic/linebreaks/_exports.js +1 -0
- package/config/rules/stylistic/linebreaks/max-ignored-chain-depth.js +3 -0
- package/config/rules/stylistic/linebreaks.js +67 -0
- package/config/rules/stylistic/misc.js +49 -0
- package/config/rules/stylistic/operators.js +31 -0
- package/config/rules/stylistic/quotes.js +12 -0
- package/config/rules/stylistic/semis.js +19 -0
- package/config/rules/stylistic/spacing.js +68 -0
- package/config/rules/stylistic/types.js +12 -0
- package/config/rules/stylistic.js +40 -0
- package/config/rules/suggestions/_exports.js +9 -0
- package/config/rules/suggestions/max-classes-per-file.js +3 -0
- package/config/rules/suggestions/max-depth.js +3 -0
- package/config/rules/suggestions/max-identifier-length.js +3 -0
- package/config/rules/suggestions/max-lines-per-file.js +3 -0
- package/config/rules/suggestions/max-lines-per-function.js +3 -0
- package/config/rules/suggestions/max-nested-callbacks.js +3 -0
- package/config/rules/suggestions/max-parameters.js +3 -0
- package/config/rules/suggestions/max-statements.js +3 -0
- package/config/rules/suggestions/min-identifier-length.js +3 -0
- package/{rules → config/rules}/suggestions.js +17 -15
- package/config/rules.js +50 -0
- package/config/ts-glob.js +6 -0
- package/config.js +51 -53
- package/package.json +51 -38
- package/.ls-lint.yml +0 -6
- package/.vscode/settings.json +0 -18
- package/deno.json +0 -78
- package/deno.lock +0 -1632
- package/eslint.config.js +0 -25
- package/rules/better-tailwindcss/correctness.js +0 -7
- package/rules/better-tailwindcss/stylistic.js +0 -38
- package/rules/better-tailwindcss.js +0 -19
- package/rules/command.js +0 -12
- package/rules/depend.js +0 -12
- package/rules/eslint-comments/best-practices.js +0 -9
- package/rules/eslint-comments/stylistic-issues.js +0 -12
- package/rules/eslint-comments.js +0 -19
- package/rules/import-x/helpful-warnings.js +0 -21
- package/rules/import-x/module-systems.js +0 -9
- package/rules/import-x/static-analysis.js +0 -35
- package/rules/import-x/style-guide.js +0 -89
- package/rules/import-x.js +0 -19
- package/rules/jsdoc.js +0 -433
- package/rules/no-secrets.js +0 -25
- package/rules/perfectionist.js +0 -318
- package/rules/promise.js +0 -48
- package/rules/react/core.js +0 -59
- package/rules/react/debug.js +0 -6
- package/rules/react/dom.js +0 -15
- package/rules/react/jsx.js +0 -18
- package/rules/react/naming-convention.js +0 -6
- package/rules/react/rsc.js +0 -5
- package/rules/react/web-api.js +0 -10
- package/rules/react.js +0 -19
- package/rules/regexp/best-practices.js +0 -42
- package/rules/regexp/possible-errors.js +0 -26
- package/rules/regexp/stylistic-issues.js +0 -74
- package/rules/regexp.js +0 -19
- package/rules/security.js +0 -25
- package/rules/sonarjs/problem.js +0 -123
- package/rules/sonarjs/suggestion.js +0 -135
- package/rules/sonarjs.js +0 -19
- package/rules/stylistic/_common/_exports.js +0 -3
- package/rules/stylistic/brackets.js +0 -87
- package/rules/stylistic/commas.js +0 -13
- package/rules/stylistic/comments.js +0 -8
- package/rules/stylistic/disallow.js +0 -31
- package/rules/stylistic/indent.js +0 -14
- package/rules/stylistic/jsx.js +0 -37
- package/rules/stylistic/linebreaks.js +0 -63
- package/rules/stylistic/misc.js +0 -45
- package/rules/stylistic/operators.js +0 -26
- package/rules/stylistic/quotes.js +0 -7
- package/rules/stylistic/semis.js +0 -14
- package/rules/stylistic/spacing.js +0 -63
- package/rules/stylistic/types.js +0 -7
- package/rules/stylistic.js +0 -19
- package/rules/unicorn.js +0 -306
- package/rules.js +0 -19
- package/scripts/update-import-map.js +0 -47
- package/scripts/update-package-json.js +0 -66
- package/scripts/update-tsconfig.js +0 -46
- package/tsconfig.json +0 -27
- /package/{rules → config}/_common/tab-width.js +0 -0
- /package/{rules → config/rules}/_common/maximum-line-length.js +0 -0
- /package/{rules → config/rules}/better-tailwindcss/_exports.js +0 -0
- /package/{rules → config/rules}/eslint-comments/_exports.js +0 -0
- /package/{rules → config/rules}/import-x/_exports.js +0 -0
- /package/{rules → config/rules}/layout-and-formatting.js +0 -0
- /package/{rules → config/rules}/possible-problems.js +0 -0
- /package/{rules → config/rules}/react/_exports.js +0 -0
- /package/{rules → config/rules}/regexp/_exports.js +0 -0
- /package/{rules → config/rules}/sonarjs/_exports.js +0 -0
- /package/{rules → config/rules}/stylistic/_common/min-items-for-array-newline.js +0 -0
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import addPrefixToRules from "../_common/add-prefix-to-rules.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @import { Linter } from "eslint";
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @satisfies {Linter.RulesRecord}
|
|
9
|
+
*/
|
|
10
|
+
const jsdocRules = addPrefixToRules(
|
|
11
|
+
"jsdoc",
|
|
12
|
+
{
|
|
13
|
+
"check-access": "warn",
|
|
14
|
+
"check-alignment": [
|
|
15
|
+
"warn",
|
|
16
|
+
{
|
|
17
|
+
ignoreEmptyLines: false,
|
|
18
|
+
innerIndent: 1
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"check-indentation": [
|
|
22
|
+
"warn",
|
|
23
|
+
{
|
|
24
|
+
allowIndentedSections: true,
|
|
25
|
+
allowNoSpaceAfterAsterisk: false,
|
|
26
|
+
excludeTags: ["example", "typedef"]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"check-line-alignment": "off",
|
|
30
|
+
"check-param-names": "warn",
|
|
31
|
+
"check-property-names": "warn",
|
|
32
|
+
"check-syntax": ["warn", { enableFixer: true }],
|
|
33
|
+
"check-tag-names": [
|
|
34
|
+
"warn",
|
|
35
|
+
{
|
|
36
|
+
definedTags: ["category", "component"],
|
|
37
|
+
inlineTags: [
|
|
38
|
+
"link",
|
|
39
|
+
"linkcode",
|
|
40
|
+
"linkplain",
|
|
41
|
+
"tutorial"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"check-template-names": "off",
|
|
46
|
+
"check-types": "warn",
|
|
47
|
+
"check-values": "warn",
|
|
48
|
+
"convert-to-jsdoc-comments": [
|
|
49
|
+
"warn",
|
|
50
|
+
{
|
|
51
|
+
allowedPrefixes: [
|
|
52
|
+
"@ts-",
|
|
53
|
+
"istanbul ",
|
|
54
|
+
"c8 ",
|
|
55
|
+
"v8 ",
|
|
56
|
+
"eslint",
|
|
57
|
+
"prettier-",
|
|
58
|
+
"TODO",
|
|
59
|
+
"MARK"
|
|
60
|
+
],
|
|
61
|
+
enableFixer: true,
|
|
62
|
+
enforceJsdocLineStyle: "multi",
|
|
63
|
+
lineOrBlockStyle: "both"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"empty-tags": "warn",
|
|
67
|
+
"escape-inline-tags": [
|
|
68
|
+
"warn",
|
|
69
|
+
{
|
|
70
|
+
allowedInlineTags: [],
|
|
71
|
+
enableFixer: true,
|
|
72
|
+
fixType: "backslash"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"implements-on-classes": "warn",
|
|
76
|
+
"imports-as-dependencies": "off",
|
|
77
|
+
"informative-docs": "warn",
|
|
78
|
+
"lines-before-block": [
|
|
79
|
+
"warn",
|
|
80
|
+
{
|
|
81
|
+
excludedTags: ["type"],
|
|
82
|
+
ignoreSameLine: true,
|
|
83
|
+
lines: 1
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"match-description": "off",
|
|
87
|
+
"match-name": "off",
|
|
88
|
+
"multiline-blocks": "warn",
|
|
89
|
+
"no-bad-blocks": ["warn", { preventAllMultiAsteriskBlocks: true }],
|
|
90
|
+
"no-blank-block-descriptions": "off",
|
|
91
|
+
"no-blank-blocks": "off",
|
|
92
|
+
"no-defaults": "warn",
|
|
93
|
+
"no-missing-syntax": "off",
|
|
94
|
+
"no-multi-asterisks": "warn",
|
|
95
|
+
"no-restricted-syntax": "off",
|
|
96
|
+
"no-types": "off",
|
|
97
|
+
"no-undefined-types": [
|
|
98
|
+
"off",
|
|
99
|
+
{
|
|
100
|
+
checkUsedTypedefs: true,
|
|
101
|
+
definedTypes: ["Iterable", "IterableIterator"]
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"no-unnecessary-type-assertion": [
|
|
105
|
+
"error",
|
|
106
|
+
{
|
|
107
|
+
checkLiteralConstAssertions: false,
|
|
108
|
+
enableFixer: true,
|
|
109
|
+
fixTypeChangingCasts: true,
|
|
110
|
+
preferConstToLiteralTuples: true,
|
|
111
|
+
treatAnyAsRedundant: false,
|
|
112
|
+
typesToIgnore: []
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"normalize-see-links": [
|
|
116
|
+
"warn",
|
|
117
|
+
{
|
|
118
|
+
canonicalForm: "pipe",
|
|
119
|
+
enableFixer: true,
|
|
120
|
+
wrapBareUrls: true
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"prefer-import-tag": [
|
|
124
|
+
"warn",
|
|
125
|
+
{
|
|
126
|
+
enableFixer: true,
|
|
127
|
+
exemptTypedefs: false,
|
|
128
|
+
outputType: "named-import"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"reject-any-type": "warn",
|
|
132
|
+
"reject-function-type": "warn",
|
|
133
|
+
"require-asterisk-prefix": [
|
|
134
|
+
"warn",
|
|
135
|
+
"always",
|
|
136
|
+
{
|
|
137
|
+
tags: {
|
|
138
|
+
any: ["typedef"]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"require-description": [
|
|
143
|
+
"off",
|
|
144
|
+
{
|
|
145
|
+
contexts: [
|
|
146
|
+
// "ArrayExpression",
|
|
147
|
+
"ArrowFunctionExpression",
|
|
148
|
+
// "AssignmentExpression",
|
|
149
|
+
// "AwaitExpression",
|
|
150
|
+
// "BinaryExpression",
|
|
151
|
+
// "CallExpression",
|
|
152
|
+
// "ChainExpression",
|
|
153
|
+
// "Class",
|
|
154
|
+
"ClassDeclaration",
|
|
155
|
+
"ClassExpression",
|
|
156
|
+
// "ClassHasInstanceExpression",
|
|
157
|
+
// "ConditionalExpression",
|
|
158
|
+
// "DoExpression",
|
|
159
|
+
// "ExportAllDeclaration",
|
|
160
|
+
// "ExportDefaultDeclaration",
|
|
161
|
+
// "ExportNamedDeclaration",
|
|
162
|
+
// "Expression"
|
|
163
|
+
// "ExpressionStatement",
|
|
164
|
+
"FunctionDeclaration",
|
|
165
|
+
"FunctionExpression",
|
|
166
|
+
// "ImportDeclaration",
|
|
167
|
+
// "ImportExpression",
|
|
168
|
+
// "LogicalExpression",
|
|
169
|
+
// "LogicalExpression",
|
|
170
|
+
// "MemberExpression",
|
|
171
|
+
"MethodDefinition"
|
|
172
|
+
// "ModuleDeclarations",
|
|
173
|
+
// "ModuleExpression",
|
|
174
|
+
// "NewExpression",
|
|
175
|
+
// "ObjectExpression"
|
|
176
|
+
// "PropertyDefinition",
|
|
177
|
+
// "RecordExpression",
|
|
178
|
+
// "SequenceExpression",
|
|
179
|
+
// "SliceExpression",
|
|
180
|
+
// "StaticBlock",
|
|
181
|
+
// "TaggedTemplateExpression",
|
|
182
|
+
// "ThisExpression",
|
|
183
|
+
// "TupleExpression",
|
|
184
|
+
// "UnaryExpression",
|
|
185
|
+
// "VariableDeclaration",
|
|
186
|
+
// "VariableDeclarator",
|
|
187
|
+
// "YieldExpression"
|
|
188
|
+
],
|
|
189
|
+
descriptionStyle: "body"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"require-description-complete-sentence": "off",
|
|
193
|
+
"require-example": "off",
|
|
194
|
+
"require-file-overview": [
|
|
195
|
+
"off",
|
|
196
|
+
{
|
|
197
|
+
tags: {
|
|
198
|
+
file: {
|
|
199
|
+
initialCommentsOnly: true,
|
|
200
|
+
mustExist: true,
|
|
201
|
+
preventDuplicates: true
|
|
202
|
+
},
|
|
203
|
+
license: {
|
|
204
|
+
initialCommentsOnly: true,
|
|
205
|
+
mustExist: true,
|
|
206
|
+
preventDuplicates: true
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"require-hyphen-before-param-description": ["warn", "always"],
|
|
212
|
+
"require-jsdoc": "off",
|
|
213
|
+
"require-next-description": "off",
|
|
214
|
+
"require-next-type": "warn",
|
|
215
|
+
"require-param": ["warn", { unnamedRootBase: ["options"] }],
|
|
216
|
+
"require-param-description": [
|
|
217
|
+
"off",
|
|
218
|
+
{
|
|
219
|
+
setDefaultDestructuredRootDescription: true
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"require-param-name": "warn",
|
|
223
|
+
"require-param-type": "warn",
|
|
224
|
+
"require-property": "warn",
|
|
225
|
+
"require-property-description": "off",
|
|
226
|
+
"require-property-name": "warn",
|
|
227
|
+
"require-property-type": "warn",
|
|
228
|
+
"require-rejects": "off",
|
|
229
|
+
"require-returns": "off",
|
|
230
|
+
"require-returns-check": "warn",
|
|
231
|
+
"require-returns-description": "off",
|
|
232
|
+
"require-returns-type": "warn",
|
|
233
|
+
"require-tags": "off",
|
|
234
|
+
"require-template": [
|
|
235
|
+
"off",
|
|
236
|
+
{
|
|
237
|
+
requireSeparateTemplates: true
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"require-template-description": "off",
|
|
241
|
+
"require-throws": "warn",
|
|
242
|
+
"require-throws-description": "warn",
|
|
243
|
+
"require-throws-type": "warn",
|
|
244
|
+
"require-yields": "warn",
|
|
245
|
+
"require-yields-check": "warn",
|
|
246
|
+
"require-yields-description": "off",
|
|
247
|
+
"require-yields-type": "warn",
|
|
248
|
+
"sort-tags": [
|
|
249
|
+
"warn",
|
|
250
|
+
{
|
|
251
|
+
tagSequence: [
|
|
252
|
+
{
|
|
253
|
+
tags: [
|
|
254
|
+
// Brief descriptions
|
|
255
|
+
"summary",
|
|
256
|
+
"typeSummary",
|
|
257
|
+
|
|
258
|
+
// Module/file-level
|
|
259
|
+
"module",
|
|
260
|
+
"exports",
|
|
261
|
+
"file",
|
|
262
|
+
"fileoverview",
|
|
263
|
+
"overview",
|
|
264
|
+
|
|
265
|
+
// Identifying (name, type)
|
|
266
|
+
"template",
|
|
267
|
+
"typedef",
|
|
268
|
+
"interface",
|
|
269
|
+
"record",
|
|
270
|
+
"name",
|
|
271
|
+
"kind",
|
|
272
|
+
"type",
|
|
273
|
+
"alias",
|
|
274
|
+
"external",
|
|
275
|
+
"host",
|
|
276
|
+
"callback",
|
|
277
|
+
"func",
|
|
278
|
+
"function",
|
|
279
|
+
"method",
|
|
280
|
+
"class",
|
|
281
|
+
"constructor",
|
|
282
|
+
|
|
283
|
+
// Relationships
|
|
284
|
+
"overload",
|
|
285
|
+
"modifies",
|
|
286
|
+
"mixes",
|
|
287
|
+
"mixin",
|
|
288
|
+
"mixinClass",
|
|
289
|
+
"mixinFunction",
|
|
290
|
+
"namespace",
|
|
291
|
+
"borrows",
|
|
292
|
+
"constructs",
|
|
293
|
+
"lends",
|
|
294
|
+
"implements",
|
|
295
|
+
"requires",
|
|
296
|
+
|
|
297
|
+
// Long descriptions
|
|
298
|
+
"desc",
|
|
299
|
+
"description",
|
|
300
|
+
"classdesc",
|
|
301
|
+
"tutorial",
|
|
302
|
+
"copyright",
|
|
303
|
+
"license",
|
|
304
|
+
|
|
305
|
+
// Simple annotations
|
|
306
|
+
"const",
|
|
307
|
+
"constant",
|
|
308
|
+
"final",
|
|
309
|
+
"global",
|
|
310
|
+
"readonly",
|
|
311
|
+
"abstract",
|
|
312
|
+
"virtual",
|
|
313
|
+
"var",
|
|
314
|
+
"member",
|
|
315
|
+
"memberof",
|
|
316
|
+
"memberof!",
|
|
317
|
+
"inner",
|
|
318
|
+
"instance",
|
|
319
|
+
"inheritdoc",
|
|
320
|
+
"inheritDoc",
|
|
321
|
+
"override",
|
|
322
|
+
"hideconstructor",
|
|
323
|
+
"component",
|
|
324
|
+
|
|
325
|
+
// Core function/object info
|
|
326
|
+
"param",
|
|
327
|
+
"arg",
|
|
328
|
+
"argument",
|
|
329
|
+
"prop",
|
|
330
|
+
"property",
|
|
331
|
+
"return",
|
|
332
|
+
"returns",
|
|
333
|
+
|
|
334
|
+
// Important behavior details
|
|
335
|
+
"async",
|
|
336
|
+
"generator",
|
|
337
|
+
"default",
|
|
338
|
+
"defaultvalue",
|
|
339
|
+
"enum",
|
|
340
|
+
"augments",
|
|
341
|
+
"extends",
|
|
342
|
+
"throws",
|
|
343
|
+
"exception",
|
|
344
|
+
"yield",
|
|
345
|
+
"yields",
|
|
346
|
+
"event",
|
|
347
|
+
"fires",
|
|
348
|
+
"emits",
|
|
349
|
+
"listens",
|
|
350
|
+
"this",
|
|
351
|
+
|
|
352
|
+
// Access
|
|
353
|
+
"static",
|
|
354
|
+
"private",
|
|
355
|
+
"protected",
|
|
356
|
+
"public",
|
|
357
|
+
"access",
|
|
358
|
+
"package",
|
|
359
|
+
|
|
360
|
+
"-other",
|
|
361
|
+
|
|
362
|
+
// Supplementary descriptions
|
|
363
|
+
"see",
|
|
364
|
+
"example",
|
|
365
|
+
|
|
366
|
+
// METADATA
|
|
367
|
+
|
|
368
|
+
// Other Closure (undocumented) metadata
|
|
369
|
+
"closurePrimitive",
|
|
370
|
+
"customElement",
|
|
371
|
+
"expose",
|
|
372
|
+
"hidden",
|
|
373
|
+
"idGenerator",
|
|
374
|
+
"meaning",
|
|
375
|
+
"ngInject",
|
|
376
|
+
"owner",
|
|
377
|
+
"wizaction",
|
|
378
|
+
|
|
379
|
+
// Other Closure (documented) metadata
|
|
380
|
+
"define",
|
|
381
|
+
"dict",
|
|
382
|
+
"export",
|
|
383
|
+
"externs",
|
|
384
|
+
"implicitCast",
|
|
385
|
+
"noalias",
|
|
386
|
+
"nocollapse",
|
|
387
|
+
"nocompile",
|
|
388
|
+
"noinline",
|
|
389
|
+
"nosideeffects",
|
|
390
|
+
"polymer",
|
|
391
|
+
"polymerBehavior",
|
|
392
|
+
"preserve",
|
|
393
|
+
"struct",
|
|
394
|
+
"suppress",
|
|
395
|
+
"unrestricted",
|
|
396
|
+
|
|
397
|
+
// @homer0/prettier-plugin-jsdoc metadata
|
|
398
|
+
"category",
|
|
399
|
+
|
|
400
|
+
// Non-Closure metadata
|
|
401
|
+
"ignore",
|
|
402
|
+
"author",
|
|
403
|
+
"version",
|
|
404
|
+
"variation",
|
|
405
|
+
"since",
|
|
406
|
+
"deprecated",
|
|
407
|
+
"todo"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"tag-lines": [
|
|
414
|
+
"warn",
|
|
415
|
+
"never",
|
|
416
|
+
{
|
|
417
|
+
startLines: 1
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"text-escaping": "off",
|
|
421
|
+
"ts-method-signature-style": ["warn", "property", { enableFixer: true }],
|
|
422
|
+
"ts-no-empty-object-type": "warn",
|
|
423
|
+
"ts-no-unnecessary-template-expression": ["warn", { enableFixer: true }],
|
|
424
|
+
"ts-prefer-function-type": ["warn", { enableFixer: true }],
|
|
425
|
+
"type-formatting": [
|
|
426
|
+
"off",
|
|
427
|
+
{
|
|
428
|
+
arrayBrackets: "square",
|
|
429
|
+
arrowFunctionPostReturnMarkerSpacing: " ",
|
|
430
|
+
arrowFunctionPreReturnMarkerSpacing: " ",
|
|
431
|
+
enableFixer: true,
|
|
432
|
+
functionOrClassParameterSpacing: " ",
|
|
433
|
+
functionOrClassPostGenericSpacing: "",
|
|
434
|
+
functionOrClassPostReturnMarkerSpacing: "",
|
|
435
|
+
functionOrClassPreReturnMarkerSpacing: "",
|
|
436
|
+
functionOrClassTypeParameterSpacing: " ",
|
|
437
|
+
genericAndTupleElementSpacing: " ",
|
|
438
|
+
genericDot: false,
|
|
439
|
+
keyValuePostColonSpacing: " ",
|
|
440
|
+
keyValuePostKeySpacing: "",
|
|
441
|
+
keyValuePostOptionalSpacing: "",
|
|
442
|
+
keyValuePostVariadicSpacing: "",
|
|
443
|
+
methodQuotes: "double",
|
|
444
|
+
objectFieldIndent: "\t",
|
|
445
|
+
objectFieldQuote: null,
|
|
446
|
+
objectFieldSeparator: "comma-and-linebreak",
|
|
447
|
+
objectFieldSeparatorOptionalLinebreak: true,
|
|
448
|
+
objectFieldSeparatorTrailingPunctuation: false,
|
|
449
|
+
objectTypeBracketSpacing: "",
|
|
450
|
+
parameterDefaultValueSpacing: " ",
|
|
451
|
+
postMethodNameSpacing: "",
|
|
452
|
+
postNewSpacing: " ",
|
|
453
|
+
separatorForSingleObjectField: false,
|
|
454
|
+
stringQuotes: "double",
|
|
455
|
+
trailingPunctuationMultilineOnly: false,
|
|
456
|
+
typeBracketSpacing: "",
|
|
457
|
+
unionSpacing: " "
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"valid-types": "off"
|
|
461
|
+
}
|
|
462
|
+
);
|
|
463
|
+
|
|
464
|
+
export default jsdocRules;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as tolerance } from "./tolerance.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import addPrefixToRules from "../_common/add-prefix-to-rules.js";
|
|
2
|
+
|
|
3
|
+
import { tolerance } from "./no-secrets/_exports.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @import { Linter } from "eslint";
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @satisfies {Linter.RulesRecord}
|
|
11
|
+
*/
|
|
12
|
+
const noSecretsRules = addPrefixToRules(
|
|
13
|
+
"no-secrets",
|
|
14
|
+
{
|
|
15
|
+
"no-secrets": [
|
|
16
|
+
"error",
|
|
17
|
+
{
|
|
18
|
+
additionalDelimiters: [],
|
|
19
|
+
additionalRegexes: {},
|
|
20
|
+
ignoreCase: false,
|
|
21
|
+
ignoreContent: [],
|
|
22
|
+
ignoreIdentifiers: [],
|
|
23
|
+
ignoreModules: true,
|
|
24
|
+
tolerance
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
export default noSecretsRules;
|