@perfective/eslint-config 0.29.2 → 0.31.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 +1 -1
- package/README.adoc +198 -67
- package/README.md +62 -45
- package/config/array-func/array-func-config.d.ts +2 -0
- package/config/array-func/array-func-config.js +16 -0
- package/config/cypress/cypress-config.d.ts +10 -0
- package/config/cypress/cypress-config.js +38 -0
- package/config/cypress/index.d.ts +1 -0
- package/config/cypress/index.js +1 -0
- package/config/eslint/eslint-config.d.ts +2 -0
- package/config/eslint/eslint-config.js +8 -0
- package/config/eslint/layout-formatting-rules.d.ts +2 -0
- package/config/eslint/layout-formatting-rules.js +64 -0
- package/config/eslint/possible-problems-rules.d.ts +2 -0
- package/config/eslint/possible-problems-rules.js +96 -0
- package/config/eslint/suggestions-rules.d.ts +2 -0
- package/config/eslint/suggestions-rules.js +181 -0
- package/config/eslint-comments/best-practices-rules.d.ts +2 -0
- package/config/eslint-comments/best-practices-rules.js +8 -0
- package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
- package/config/eslint-comments/eslint-comments-config.js +11 -0
- package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
- package/config/eslint-comments/stylistic-issues-rules.js +9 -0
- package/config/import/helpful-warnings-rules.d.ts +2 -0
- package/config/import/helpful-warnings-rules.js +11 -0
- package/config/import/import-config.d.ts +4 -0
- package/config/import/import-config.js +46 -0
- package/config/import/index.d.ts +1 -0
- package/config/import/index.js +1 -0
- package/config/import/module-systems-rules.d.ts +2 -0
- package/config/import/module-systems-rules.js +10 -0
- package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
- package/config/import/rules/no-extraneous-dependencies.js +8 -0
- package/config/import/static-analysis-rules.d.ts +2 -0
- package/config/import/static-analysis-rules.js +26 -0
- package/config/import/style-guide-rules.d.ts +2 -0
- package/config/import/style-guide-rules.js +33 -0
- package/config/jest/index.d.ts +1 -0
- package/config/jest/index.js +1 -0
- package/config/jest/jest-config.d.ts +8 -0
- package/config/jest/jest-config.js +128 -0
- package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
- package/config/jest/typescript-eslint-jest-rules.js +5 -0
- package/config/jest-dom/index.d.ts +1 -0
- package/config/jest-dom/index.js +1 -0
- package/config/jest-dom/jest-dom-config.d.ts +8 -0
- package/config/jest-dom/jest-dom-config.js +23 -0
- package/config/jsdoc/jsdoc-config.d.ts +3 -0
- package/config/jsdoc/jsdoc-config.js +179 -0
- package/config/node/node-config.d.ts +2 -0
- package/config/node/node-config.js +66 -0
- package/config/perfective-eslint-config.d.ts +6 -0
- package/config/perfective-eslint-config.js +45 -0
- package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
- package/config/prefer-arrow/prefer-arrow-config.js +16 -0
- package/config/promise/promise-config.d.ts +2 -0
- package/config/promise/promise-config.js +37 -0
- package/config/rxjs/index.d.ts +1 -0
- package/config/rxjs/index.js +1 -0
- package/config/rxjs/rxjs-config.d.ts +8 -0
- package/config/rxjs/rxjs-config.js +67 -0
- package/config/security/security-config.d.ts +2 -0
- package/config/security/security-config.js +24 -0
- package/config/simple-import-sort/index.d.ts +1 -0
- package/config/simple-import-sort/index.js +1 -0
- package/config/simple-import-sort/rules/imports.d.ts +28 -0
- package/config/simple-import-sort/rules/imports.js +32 -0
- package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
- package/config/simple-import-sort/simple-import-sort-config.js +13 -0
- package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
- package/config/stylistic/js/stylistic-js-config.js +200 -0
- package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
- package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
- package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
- package/config/stylistic/plus/stylistic-plus-config.js +16 -0
- package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
- package/config/stylistic/ts/stylistic-ts-config.js +141 -0
- package/config/testing-library/index.d.ts +1 -0
- package/config/testing-library/index.js +1 -0
- package/config/testing-library/testing-library-config.d.ts +8 -0
- package/config/testing-library/testing-library-config.js +45 -0
- package/config/typescript-eslint/extension-rules.d.ts +2 -0
- package/config/typescript-eslint/extension-rules.js +113 -0
- package/config/typescript-eslint/index.d.ts +1 -0
- package/config/typescript-eslint/index.js +1 -0
- package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +39 -0
- package/config/typescript-eslint/rules/typescript-eslint-naming-convention.js +26 -0
- package/config/typescript-eslint/supported-rules.d.ts +2 -0
- package/config/typescript-eslint/supported-rules.js +260 -0
- package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
- package/config/typescript-eslint/typescript-eslint-config.js +15 -0
- package/config/unicorn/index.d.ts +1 -0
- package/config/unicorn/index.js +1 -0
- package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +20 -0
- package/config/unicorn/rules/prevent-abbreviations.js +30 -0
- package/config/unicorn/unicorn-config.d.ts +2 -0
- package/config/unicorn/unicorn-config.js +185 -0
- package/index.d.ts +5 -1732
- package/index.js +5 -146
- package/linter/glob.d.ts +59 -0
- package/linter/glob.js +8 -0
- package/linter/language-options.d.ts +25 -0
- package/linter/language-options.js +45 -0
- package/linter/linter-config.d.ts +13 -0
- package/linter/linter-config.js +6 -0
- package/linter/node.d.ts +10 -0
- package/linter/node.js +7 -0
- package/linter/plugin.d.ts +15 -0
- package/linter/plugin.js +26 -0
- package/package.json +45 -45
- package/config/node.d.ts +0 -1
- package/config/node.js +0 -11
- package/config/plugin.d.ts +0 -2
- package/config/plugin.js +0 -30
- package/config.d.ts +0 -1
- package/config.js +0 -6
- package/cypress.d.ts +0 -1
- package/cypress.js +0 -56
- package/jest-dom.d.ts +0 -1
- package/jest-dom.js +0 -11
- package/jest.d.ts +0 -1
- package/jest.js +0 -24
- package/rules/array-func/index.d.ts +0 -14
- package/rules/array-func/index.js +0 -50
- package/rules/cypress/index.d.ts +0 -21
- package/rules/cypress/index.js +0 -57
- package/rules/eslint/index.d.ts +0 -339
- package/rules/eslint/index.js +0 -9
- package/rules/eslint/layout-formatting.d.ts +0 -64
- package/rules/eslint/layout-formatting.js +0 -67
- package/rules/eslint/possible-problems.d.ts +0 -96
- package/rules/eslint/possible-problems.js +0 -99
- package/rules/eslint/suggestions.d.ts +0 -181
- package/rules/eslint/suggestions.js +0 -182
- package/rules/eslint-comments/best-practices.d.ts +0 -8
- package/rules/eslint-comments/best-practices.js +0 -11
- package/rules/eslint-comments/index.d.ts +0 -21
- package/rules/eslint-comments/index.js +0 -45
- package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
- package/rules/eslint-comments/stylistic-issues.js +0 -18
- package/rules/import/helpful-warnings.d.ts +0 -10
- package/rules/import/helpful-warnings.js +0 -14
- package/rules/import/index.d.ts +0 -78
- package/rules/import/index.js +0 -14
- package/rules/import/module-systems.d.ts +0 -10
- package/rules/import/module-systems.js +0 -13
- package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -11
- package/rules/import/rules/no-extraneous-dependencies.js +0 -24
- package/rules/import/static-analysis.d.ts +0 -26
- package/rules/import/static-analysis.js +0 -29
- package/rules/import/style-guide.d.ts +0 -33
- package/rules/import/style-guide.js +0 -36
- package/rules/jest/index.d.ts +0 -124
- package/rules/jest/index.js +0 -72
- package/rules/jest/typescript-eslint.d.ts +0 -5
- package/rules/jest/typescript-eslint.js +0 -8
- package/rules/jest-dom/index.d.ts +0 -32
- package/rules/jest-dom/index.js +0 -55
- package/rules/jsdoc/index.d.ts +0 -134
- package/rules/jsdoc/index.js +0 -347
- package/rules/n/index.d.ts +0 -66
- package/rules/n/index.js +0 -98
- package/rules/prefer-arrow/index.d.ts +0 -14
- package/rules/prefer-arrow/index.js +0 -50
- package/rules/promise/index.d.ts +0 -35
- package/rules/promise/index.js +0 -73
- package/rules/rxjs/index.d.ts +0 -60
- package/rules/rxjs/index.js +0 -96
- package/rules/security/index.d.ts +0 -22
- package/rules/security/index.js +0 -58
- package/rules/simple-import-sort/index.d.ts +0 -10
- package/rules/simple-import-sort/index.js +0 -48
- package/rules/simple-import-sort/rules/imports.d.ts +0 -8
- package/rules/simple-import-sort/rules/imports.js +0 -46
- package/rules/stylistic/js/index.d.ts +0 -197
- package/rules/stylistic/js/index.js +0 -236
- package/rules/stylistic/jsx/index.d.ts +0 -81
- package/rules/stylistic/jsx/index.js +0 -117
- package/rules/stylistic/plus/index.d.ts +0 -14
- package/rules/stylistic/plus/index.js +0 -50
- package/rules/stylistic/ts/index.d.ts +0 -135
- package/rules/stylistic/ts/index.js +0 -169
- package/rules/testing-library/index.d.ts +0 -62
- package/rules/testing-library/index.js +0 -77
- package/rules/typescript-eslint/extension-rules.d.ts +0 -113
- package/rules/typescript-eslint/extension-rules.js +0 -116
- package/rules/typescript-eslint/index.d.ts +0 -369
- package/rules/typescript-eslint/index.js +0 -45
- package/rules/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -32
- package/rules/typescript-eslint/supported-rules.d.ts +0 -253
- package/rules/typescript-eslint/supported-rules.js +0 -319
- package/rules/unicorn/index.d.ts +0 -178
- package/rules/unicorn/index.js +0 -209
- package/rules/unicorn/rules/prevent-abbreviations.js +0 -8
- package/rules.d.ts +0 -4
- package/rules.js +0 -14
- package/rxjs.d.ts +0 -1
- package/rxjs.js +0 -58
- package/testing-library.d.ts +0 -1
- package/testing-library.js +0 -11
package/rules/jsdoc/index.d.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
export declare const jsdocConfig: {
|
|
2
|
-
plugins: {
|
|
3
|
-
jsdoc: {
|
|
4
|
-
rules: Record<string, import("eslint").Rule.RuleModule> | undefined;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
settings: {
|
|
8
|
-
jsdoc: {
|
|
9
|
-
tagNamePreference: {
|
|
10
|
-
augments: {
|
|
11
|
-
message: string;
|
|
12
|
-
replacement: string;
|
|
13
|
-
};
|
|
14
|
-
todo: {
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
|
-
fires: {
|
|
18
|
-
replacement: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
ignoreReplacesDocs: boolean;
|
|
22
|
-
overrideReplacesDocs: boolean;
|
|
23
|
-
augmentsExtendsReplacesDocs: boolean;
|
|
24
|
-
implementsReplacesDoc: boolean;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
rules: {
|
|
28
|
-
'jsdoc/check-access': string;
|
|
29
|
-
'jsdoc/check-alignment': string;
|
|
30
|
-
'jsdoc/check-examples': string;
|
|
31
|
-
'jsdoc/check-indentation': string;
|
|
32
|
-
'jsdoc/check-line-alignment': string[];
|
|
33
|
-
'jsdoc/check-param-names': (string | {
|
|
34
|
-
allowExtraTrailingParamDocs: boolean;
|
|
35
|
-
checkDestructured: boolean;
|
|
36
|
-
checkRestProperty: boolean;
|
|
37
|
-
disableExtraPropertyReporting: boolean;
|
|
38
|
-
disableMissingParamChecks: boolean;
|
|
39
|
-
enableFixer: boolean;
|
|
40
|
-
useDefaultObjectProperties: boolean;
|
|
41
|
-
})[];
|
|
42
|
-
'jsdoc/check-property-names': (string | {
|
|
43
|
-
enableFixer: boolean;
|
|
44
|
-
})[];
|
|
45
|
-
'jsdoc/check-syntax': string;
|
|
46
|
-
'jsdoc/check-tag-names': (string | {
|
|
47
|
-
definedTags: string[];
|
|
48
|
-
jsxTags: boolean;
|
|
49
|
-
})[];
|
|
50
|
-
'jsdoc/check-template-names': string;
|
|
51
|
-
'jsdoc/check-types': (string | {
|
|
52
|
-
noDefaults: boolean;
|
|
53
|
-
})[];
|
|
54
|
-
'jsdoc/check-values': string;
|
|
55
|
-
'jsdoc/convert-to-jsdoc-comments': string;
|
|
56
|
-
'jsdoc/empty-tags': (string | {
|
|
57
|
-
tags: string[];
|
|
58
|
-
})[];
|
|
59
|
-
'jsdoc/implements-on-classes': string;
|
|
60
|
-
'jsdoc/imports-as-dependencies': string;
|
|
61
|
-
'jsdoc/lines-before-block': string;
|
|
62
|
-
'jsdoc/match-description': string;
|
|
63
|
-
'jsdoc/match-name': string;
|
|
64
|
-
'jsdoc/multiline-blocks': (string | {
|
|
65
|
-
noZeroLineText: boolean;
|
|
66
|
-
noFinalLineText: boolean;
|
|
67
|
-
noSingleLineBlocks: boolean;
|
|
68
|
-
singleLineTags: string[];
|
|
69
|
-
noMultilineBlocks: boolean;
|
|
70
|
-
multilineTags: string[];
|
|
71
|
-
allowMultipleTags: boolean;
|
|
72
|
-
})[];
|
|
73
|
-
'jsdoc/no-bad-blocks': (string | {
|
|
74
|
-
ignore: string[];
|
|
75
|
-
preventAllMultiAsteriskBlocks: boolean;
|
|
76
|
-
})[];
|
|
77
|
-
'jsdoc/no-blank-blocks': string;
|
|
78
|
-
'jsdoc/no-blank-block-descriptions': string;
|
|
79
|
-
'jsdoc/no-defaults': string;
|
|
80
|
-
'jsdoc/no-missing-syntax': string;
|
|
81
|
-
'jsdoc/no-multi-asterisks': (string | {
|
|
82
|
-
allowWhitespace: boolean;
|
|
83
|
-
preventAtMiddleLines: boolean;
|
|
84
|
-
preventAtEnd: boolean;
|
|
85
|
-
})[];
|
|
86
|
-
'jsdoc/no-restricted-syntax': string;
|
|
87
|
-
'jsdoc/no-types': string;
|
|
88
|
-
'jsdoc/no-undefined-types': string;
|
|
89
|
-
'jsdoc/require-asterisk-prefix': string[];
|
|
90
|
-
'jsdoc/require-description': (string | {
|
|
91
|
-
exemptedBy: string[];
|
|
92
|
-
})[];
|
|
93
|
-
'jsdoc/require-description-complete-sentence': string;
|
|
94
|
-
'jsdoc/require-example': string;
|
|
95
|
-
'jsdoc/require-file-overview': string;
|
|
96
|
-
'jsdoc/require-hyphen-before-param-description': string[];
|
|
97
|
-
'jsdoc/require-jsdoc': string;
|
|
98
|
-
'jsdoc/require-param': string;
|
|
99
|
-
'jsdoc/require-param-description': string;
|
|
100
|
-
'jsdoc/require-param-name': string;
|
|
101
|
-
'jsdoc/require-param-type': string;
|
|
102
|
-
'jsdoc/require-property': string;
|
|
103
|
-
'jsdoc/require-property-description': string;
|
|
104
|
-
'jsdoc/require-property-name': string;
|
|
105
|
-
'jsdoc/require-property-type': string;
|
|
106
|
-
'jsdoc/require-returns': string;
|
|
107
|
-
'jsdoc/require-returns-check': string;
|
|
108
|
-
'jsdoc/require-returns-description': string;
|
|
109
|
-
'jsdoc/require-returns-type': string;
|
|
110
|
-
'jsdoc/require-template': (string | {
|
|
111
|
-
requireSeparateTemplates: boolean;
|
|
112
|
-
})[];
|
|
113
|
-
'jsdoc/require-throws': string;
|
|
114
|
-
'jsdoc/require-yields': string;
|
|
115
|
-
'jsdoc/require-yields-check': string;
|
|
116
|
-
'jsdoc/sort-tags': (string | {
|
|
117
|
-
tagSequence: {
|
|
118
|
-
tags: string[];
|
|
119
|
-
}[];
|
|
120
|
-
alphabetizeExtras: boolean;
|
|
121
|
-
linesBetween: number;
|
|
122
|
-
reportTagGroupSpacing: boolean;
|
|
123
|
-
reportIntraTagGroupSpacing: boolean;
|
|
124
|
-
})[];
|
|
125
|
-
'jsdoc/tag-lines': (string | {
|
|
126
|
-
count: number;
|
|
127
|
-
startLines: number;
|
|
128
|
-
endLines: number;
|
|
129
|
-
applyToEndTag: boolean;
|
|
130
|
-
tags: {};
|
|
131
|
-
})[];
|
|
132
|
-
'jsdoc/valid-types': string;
|
|
133
|
-
};
|
|
134
|
-
};
|
package/rules/jsdoc/index.js
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.jsdocConfig = void 0;
|
|
37
|
-
const eslintPluginJsdoc = __importStar(require("eslint-plugin-jsdoc"));
|
|
38
|
-
exports.jsdocConfig = {
|
|
39
|
-
plugins: {
|
|
40
|
-
jsdoc: {
|
|
41
|
-
rules: eslintPluginJsdoc.default.configs['flat/recommended'].plugins['jsdoc'].rules,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
settings: {
|
|
45
|
-
jsdoc: {
|
|
46
|
-
tagNamePreference: {
|
|
47
|
-
augments: {
|
|
48
|
-
message: '@extends is to be used over @augments as it is more evocative of classes than @augments',
|
|
49
|
-
replacement: 'extends',
|
|
50
|
-
},
|
|
51
|
-
todo: {
|
|
52
|
-
message: 'Use TODO for comments',
|
|
53
|
-
},
|
|
54
|
-
fires: {
|
|
55
|
-
replacement: 'emits',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
ignoreReplacesDocs: true,
|
|
59
|
-
overrideReplacesDocs: true,
|
|
60
|
-
augmentsExtendsReplacesDocs: false,
|
|
61
|
-
implementsReplacesDoc: false,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
rules: {
|
|
65
|
-
'jsdoc/check-access': 'off',
|
|
66
|
-
'jsdoc/check-alignment': 'error',
|
|
67
|
-
'jsdoc/check-examples': 'off',
|
|
68
|
-
'jsdoc/check-indentation': 'off',
|
|
69
|
-
'jsdoc/check-line-alignment': ['off', 'never'],
|
|
70
|
-
'jsdoc/check-param-names': ['error', {
|
|
71
|
-
allowExtraTrailingParamDocs: false,
|
|
72
|
-
checkDestructured: true,
|
|
73
|
-
checkRestProperty: false,
|
|
74
|
-
disableExtraPropertyReporting: false,
|
|
75
|
-
disableMissingParamChecks: false,
|
|
76
|
-
enableFixer: true,
|
|
77
|
-
useDefaultObjectProperties: false,
|
|
78
|
-
}],
|
|
79
|
-
'jsdoc/check-property-names': ['error', {
|
|
80
|
-
enableFixer: true,
|
|
81
|
-
}],
|
|
82
|
-
'jsdoc/check-syntax': 'error',
|
|
83
|
-
'jsdoc/check-tag-names': ['error', {
|
|
84
|
-
definedTags: ['final', 'flags', 'sealed', 'workaround'],
|
|
85
|
-
jsxTags: true,
|
|
86
|
-
}],
|
|
87
|
-
'jsdoc/check-template-names': 'error',
|
|
88
|
-
'jsdoc/check-types': ['error', {
|
|
89
|
-
noDefaults: false,
|
|
90
|
-
}],
|
|
91
|
-
'jsdoc/check-values': 'error',
|
|
92
|
-
'jsdoc/convert-to-jsdoc-comments': 'off',
|
|
93
|
-
'jsdoc/empty-tags': ['error', {
|
|
94
|
-
tags: ['final', 'flags', 'sealed'],
|
|
95
|
-
}],
|
|
96
|
-
'jsdoc/implements-on-classes': 'error',
|
|
97
|
-
'jsdoc/imports-as-dependencies': 'error',
|
|
98
|
-
'jsdoc/lines-before-block': 'off',
|
|
99
|
-
'jsdoc/match-description': 'error',
|
|
100
|
-
'jsdoc/match-name': 'off',
|
|
101
|
-
'jsdoc/multiline-blocks': ['error', {
|
|
102
|
-
noZeroLineText: true,
|
|
103
|
-
noFinalLineText: true,
|
|
104
|
-
noSingleLineBlocks: true,
|
|
105
|
-
singleLineTags: ['lends', 'type', 'deprecated'],
|
|
106
|
-
noMultilineBlocks: false,
|
|
107
|
-
multilineTags: ['*'],
|
|
108
|
-
allowMultipleTags: true,
|
|
109
|
-
}],
|
|
110
|
-
'jsdoc/no-bad-blocks': ['error', {
|
|
111
|
-
ignore: ['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck', 'typescript-eslint'],
|
|
112
|
-
preventAllMultiAsteriskBlocks: false,
|
|
113
|
-
}],
|
|
114
|
-
'jsdoc/no-blank-blocks': 'warn',
|
|
115
|
-
'jsdoc/no-blank-block-descriptions': 'off',
|
|
116
|
-
'jsdoc/no-defaults': 'error',
|
|
117
|
-
'jsdoc/no-missing-syntax': 'off',
|
|
118
|
-
'jsdoc/no-multi-asterisks': ['error', {
|
|
119
|
-
allowWhitespace: false,
|
|
120
|
-
preventAtMiddleLines: true,
|
|
121
|
-
preventAtEnd: true,
|
|
122
|
-
}],
|
|
123
|
-
'jsdoc/no-restricted-syntax': 'off',
|
|
124
|
-
'jsdoc/no-types': 'error',
|
|
125
|
-
'jsdoc/no-undefined-types': 'error',
|
|
126
|
-
'jsdoc/require-asterisk-prefix': ['error', 'always'],
|
|
127
|
-
'jsdoc/require-description': ['error', {
|
|
128
|
-
exemptedBy: ['inheritdoc', 'package', 'private', 'see', 'deprecated'],
|
|
129
|
-
}],
|
|
130
|
-
'jsdoc/require-description-complete-sentence': 'error',
|
|
131
|
-
'jsdoc/require-example': 'off',
|
|
132
|
-
'jsdoc/require-file-overview': 'off',
|
|
133
|
-
'jsdoc/require-hyphen-before-param-description': ['warn', 'always'],
|
|
134
|
-
'jsdoc/require-jsdoc': 'off',
|
|
135
|
-
'jsdoc/require-param': 'off',
|
|
136
|
-
'jsdoc/require-param-description': 'error',
|
|
137
|
-
'jsdoc/require-param-name': 'error',
|
|
138
|
-
'jsdoc/require-param-type': 'off',
|
|
139
|
-
'jsdoc/require-property': 'error',
|
|
140
|
-
'jsdoc/require-property-description': 'error',
|
|
141
|
-
'jsdoc/require-property-name': 'error',
|
|
142
|
-
'jsdoc/require-property-type': 'error',
|
|
143
|
-
'jsdoc/require-returns': 'off',
|
|
144
|
-
'jsdoc/require-returns-check': 'error',
|
|
145
|
-
'jsdoc/require-returns-description': 'error',
|
|
146
|
-
'jsdoc/require-returns-type': 'off',
|
|
147
|
-
'jsdoc/require-template': ['off', {
|
|
148
|
-
requireSeparateTemplates: false,
|
|
149
|
-
}],
|
|
150
|
-
'jsdoc/require-throws': 'error',
|
|
151
|
-
'jsdoc/require-yields': 'error',
|
|
152
|
-
'jsdoc/require-yields-check': 'error',
|
|
153
|
-
'jsdoc/sort-tags': ['warn', {
|
|
154
|
-
tagSequence: [
|
|
155
|
-
{
|
|
156
|
-
tags: [
|
|
157
|
-
'summary',
|
|
158
|
-
'typeSummary',
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
tags: [
|
|
163
|
-
'module',
|
|
164
|
-
'exports',
|
|
165
|
-
'file',
|
|
166
|
-
'fileoverview',
|
|
167
|
-
'overview',
|
|
168
|
-
],
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
tags: [
|
|
172
|
-
'typedef',
|
|
173
|
-
'interface',
|
|
174
|
-
'record',
|
|
175
|
-
'template',
|
|
176
|
-
'name',
|
|
177
|
-
'kind',
|
|
178
|
-
'type',
|
|
179
|
-
'alias',
|
|
180
|
-
'external',
|
|
181
|
-
'host',
|
|
182
|
-
'callback',
|
|
183
|
-
'func',
|
|
184
|
-
'function',
|
|
185
|
-
'method',
|
|
186
|
-
'class',
|
|
187
|
-
'constructor',
|
|
188
|
-
],
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
tags: [
|
|
192
|
-
'modifies',
|
|
193
|
-
'mixes',
|
|
194
|
-
'mixin',
|
|
195
|
-
'mixinClass',
|
|
196
|
-
'mixinFunction',
|
|
197
|
-
'namespace',
|
|
198
|
-
'borrows',
|
|
199
|
-
'constructs',
|
|
200
|
-
'lends',
|
|
201
|
-
'implements',
|
|
202
|
-
'requires',
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
tags: [
|
|
207
|
-
'desc',
|
|
208
|
-
'description',
|
|
209
|
-
'classdesc',
|
|
210
|
-
'tutorial',
|
|
211
|
-
'copyright',
|
|
212
|
-
'license',
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
tags: [
|
|
217
|
-
'const',
|
|
218
|
-
'constant',
|
|
219
|
-
'final',
|
|
220
|
-
'global',
|
|
221
|
-
'readonly',
|
|
222
|
-
'abstract',
|
|
223
|
-
'virtual',
|
|
224
|
-
'var',
|
|
225
|
-
'member',
|
|
226
|
-
'memberof',
|
|
227
|
-
'memberof!',
|
|
228
|
-
'inner',
|
|
229
|
-
'instance',
|
|
230
|
-
'inheritdoc',
|
|
231
|
-
'inheritDoc',
|
|
232
|
-
'override',
|
|
233
|
-
'hideconstructor',
|
|
234
|
-
],
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
tags: [
|
|
238
|
-
'param',
|
|
239
|
-
'arg',
|
|
240
|
-
'argument',
|
|
241
|
-
'prop',
|
|
242
|
-
'property',
|
|
243
|
-
],
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
tags: [
|
|
247
|
-
'async',
|
|
248
|
-
'generator',
|
|
249
|
-
'default',
|
|
250
|
-
'defaultvalue',
|
|
251
|
-
'enum',
|
|
252
|
-
'augments',
|
|
253
|
-
'extends',
|
|
254
|
-
'return',
|
|
255
|
-
'returns',
|
|
256
|
-
'throws',
|
|
257
|
-
'exception',
|
|
258
|
-
'yield',
|
|
259
|
-
'yields',
|
|
260
|
-
'event',
|
|
261
|
-
'fires',
|
|
262
|
-
'emits',
|
|
263
|
-
'listens',
|
|
264
|
-
'this',
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
tags: [
|
|
269
|
-
'static',
|
|
270
|
-
'private',
|
|
271
|
-
'protected',
|
|
272
|
-
'public',
|
|
273
|
-
'access',
|
|
274
|
-
'package',
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
tags: [
|
|
279
|
-
'see',
|
|
280
|
-
'example',
|
|
281
|
-
],
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
tags: [
|
|
285
|
-
'closurePrimitive',
|
|
286
|
-
'customElement',
|
|
287
|
-
'expose',
|
|
288
|
-
'hidden',
|
|
289
|
-
'idGenerator',
|
|
290
|
-
'meaning',
|
|
291
|
-
'ngInject',
|
|
292
|
-
'owner',
|
|
293
|
-
'wizaction',
|
|
294
|
-
],
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
tags: [
|
|
298
|
-
'define',
|
|
299
|
-
'dict',
|
|
300
|
-
'export',
|
|
301
|
-
'externs',
|
|
302
|
-
'implicitCast',
|
|
303
|
-
'noalias',
|
|
304
|
-
'nocollapse',
|
|
305
|
-
'nocompile',
|
|
306
|
-
'noinline',
|
|
307
|
-
'nosideeffects',
|
|
308
|
-
'polymer',
|
|
309
|
-
'polymerBehavior',
|
|
310
|
-
'preserve',
|
|
311
|
-
'struct',
|
|
312
|
-
'suppress',
|
|
313
|
-
'unrestricted',
|
|
314
|
-
],
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
tags: [
|
|
318
|
-
'category',
|
|
319
|
-
],
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
tags: [
|
|
323
|
-
'ignore',
|
|
324
|
-
'author',
|
|
325
|
-
'version',
|
|
326
|
-
'variation',
|
|
327
|
-
'since',
|
|
328
|
-
'deprecated',
|
|
329
|
-
'todo',
|
|
330
|
-
],
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
alphabetizeExtras: false,
|
|
334
|
-
linesBetween: 1,
|
|
335
|
-
reportTagGroupSpacing: true,
|
|
336
|
-
reportIntraTagGroupSpacing: true,
|
|
337
|
-
}],
|
|
338
|
-
'jsdoc/tag-lines': ['warn', 'always', {
|
|
339
|
-
count: 0,
|
|
340
|
-
startLines: 1,
|
|
341
|
-
endLines: 0,
|
|
342
|
-
applyToEndTag: false,
|
|
343
|
-
tags: {},
|
|
344
|
-
}],
|
|
345
|
-
'jsdoc/valid-types': 'error',
|
|
346
|
-
},
|
|
347
|
-
};
|
package/rules/n/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginN from 'eslint-plugin-n';
|
|
2
|
-
export declare const nConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
n: import("eslint").ESLint.Plugin & {
|
|
5
|
-
configs: eslintPluginN.Configs;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
rules: {
|
|
9
|
-
'n/callback-return': (string | string[])[];
|
|
10
|
-
'n/exports-style': (string | {
|
|
11
|
-
allowBatchAssign: boolean;
|
|
12
|
-
})[];
|
|
13
|
-
'n/file-extension-in-import': string;
|
|
14
|
-
'n/global-require': string;
|
|
15
|
-
'n/handle-callback-err': string;
|
|
16
|
-
'n/hashbang': string;
|
|
17
|
-
'n/no-callback-literal': string;
|
|
18
|
-
'n/no-deprecated-api': string;
|
|
19
|
-
'n/no-exports-assign': string;
|
|
20
|
-
'n/no-extraneous-import': string;
|
|
21
|
-
'n/no-extraneous-require': string;
|
|
22
|
-
'n/no-hide-core-modules': string;
|
|
23
|
-
'n/no-missing-import': string;
|
|
24
|
-
'n/no-missing-require': string;
|
|
25
|
-
'n/no-mixed-requires': string;
|
|
26
|
-
'n/no-new-require': string;
|
|
27
|
-
'n/no-path-concat': string;
|
|
28
|
-
'n/no-process-env': string;
|
|
29
|
-
'n/no-process-exit': string;
|
|
30
|
-
'n/no-restricted-import': string;
|
|
31
|
-
'n/no-restricted-require': string;
|
|
32
|
-
'n/no-sync': (string | {
|
|
33
|
-
allowAtRootLevel: boolean;
|
|
34
|
-
})[];
|
|
35
|
-
'n/no-unpublished-bin': string;
|
|
36
|
-
'n/no-unpublished-import': (string | {
|
|
37
|
-
ignorePrivate: boolean;
|
|
38
|
-
})[];
|
|
39
|
-
'n/no-unpublished-require': (string | {
|
|
40
|
-
allowModules: never[];
|
|
41
|
-
ignorePrivate: boolean;
|
|
42
|
-
tryExtensions: string[];
|
|
43
|
-
})[];
|
|
44
|
-
'n/no-unsupported-features/es-builtins': (string | {
|
|
45
|
-
version: string;
|
|
46
|
-
ignores: never[];
|
|
47
|
-
})[];
|
|
48
|
-
'n/no-unsupported-features/es-syntax': string;
|
|
49
|
-
'n/no-unsupported-features/node-builtins': (string | {
|
|
50
|
-
version: string;
|
|
51
|
-
ignores: never[];
|
|
52
|
-
})[];
|
|
53
|
-
'n/prefer-global/buffer': string[];
|
|
54
|
-
'n/prefer-global/console': string[];
|
|
55
|
-
'n/prefer-global/process': string[];
|
|
56
|
-
'n/prefer-global/text-decoder': string[];
|
|
57
|
-
'n/prefer-global/text-encoder': string[];
|
|
58
|
-
'n/prefer-global/url': string[];
|
|
59
|
-
'n/prefer-global/url-search-params': string[];
|
|
60
|
-
'n/prefer-node-protocol': string;
|
|
61
|
-
'n/prefer-promises/dns': string;
|
|
62
|
-
'n/prefer-promises/fs': string;
|
|
63
|
-
'n/process-exit-as-throw': string;
|
|
64
|
-
'n/shebang': string;
|
|
65
|
-
};
|
|
66
|
-
};
|
package/rules/n/index.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.nConfig = void 0;
|
|
37
|
-
const eslintPluginN = __importStar(require("eslint-plugin-n"));
|
|
38
|
-
exports.nConfig = {
|
|
39
|
-
plugins: {
|
|
40
|
-
n: eslintPluginN,
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
'n/callback-return': ['error', ['callback', 'cb', 'next']],
|
|
44
|
-
'n/exports-style': ['warn', 'module.exports', { allowBatchAssign: false }],
|
|
45
|
-
'n/file-extension-in-import': 'off',
|
|
46
|
-
'n/global-require': 'error',
|
|
47
|
-
'n/handle-callback-err': 'error',
|
|
48
|
-
'n/hashbang': 'warn',
|
|
49
|
-
'n/no-callback-literal': 'error',
|
|
50
|
-
'n/no-deprecated-api': 'error',
|
|
51
|
-
'n/no-exports-assign': 'error',
|
|
52
|
-
'n/no-extraneous-import': 'off',
|
|
53
|
-
'n/no-extraneous-require': 'off',
|
|
54
|
-
'n/no-hide-core-modules': 'off',
|
|
55
|
-
'n/no-missing-import': 'off',
|
|
56
|
-
'n/no-missing-require': 'off',
|
|
57
|
-
'n/no-mixed-requires': 'error',
|
|
58
|
-
'n/no-new-require': 'error',
|
|
59
|
-
'n/no-path-concat': 'error',
|
|
60
|
-
'n/no-process-env': 'error',
|
|
61
|
-
'n/no-process-exit': 'off',
|
|
62
|
-
'n/no-restricted-import': 'error',
|
|
63
|
-
'n/no-restricted-require': 'error',
|
|
64
|
-
'n/no-sync': ['error', {
|
|
65
|
-
allowAtRootLevel: false,
|
|
66
|
-
}],
|
|
67
|
-
'n/no-unpublished-bin': 'error',
|
|
68
|
-
'n/no-unpublished-import': ['error', {
|
|
69
|
-
ignorePrivate: false,
|
|
70
|
-
}],
|
|
71
|
-
'n/no-unpublished-require': ['error', {
|
|
72
|
-
allowModules: [],
|
|
73
|
-
ignorePrivate: false,
|
|
74
|
-
tryExtensions: ['.js', '.json', '.node'],
|
|
75
|
-
}],
|
|
76
|
-
'n/no-unsupported-features/es-builtins': ['error', {
|
|
77
|
-
version: '>=18.0.0',
|
|
78
|
-
ignores: [],
|
|
79
|
-
}],
|
|
80
|
-
'n/no-unsupported-features/es-syntax': 'off',
|
|
81
|
-
'n/no-unsupported-features/node-builtins': ['error', {
|
|
82
|
-
version: '>=18.0.0',
|
|
83
|
-
ignores: [],
|
|
84
|
-
}],
|
|
85
|
-
'n/prefer-global/buffer': ['error', 'always'],
|
|
86
|
-
'n/prefer-global/console': ['error', 'always'],
|
|
87
|
-
'n/prefer-global/process': ['error', 'always'],
|
|
88
|
-
'n/prefer-global/text-decoder': ['error', 'always'],
|
|
89
|
-
'n/prefer-global/text-encoder': ['error', 'always'],
|
|
90
|
-
'n/prefer-global/url': ['error', 'always'],
|
|
91
|
-
'n/prefer-global/url-search-params': ['error', 'always'],
|
|
92
|
-
'n/prefer-node-protocol': 'off',
|
|
93
|
-
'n/prefer-promises/dns': 'error',
|
|
94
|
-
'n/prefer-promises/fs': 'error',
|
|
95
|
-
'n/process-exit-as-throw': 'error',
|
|
96
|
-
'n/shebang': 'off',
|
|
97
|
-
},
|
|
98
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginPreferArrow from 'eslint-plugin-prefer-arrow';
|
|
2
|
-
export declare const preferArrowConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
'prefer-arrow': typeof eslintPluginPreferArrow;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
'prefer-arrow/prefer-arrow-functions': (string | {
|
|
8
|
-
allowStandaloneDeclarations: boolean;
|
|
9
|
-
classPropertiesAllowed: boolean;
|
|
10
|
-
disallowPrototype: boolean;
|
|
11
|
-
singleReturnOnly: boolean;
|
|
12
|
-
})[];
|
|
13
|
-
};
|
|
14
|
-
};
|