@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/unicorn/index.d.ts
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
export declare const unicornConfig: {
|
|
2
|
-
plugins: {
|
|
3
|
-
unicorn: import("eslint").ESLint.Plugin & {
|
|
4
|
-
configs: {
|
|
5
|
-
recommended: import("eslint").Linter.Config;
|
|
6
|
-
all: import("eslint").Linter.Config;
|
|
7
|
-
"flat/all": import("eslint").Linter.FlatConfig;
|
|
8
|
-
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
rules: {
|
|
13
|
-
'unicorn/better-regex': string;
|
|
14
|
-
'unicorn/catch-error-name': string;
|
|
15
|
-
'unicorn/consistent-destructuring': string;
|
|
16
|
-
'unicorn/consistent-empty-array-spread': string;
|
|
17
|
-
'unicorn/consistent-existence-index-check': string;
|
|
18
|
-
'unicorn/consistent-function-scoping': (string | {
|
|
19
|
-
checkArrowFunctions: boolean;
|
|
20
|
-
})[];
|
|
21
|
-
'unicorn/custom-error-definition': string;
|
|
22
|
-
'unicorn/empty-brace-spaces': string;
|
|
23
|
-
'unicorn/error-message': string;
|
|
24
|
-
'unicorn/escape-case': string;
|
|
25
|
-
'unicorn/expiring-todo-comments': string;
|
|
26
|
-
'unicorn/explicit-length-check': string;
|
|
27
|
-
'unicorn/filename-case': (string | {
|
|
28
|
-
case: string;
|
|
29
|
-
})[];
|
|
30
|
-
'unicorn/import-index': string;
|
|
31
|
-
'unicorn/import-style': string;
|
|
32
|
-
'unicorn/new-for-builtins': string;
|
|
33
|
-
'unicorn/no-abusive-eslint-disable': string;
|
|
34
|
-
'unicorn/no-anonymous-default-export': string;
|
|
35
|
-
'unicorn/no-array-callback-reference': string;
|
|
36
|
-
'unicorn/no-array-for-each': string;
|
|
37
|
-
'unicorn/no-array-method-this-argument': string;
|
|
38
|
-
'unicorn/no-array-push-push': (string | {
|
|
39
|
-
ignore: string[];
|
|
40
|
-
})[];
|
|
41
|
-
'unicorn/no-array-reduce': string;
|
|
42
|
-
'unicorn/no-await-expression-member': string;
|
|
43
|
-
'unicorn/no-await-in-promise-methods': string;
|
|
44
|
-
'unicorn/no-console-spaces': string;
|
|
45
|
-
'unicorn/no-document-cookie': string;
|
|
46
|
-
'unicorn/no-empty-file': string;
|
|
47
|
-
'unicorn/no-for-loop': string;
|
|
48
|
-
'unicorn/no-hex-escape': string;
|
|
49
|
-
'unicorn/no-instanceof-array': string;
|
|
50
|
-
'unicorn/no-invalid-fetch-options': string;
|
|
51
|
-
'unicorn/no-invalid-remove-event-listener': string;
|
|
52
|
-
'unicorn/no-keyword-prefix': (string | {
|
|
53
|
-
disallowedPrefixes: string[];
|
|
54
|
-
checkProperties: boolean;
|
|
55
|
-
onlyCamelCase: boolean;
|
|
56
|
-
})[];
|
|
57
|
-
'unicorn/no-length-as-slice-end': string;
|
|
58
|
-
'unicorn/no-lonely-if': string;
|
|
59
|
-
'unicorn/no-magic-array-flat-depth': string;
|
|
60
|
-
'unicorn/no-negated-condition': string;
|
|
61
|
-
'unicorn/no-negation-in-equality-check': string;
|
|
62
|
-
'unicorn/no-nested-ternary': string;
|
|
63
|
-
'unicorn/no-new-array': string;
|
|
64
|
-
'unicorn/no-new-buffer': string;
|
|
65
|
-
'unicorn/no-null': string;
|
|
66
|
-
'unicorn/no-object-as-default-parameter': string;
|
|
67
|
-
'unicorn/no-process-exit': string;
|
|
68
|
-
'unicorn/no-single-promise-in-promise-methods': string;
|
|
69
|
-
'unicorn/no-static-only-class': string;
|
|
70
|
-
'unicorn/no-thenable': string;
|
|
71
|
-
'unicorn/no-this-assignment': string;
|
|
72
|
-
'unicorn/no-typeof-undefined': (string | {
|
|
73
|
-
checkGlobalVariables: boolean;
|
|
74
|
-
})[];
|
|
75
|
-
'unicorn/no-unnecessary-await': string;
|
|
76
|
-
'unicorn/no-unnecessary-polyfills': string;
|
|
77
|
-
'unicorn/no-unreadable-array-destructuring': string;
|
|
78
|
-
'unicorn/no-unreadable-iife': string;
|
|
79
|
-
'unicorn/no-unsafe-regex': string;
|
|
80
|
-
'unicorn/no-unused-properties': string;
|
|
81
|
-
'unicorn/no-useless-fallback-in-spread': string;
|
|
82
|
-
'unicorn/no-useless-length-check': string;
|
|
83
|
-
'unicorn/no-useless-promise-resolve-reject': string;
|
|
84
|
-
'unicorn/no-useless-spread': string;
|
|
85
|
-
'unicorn/no-useless-switch-case': string;
|
|
86
|
-
'unicorn/no-useless-undefined': string;
|
|
87
|
-
'unicorn/no-zero-fractions': string;
|
|
88
|
-
'unicorn/number-literal-case': string;
|
|
89
|
-
'unicorn/numeric-separators-style': (string | {
|
|
90
|
-
hexadecimal: {
|
|
91
|
-
minimumDigits: number;
|
|
92
|
-
groupLength: number;
|
|
93
|
-
};
|
|
94
|
-
binary: {
|
|
95
|
-
minimumDigits: number;
|
|
96
|
-
groupLength: number;
|
|
97
|
-
};
|
|
98
|
-
octal: {
|
|
99
|
-
minimumDigits: number;
|
|
100
|
-
groupLength: number;
|
|
101
|
-
};
|
|
102
|
-
number: {
|
|
103
|
-
minimumDigits: number;
|
|
104
|
-
groupLength: number;
|
|
105
|
-
};
|
|
106
|
-
})[];
|
|
107
|
-
'unicorn/prefer-add-event-listener': string;
|
|
108
|
-
'unicorn/prefer-array-find': (string | {
|
|
109
|
-
checkFromLast: boolean;
|
|
110
|
-
})[];
|
|
111
|
-
'unicorn/prefer-array-flat': string;
|
|
112
|
-
'unicorn/prefer-array-flat-map': string;
|
|
113
|
-
'unicorn/prefer-array-index-of': string;
|
|
114
|
-
'unicorn/prefer-array-some': string;
|
|
115
|
-
'unicorn/prefer-at': string;
|
|
116
|
-
'unicorn/prefer-blob-reading-methods': string;
|
|
117
|
-
'unicorn/prefer-code-point': string;
|
|
118
|
-
'unicorn/prefer-date-now': string;
|
|
119
|
-
'unicorn/prefer-default-parameters': string;
|
|
120
|
-
'unicorn/prefer-dom-node-append': string;
|
|
121
|
-
'unicorn/prefer-dom-node-dataset': string;
|
|
122
|
-
'unicorn/prefer-dom-node-remove': string;
|
|
123
|
-
'unicorn/prefer-dom-node-text-content': string;
|
|
124
|
-
'unicorn/prefer-event-target': string;
|
|
125
|
-
'unicorn/prefer-export-from': string;
|
|
126
|
-
'unicorn/prefer-global-this': string;
|
|
127
|
-
'unicorn/prefer-includes': string;
|
|
128
|
-
'unicorn/prefer-json-parse-buffer': string;
|
|
129
|
-
'unicorn/prefer-keyboard-event-key': string;
|
|
130
|
-
'unicorn/prefer-logical-operator-over-ternary': string;
|
|
131
|
-
'unicorn/prefer-math-min-max': string;
|
|
132
|
-
'unicorn/prefer-math-trunc': string;
|
|
133
|
-
'unicorn/prefer-modern-dom-apis': string;
|
|
134
|
-
'unicorn/prefer-modern-math-apis': string;
|
|
135
|
-
'unicorn/prefer-module': string;
|
|
136
|
-
'unicorn/prefer-native-coercion-functions': string;
|
|
137
|
-
'unicorn/prefer-negative-index': string;
|
|
138
|
-
'unicorn/prefer-node-protocol': string;
|
|
139
|
-
'unicorn/prefer-number-properties': (string | {
|
|
140
|
-
checkInfinity: boolean;
|
|
141
|
-
checkNaN: boolean;
|
|
142
|
-
})[];
|
|
143
|
-
'unicorn/prefer-object-from-entries': (string | {
|
|
144
|
-
functions: never[];
|
|
145
|
-
})[];
|
|
146
|
-
'unicorn/prefer-optional-catch-binding': string;
|
|
147
|
-
'unicorn/prefer-prototype-methods': string;
|
|
148
|
-
'unicorn/prefer-query-selector': string;
|
|
149
|
-
'unicorn/prefer-reflect-apply': string;
|
|
150
|
-
'unicorn/prefer-regexp-test': string;
|
|
151
|
-
'unicorn/prefer-set-has': string;
|
|
152
|
-
'unicorn/prefer-set-size': string;
|
|
153
|
-
'unicorn/prefer-spread': string;
|
|
154
|
-
'unicorn/prefer-string-raw': string;
|
|
155
|
-
'unicorn/prefer-string-replace-all': string;
|
|
156
|
-
'unicorn/prefer-string-slice': string;
|
|
157
|
-
'unicorn/prefer-string-starts-ends-with': string;
|
|
158
|
-
'unicorn/prefer-string-trim-start-end': string;
|
|
159
|
-
'unicorn/prefer-structured-clone': string;
|
|
160
|
-
'unicorn/prefer-switch': (string | {
|
|
161
|
-
minimumCases: number;
|
|
162
|
-
emptyDefaultCase: string;
|
|
163
|
-
})[];
|
|
164
|
-
'unicorn/prefer-ternary': string;
|
|
165
|
-
'unicorn/prefer-top-level-await': string;
|
|
166
|
-
'unicorn/prefer-type-error': string;
|
|
167
|
-
'unicorn/prevent-abbreviations': (string | import("./rules/prevent-abbreviations").UnicornPreventAbbreviations)[];
|
|
168
|
-
'unicorn/relative-url-style': string[];
|
|
169
|
-
'unicorn/require-array-join-separator': string;
|
|
170
|
-
'unicorn/require-number-to-fixed-digits-argument': string;
|
|
171
|
-
'unicorn/require-post-message-target-origin': string;
|
|
172
|
-
'unicorn/string-content': string;
|
|
173
|
-
'unicorn/switch-case-braces': string;
|
|
174
|
-
'unicorn/template-indent': string;
|
|
175
|
-
'unicorn/text-encoding-identifier-case': string;
|
|
176
|
-
'unicorn/throw-new-error': string;
|
|
177
|
-
};
|
|
178
|
-
};
|
package/rules/unicorn/index.js
DELETED
|
@@ -1,209 +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.unicornConfig = void 0;
|
|
37
|
-
const eslintPluginUnicorn = __importStar(require("eslint-plugin-unicorn"));
|
|
38
|
-
const prevent_abbreviations_1 = require("./rules/prevent-abbreviations");
|
|
39
|
-
exports.unicornConfig = {
|
|
40
|
-
plugins: {
|
|
41
|
-
unicorn: eslintPluginUnicorn,
|
|
42
|
-
},
|
|
43
|
-
rules: {
|
|
44
|
-
'unicorn/better-regex': 'warn',
|
|
45
|
-
'unicorn/catch-error-name': 'warn',
|
|
46
|
-
'unicorn/consistent-destructuring': 'warn',
|
|
47
|
-
'unicorn/consistent-empty-array-spread': 'warn',
|
|
48
|
-
'unicorn/consistent-existence-index-check': 'warn',
|
|
49
|
-
'unicorn/consistent-function-scoping': ['error', {
|
|
50
|
-
checkArrowFunctions: true,
|
|
51
|
-
}],
|
|
52
|
-
'unicorn/custom-error-definition': 'warn',
|
|
53
|
-
'unicorn/empty-brace-spaces': 'warn',
|
|
54
|
-
'unicorn/error-message': 'error',
|
|
55
|
-
'unicorn/escape-case': 'warn',
|
|
56
|
-
'unicorn/expiring-todo-comments': 'error',
|
|
57
|
-
'unicorn/explicit-length-check': 'warn',
|
|
58
|
-
'unicorn/filename-case': ['error', {
|
|
59
|
-
case: 'kebabCase',
|
|
60
|
-
}],
|
|
61
|
-
'unicorn/import-index': 'off',
|
|
62
|
-
'unicorn/import-style': 'off',
|
|
63
|
-
'unicorn/new-for-builtins': 'warn',
|
|
64
|
-
'unicorn/no-abusive-eslint-disable': 'error',
|
|
65
|
-
'unicorn/no-anonymous-default-export': 'error',
|
|
66
|
-
'unicorn/no-array-callback-reference': 'off',
|
|
67
|
-
'unicorn/no-array-for-each': 'off',
|
|
68
|
-
'unicorn/no-array-method-this-argument': 'warn',
|
|
69
|
-
'unicorn/no-array-push-push': ['warn', {
|
|
70
|
-
ignore: ['readable', 'this', 'this.stream'],
|
|
71
|
-
}],
|
|
72
|
-
'unicorn/no-array-reduce': 'off',
|
|
73
|
-
'unicorn/no-await-expression-member': 'error',
|
|
74
|
-
'unicorn/no-await-in-promise-methods': 'error',
|
|
75
|
-
'unicorn/no-console-spaces': 'warn',
|
|
76
|
-
'unicorn/no-document-cookie': 'error',
|
|
77
|
-
'unicorn/no-empty-file': 'error',
|
|
78
|
-
'unicorn/no-for-loop': 'warn',
|
|
79
|
-
'unicorn/no-hex-escape': 'warn',
|
|
80
|
-
'unicorn/no-instanceof-array': 'warn',
|
|
81
|
-
'unicorn/no-invalid-fetch-options': 'error',
|
|
82
|
-
'unicorn/no-invalid-remove-event-listener': 'error',
|
|
83
|
-
'unicorn/no-keyword-prefix': ['off', {
|
|
84
|
-
disallowedPrefixes: ['new', 'class'],
|
|
85
|
-
checkProperties: true,
|
|
86
|
-
onlyCamelCase: false,
|
|
87
|
-
}],
|
|
88
|
-
'unicorn/no-length-as-slice-end': 'warn',
|
|
89
|
-
'unicorn/no-lonely-if': 'warn',
|
|
90
|
-
'unicorn/no-magic-array-flat-depth': 'error',
|
|
91
|
-
'unicorn/no-negated-condition': 'warn',
|
|
92
|
-
'unicorn/no-negation-in-equality-check': 'error',
|
|
93
|
-
'unicorn/no-nested-ternary': 'off',
|
|
94
|
-
'unicorn/no-new-array': 'warn',
|
|
95
|
-
'unicorn/no-new-buffer': 'warn',
|
|
96
|
-
'unicorn/no-null': 'off',
|
|
97
|
-
'unicorn/no-object-as-default-parameter': 'error',
|
|
98
|
-
'unicorn/no-process-exit': 'error',
|
|
99
|
-
'unicorn/no-single-promise-in-promise-methods': 'warn',
|
|
100
|
-
'unicorn/no-static-only-class': 'error',
|
|
101
|
-
'unicorn/no-thenable': 'error',
|
|
102
|
-
'unicorn/no-this-assignment': 'error',
|
|
103
|
-
'unicorn/no-typeof-undefined': ['warn', {
|
|
104
|
-
checkGlobalVariables: true,
|
|
105
|
-
}],
|
|
106
|
-
'unicorn/no-unnecessary-await': 'warn',
|
|
107
|
-
'unicorn/no-unnecessary-polyfills': 'error',
|
|
108
|
-
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
109
|
-
'unicorn/no-unreadable-iife': 'error',
|
|
110
|
-
'unicorn/no-unsafe-regex': 'off',
|
|
111
|
-
'unicorn/no-unused-properties': 'off',
|
|
112
|
-
'unicorn/no-useless-fallback-in-spread': 'warn',
|
|
113
|
-
'unicorn/no-useless-length-check': 'warn',
|
|
114
|
-
'unicorn/no-useless-promise-resolve-reject': 'warn',
|
|
115
|
-
'unicorn/no-useless-spread': 'warn',
|
|
116
|
-
'unicorn/no-useless-switch-case': 'error',
|
|
117
|
-
'unicorn/no-useless-undefined': 'off',
|
|
118
|
-
'unicorn/no-zero-fractions': 'off',
|
|
119
|
-
'unicorn/number-literal-case': 'warn',
|
|
120
|
-
'unicorn/numeric-separators-style': ['warn', {
|
|
121
|
-
hexadecimal: {
|
|
122
|
-
minimumDigits: 6,
|
|
123
|
-
groupLength: 2,
|
|
124
|
-
},
|
|
125
|
-
binary: {
|
|
126
|
-
minimumDigits: 0,
|
|
127
|
-
groupLength: 4,
|
|
128
|
-
},
|
|
129
|
-
octal: {
|
|
130
|
-
minimumDigits: 0,
|
|
131
|
-
groupLength: 4,
|
|
132
|
-
},
|
|
133
|
-
number: {
|
|
134
|
-
minimumDigits: 6,
|
|
135
|
-
groupLength: 3,
|
|
136
|
-
},
|
|
137
|
-
}],
|
|
138
|
-
'unicorn/prefer-add-event-listener': 'warn',
|
|
139
|
-
'unicorn/prefer-array-find': ['warn', {
|
|
140
|
-
checkFromLast: true,
|
|
141
|
-
}],
|
|
142
|
-
'unicorn/prefer-array-flat': 'off',
|
|
143
|
-
'unicorn/prefer-array-flat-map': 'off',
|
|
144
|
-
'unicorn/prefer-array-index-of': 'warn',
|
|
145
|
-
'unicorn/prefer-array-some': 'error',
|
|
146
|
-
'unicorn/prefer-at': 'off',
|
|
147
|
-
'unicorn/prefer-blob-reading-methods': 'error',
|
|
148
|
-
'unicorn/prefer-code-point': 'error',
|
|
149
|
-
'unicorn/prefer-date-now': 'warn',
|
|
150
|
-
'unicorn/prefer-default-parameters': 'warn',
|
|
151
|
-
'unicorn/prefer-dom-node-append': 'warn',
|
|
152
|
-
'unicorn/prefer-dom-node-dataset': 'warn',
|
|
153
|
-
'unicorn/prefer-dom-node-remove': 'warn',
|
|
154
|
-
'unicorn/prefer-dom-node-text-content': 'warn',
|
|
155
|
-
'unicorn/prefer-event-target': 'error',
|
|
156
|
-
'unicorn/prefer-export-from': 'warn',
|
|
157
|
-
'unicorn/prefer-global-this': 'warn',
|
|
158
|
-
'unicorn/prefer-includes': 'warn',
|
|
159
|
-
'unicorn/prefer-json-parse-buffer': 'warn',
|
|
160
|
-
'unicorn/prefer-keyboard-event-key': 'warn',
|
|
161
|
-
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
162
|
-
'unicorn/prefer-math-min-max': 'warn',
|
|
163
|
-
'unicorn/prefer-math-trunc': 'warn',
|
|
164
|
-
'unicorn/prefer-modern-dom-apis': 'warn',
|
|
165
|
-
'unicorn/prefer-modern-math-apis': 'warn',
|
|
166
|
-
'unicorn/prefer-module': 'off',
|
|
167
|
-
'unicorn/prefer-native-coercion-functions': 'warn',
|
|
168
|
-
'unicorn/prefer-negative-index': 'warn',
|
|
169
|
-
'unicorn/prefer-node-protocol': 'warn',
|
|
170
|
-
'unicorn/prefer-number-properties': ['warn', {
|
|
171
|
-
checkInfinity: true,
|
|
172
|
-
checkNaN: true,
|
|
173
|
-
}],
|
|
174
|
-
'unicorn/prefer-object-from-entries': ['off', {
|
|
175
|
-
functions: [],
|
|
176
|
-
}],
|
|
177
|
-
'unicorn/prefer-optional-catch-binding': 'warn',
|
|
178
|
-
'unicorn/prefer-prototype-methods': 'warn',
|
|
179
|
-
'unicorn/prefer-query-selector': 'warn',
|
|
180
|
-
'unicorn/prefer-reflect-apply': 'warn',
|
|
181
|
-
'unicorn/prefer-regexp-test': 'off',
|
|
182
|
-
'unicorn/prefer-set-has': 'warn',
|
|
183
|
-
'unicorn/prefer-set-size': 'warn',
|
|
184
|
-
'unicorn/prefer-spread': 'off',
|
|
185
|
-
'unicorn/prefer-string-raw': 'off',
|
|
186
|
-
'unicorn/prefer-string-replace-all': 'off',
|
|
187
|
-
'unicorn/prefer-string-slice': 'warn',
|
|
188
|
-
'unicorn/prefer-string-starts-ends-with': 'warn',
|
|
189
|
-
'unicorn/prefer-string-trim-start-end': 'warn',
|
|
190
|
-
'unicorn/prefer-structured-clone': 'off',
|
|
191
|
-
'unicorn/prefer-switch': ['error', {
|
|
192
|
-
minimumCases: 3,
|
|
193
|
-
emptyDefaultCase: 'do-nothing-comment',
|
|
194
|
-
}],
|
|
195
|
-
'unicorn/prefer-ternary': 'off',
|
|
196
|
-
'unicorn/prefer-top-level-await': 'off',
|
|
197
|
-
'unicorn/prefer-type-error': 'warn',
|
|
198
|
-
'unicorn/prevent-abbreviations': ['warn', (0, prevent_abbreviations_1.unicornPreventAbbreviations)()],
|
|
199
|
-
'unicorn/relative-url-style': ['warn', 'always'],
|
|
200
|
-
'unicorn/require-array-join-separator': 'warn',
|
|
201
|
-
'unicorn/require-number-to-fixed-digits-argument': 'warn',
|
|
202
|
-
'unicorn/require-post-message-target-origin': 'error',
|
|
203
|
-
'unicorn/string-content': 'off',
|
|
204
|
-
'unicorn/switch-case-braces': 'off',
|
|
205
|
-
'unicorn/template-indent': 'warn',
|
|
206
|
-
'unicorn/text-encoding-identifier-case': 'error',
|
|
207
|
-
'unicorn/throw-new-error': 'warn',
|
|
208
|
-
},
|
|
209
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unicornPreventAbbreviations = unicornPreventAbbreviations;
|
|
4
|
-
function unicornPreventAbbreviations(replacements = {}, options = {}) {
|
|
5
|
-
return Object.assign(Object.assign({ replacements: Object.assign({ arg: false, args: false, db: false, doc: false, docs: false, dev: false, env: false, i: false, j: false, lib: false, libs: false, param: false, params: false }, replacements), extendDefaultReplacements: true, allowList: {}, extendDefaultAllowList: true, checkDefaultAndNamespaceImports: 'internal', checkShorthandImports: 'internal', checkShorthandProperties: false, checkProperties: false, checkVariables: true, checkFilenames: true }, options), { ignore: [
|
|
6
|
-
/e2e/u,
|
|
7
|
-
] });
|
|
8
|
-
}
|
package/rules.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { cypressImportNoExtraneousDependencies, ImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies, } from './rules/import/rules/no-extraneous-dependencies';
|
|
2
|
-
export { SimpleImportSortImports, simpleImportSortImports, } from './rules/simple-import-sort/rules/imports';
|
|
3
|
-
export { TypescriptEslintNamingConvention, typescriptEslintNamingConvention, TypescriptEslintNamingConventionFormat, TypescriptEslintNamingConventionGroupSelector, TypescriptEslintNamingConventionIndividualSelector, TypescriptEslintNamingConventionSelector, TypescriptEslintNamingConventionUnderscore, } from './rules/typescript-eslint/rules/typescript-eslint-naming-convention';
|
|
4
|
-
export { UnicornPreventAbbreviationReplacements, UnicornPreventAbbreviations, unicornPreventAbbreviations, } from './rules/unicorn/rules/prevent-abbreviations';
|
package/rules.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unicornPreventAbbreviations = exports.typescriptEslintNamingConvention = exports.simpleImportSortImports = exports.jsImportNoExtraneousDependencies = exports.jestImportNoExtraneousDependencies = exports.importNoExtraneousDependencies = exports.cypressImportNoExtraneousDependencies = void 0;
|
|
4
|
-
var no_extraneous_dependencies_1 = require("./rules/import/rules/no-extraneous-dependencies");
|
|
5
|
-
Object.defineProperty(exports, "cypressImportNoExtraneousDependencies", { enumerable: true, get: function () { return no_extraneous_dependencies_1.cypressImportNoExtraneousDependencies; } });
|
|
6
|
-
Object.defineProperty(exports, "importNoExtraneousDependencies", { enumerable: true, get: function () { return no_extraneous_dependencies_1.importNoExtraneousDependencies; } });
|
|
7
|
-
Object.defineProperty(exports, "jestImportNoExtraneousDependencies", { enumerable: true, get: function () { return no_extraneous_dependencies_1.jestImportNoExtraneousDependencies; } });
|
|
8
|
-
Object.defineProperty(exports, "jsImportNoExtraneousDependencies", { enumerable: true, get: function () { return no_extraneous_dependencies_1.jsImportNoExtraneousDependencies; } });
|
|
9
|
-
var imports_1 = require("./rules/simple-import-sort/rules/imports");
|
|
10
|
-
Object.defineProperty(exports, "simpleImportSortImports", { enumerable: true, get: function () { return imports_1.simpleImportSortImports; } });
|
|
11
|
-
var typescript_eslint_naming_convention_1 = require("./rules/typescript-eslint/rules/typescript-eslint-naming-convention");
|
|
12
|
-
Object.defineProperty(exports, "typescriptEslintNamingConvention", { enumerable: true, get: function () { return typescript_eslint_naming_convention_1.typescriptEslintNamingConvention; } });
|
|
13
|
-
var prevent_abbreviations_1 = require("./rules/unicorn/rules/prevent-abbreviations");
|
|
14
|
-
Object.defineProperty(exports, "unicornPreventAbbreviations", { enumerable: true, get: function () { return prevent_abbreviations_1.unicornPreventAbbreviations; } });
|
package/rxjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function rxjsConfig(files?: string[]): Record<string, unknown>;
|
package/rxjs.js
DELETED
|
@@ -1,58 +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.rxjsConfig = rxjsConfig;
|
|
37
|
-
const tsEslint = __importStar(require("typescript-eslint"));
|
|
38
|
-
const rxjs_1 = require("./rules/rxjs");
|
|
39
|
-
function rxjsConfig(files = ['**/*.ts?(x)']) {
|
|
40
|
-
return {
|
|
41
|
-
files,
|
|
42
|
-
languageOptions: {
|
|
43
|
-
sourceType: 'module',
|
|
44
|
-
ecmaVersion: 'latest',
|
|
45
|
-
parser: tsEslint.parser,
|
|
46
|
-
parserOptions: {
|
|
47
|
-
ecmaFeatures: {
|
|
48
|
-
globalReturn: false,
|
|
49
|
-
impliedStrict: true,
|
|
50
|
-
},
|
|
51
|
-
projectService: true,
|
|
52
|
-
warnOnUnsupportedTypeScriptVersion: true,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
plugins: Object.assign({}, rxjs_1.rxjsConfig.plugins),
|
|
56
|
-
rules: Object.assign({}, rxjs_1.rxjsConfig.rules),
|
|
57
|
-
};
|
|
58
|
-
}
|
package/testing-library.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function testingLibraryConfig(files?: string[]): Record<string, unknown>;
|
package/testing-library.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testingLibraryConfig = testingLibraryConfig;
|
|
4
|
-
const testing_library_1 = require("./rules/testing-library");
|
|
5
|
-
function testingLibraryConfig(files = ['**/*.@(spec|test).[jt]s?(x)']) {
|
|
6
|
-
return {
|
|
7
|
-
files,
|
|
8
|
-
plugins: testing_library_1.testingLibraryConfig.plugins,
|
|
9
|
-
rules: testing_library_1.testingLibraryConfig.rules,
|
|
10
|
-
};
|
|
11
|
-
}
|