@perfective/eslint-config 0.30.0 → 0.31.1
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/README.adoc +185 -60
- package/README.md +53 -40
- 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/possible-problems-rules.d.ts +2 -0
- package/config/eslint/suggestions-rules.d.ts +2 -0
- package/config/eslint-comments/best-practices-rules.d.ts +2 -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/import/helpful-warnings-rules.d.ts +2 -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/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/style-guide-rules.d.ts +2 -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-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/{rules → config}/simple-import-sort/rules/imports.d.ts +11 -2
- 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/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 +35 -1
- package/config/typescript-eslint/supported-rules.d.ts +2 -0
- package/{rules → config}/typescript-eslint/supported-rules.js +7 -3
- 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 +14 -2
- package/config/unicorn/unicorn-config.d.ts +2 -0
- package/config/unicorn/unicorn-config.js +185 -0
- package/index.d.ts +5 -1766
- package/index.js +5 -102
- 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/{config → linter}/node.d.ts +3 -1
- package/{config → linter}/plugin.d.ts +6 -2
- package/package.json +38 -40
- package/config.d.ts +0 -1
- package/config.js +0 -1
- package/cypress.d.ts +0 -6
- package/cypress.js +0 -31
- package/jest-dom.d.ts +0 -1
- package/jest-dom.js +0 -8
- package/jest.d.ts +0 -7
- package/jest.js +0 -29
- package/rules/array-func/index.d.ts +0 -13
- package/rules/array-func/index.js +0 -14
- package/rules/cypress/index.d.ts +0 -29
- package/rules/cypress/index.js +0 -23
- package/rules/eslint/index.d.ts +0 -339
- package/rules/eslint/index.js +0 -6
- package/rules/eslint/layout-formatting.d.ts +0 -64
- package/rules/eslint/possible-problems.d.ts +0 -96
- package/rules/eslint/suggestions.d.ts +0 -181
- package/rules/eslint-comments/best-practices.d.ts +0 -8
- package/rules/eslint-comments/index.d.ts +0 -20
- package/rules/eslint-comments/index.js +0 -9
- package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
- package/rules/import/helpful-warnings.d.ts +0 -10
- package/rules/import/index.d.ts +0 -78
- package/rules/import/index.js +0 -11
- package/rules/import/module-systems.d.ts +0 -10
- package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -14
- package/rules/import/rules/no-extraneous-dependencies.js +0 -23
- package/rules/import/static-analysis.d.ts +0 -26
- package/rules/import/style-guide.d.ts +0 -33
- package/rules/jest/index.d.ts +0 -124
- package/rules/jest/index.js +0 -98
- package/rules/jest/typescript-eslint.d.ts +0 -5
- package/rules/jest-dom/index.d.ts +0 -32
- package/rules/jest-dom/index.js +0 -19
- package/rules/jsdoc/index.d.ts +0 -134
- package/rules/jsdoc/index.js +0 -161
- package/rules/n/index.d.ts +0 -66
- package/rules/n/index.js +0 -64
- package/rules/prefer-arrow/index.d.ts +0 -13
- package/rules/prefer-arrow/index.js +0 -14
- package/rules/promise/index.d.ts +0 -34
- package/rules/promise/index.js +0 -35
- package/rules/rxjs/index.d.ts +0 -60
- package/rules/rxjs/index.js +0 -60
- package/rules/security/index.d.ts +0 -21
- package/rules/security/index.js +0 -22
- package/rules/simple-import-sort/index.d.ts +0 -10
- package/rules/simple-import-sort/index.js +0 -12
- package/rules/stylistic/js/index.d.ts +0 -204
- package/rules/stylistic/js/index.js +0 -198
- package/rules/stylistic/jsx/index.d.ts +0 -87
- package/rules/stylistic/jsx/index.js +0 -81
- package/rules/stylistic/plus/index.d.ts +0 -18
- package/rules/stylistic/plus/index.js +0 -14
- package/rules/stylistic/ts/index.d.ts +0 -141
- package/rules/stylistic/ts/index.js +0 -135
- package/rules/testing-library/index.d.ts +0 -62
- package/rules/testing-library/index.js +0 -41
- package/rules/typescript-eslint/extension-rules.d.ts +0 -113
- package/rules/typescript-eslint/index.d.ts +0 -371
- package/rules/typescript-eslint/index.js +0 -9
- package/rules/typescript-eslint/supported-rules.d.ts +0 -255
- package/rules/unicorn/index.d.ts +0 -183
- package/rules/unicorn/index.js +0 -178
- package/rules.d.ts +0 -4
- package/rules.js +0 -4
- package/rxjs.d.ts +0 -6
- package/rxjs.js +0 -22
- package/testing-library.d.ts +0 -1
- package/testing-library.js +0 -8
- /package/{rules/eslint/layout-formatting.js → config/eslint/layout-formatting-rules.js} +0 -0
- /package/{rules/eslint/possible-problems.js → config/eslint/possible-problems-rules.js} +0 -0
- /package/{rules/eslint/suggestions.js → config/eslint/suggestions-rules.js} +0 -0
- /package/{rules/eslint-comments/best-practices.js → config/eslint-comments/best-practices-rules.js} +0 -0
- /package/{rules/eslint-comments/stylistic-issues.js → config/eslint-comments/stylistic-issues-rules.js} +0 -0
- /package/{rules/import/helpful-warnings.js → config/import/helpful-warnings-rules.js} +0 -0
- /package/{rules/import/module-systems.js → config/import/module-systems-rules.js} +0 -0
- /package/{rules/import/static-analysis.js → config/import/static-analysis-rules.js} +0 -0
- /package/{rules/import/style-guide.js → config/import/style-guide-rules.js} +0 -0
- /package/{rules/jest/typescript-eslint.js → config/jest/typescript-eslint-jest-rules.js} +0 -0
- /package/{rules → config}/simple-import-sort/rules/imports.js +0 -0
- /package/{rules → config}/typescript-eslint/extension-rules.js +0 -0
- /package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -0
- /package/{rules → config}/unicorn/rules/prevent-abbreviations.js +0 -0
- /package/{config → linter}/node.js +0 -0
- /package/{config → linter}/plugin.js +0 -0
package/rules/unicorn/index.d.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
export declare const unicornConfig: {
|
|
2
|
-
plugins: {
|
|
3
|
-
unicorn: import("eslint").ESLint.Plugin & {
|
|
4
|
-
configs: {
|
|
5
|
-
recommended: import("eslint").Linter.FlatConfig;
|
|
6
|
-
all: import("eslint").Linter.FlatConfig;
|
|
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-assert': string;
|
|
16
|
-
'unicorn/consistent-date-clone': string;
|
|
17
|
-
'unicorn/consistent-destructuring': string;
|
|
18
|
-
'unicorn/consistent-empty-array-spread': string;
|
|
19
|
-
'unicorn/consistent-existence-index-check': string;
|
|
20
|
-
'unicorn/consistent-function-scoping': (string | {
|
|
21
|
-
checkArrowFunctions: boolean;
|
|
22
|
-
})[];
|
|
23
|
-
'unicorn/custom-error-definition': string;
|
|
24
|
-
'unicorn/empty-brace-spaces': string;
|
|
25
|
-
'unicorn/error-message': string;
|
|
26
|
-
'unicorn/escape-case': string;
|
|
27
|
-
'unicorn/expiring-todo-comments': string;
|
|
28
|
-
'unicorn/explicit-length-check': string;
|
|
29
|
-
'unicorn/filename-case': (string | {
|
|
30
|
-
case: string;
|
|
31
|
-
})[];
|
|
32
|
-
'unicorn/import-index': string;
|
|
33
|
-
'unicorn/import-style': string;
|
|
34
|
-
'unicorn/new-for-builtins': string;
|
|
35
|
-
'unicorn/no-abusive-eslint-disable': string;
|
|
36
|
-
'unicorn/no-accessor-recursion': string;
|
|
37
|
-
'unicorn/no-anonymous-default-export': string;
|
|
38
|
-
'unicorn/no-array-callback-reference': string;
|
|
39
|
-
'unicorn/no-array-for-each': string;
|
|
40
|
-
'unicorn/no-array-method-this-argument': string;
|
|
41
|
-
'unicorn/no-array-push-push': (string | {
|
|
42
|
-
ignore: string[];
|
|
43
|
-
})[];
|
|
44
|
-
'unicorn/no-array-reduce': string;
|
|
45
|
-
'unicorn/no-await-expression-member': string;
|
|
46
|
-
'unicorn/no-await-in-promise-methods': string;
|
|
47
|
-
'unicorn/no-console-spaces': string;
|
|
48
|
-
'unicorn/no-document-cookie': string;
|
|
49
|
-
'unicorn/no-empty-file': string;
|
|
50
|
-
'unicorn/no-for-loop': string;
|
|
51
|
-
'unicorn/no-hex-escape': string;
|
|
52
|
-
'unicorn/no-instanceof-array': string;
|
|
53
|
-
'unicorn/no-instanceof-builtins': string;
|
|
54
|
-
'unicorn/no-invalid-fetch-options': string;
|
|
55
|
-
'unicorn/no-invalid-remove-event-listener': string;
|
|
56
|
-
'unicorn/no-keyword-prefix': (string | {
|
|
57
|
-
disallowedPrefixes: string[];
|
|
58
|
-
checkProperties: boolean;
|
|
59
|
-
onlyCamelCase: boolean;
|
|
60
|
-
})[];
|
|
61
|
-
'unicorn/no-length-as-slice-end': string;
|
|
62
|
-
'unicorn/no-lonely-if': string;
|
|
63
|
-
'unicorn/no-magic-array-flat-depth': string;
|
|
64
|
-
'unicorn/no-named-default': string;
|
|
65
|
-
'unicorn/no-negated-condition': string;
|
|
66
|
-
'unicorn/no-negation-in-equality-check': string;
|
|
67
|
-
'unicorn/no-nested-ternary': string;
|
|
68
|
-
'unicorn/no-new-array': string;
|
|
69
|
-
'unicorn/no-new-buffer': string;
|
|
70
|
-
'unicorn/no-null': string;
|
|
71
|
-
'unicorn/no-object-as-default-parameter': string;
|
|
72
|
-
'unicorn/no-process-exit': string;
|
|
73
|
-
'unicorn/no-single-promise-in-promise-methods': string;
|
|
74
|
-
'unicorn/no-static-only-class': string;
|
|
75
|
-
'unicorn/no-thenable': string;
|
|
76
|
-
'unicorn/no-this-assignment': string;
|
|
77
|
-
'unicorn/no-typeof-undefined': (string | {
|
|
78
|
-
checkGlobalVariables: boolean;
|
|
79
|
-
})[];
|
|
80
|
-
'unicorn/no-unnecessary-await': string;
|
|
81
|
-
'unicorn/no-unnecessary-polyfills': string;
|
|
82
|
-
'unicorn/no-unreadable-array-destructuring': string;
|
|
83
|
-
'unicorn/no-unreadable-iife': string;
|
|
84
|
-
'unicorn/no-unsafe-regex': string;
|
|
85
|
-
'unicorn/no-unused-properties': string;
|
|
86
|
-
'unicorn/no-useless-fallback-in-spread': string;
|
|
87
|
-
'unicorn/no-useless-length-check': string;
|
|
88
|
-
'unicorn/no-useless-promise-resolve-reject': string;
|
|
89
|
-
'unicorn/no-useless-spread': string;
|
|
90
|
-
'unicorn/no-useless-switch-case': string;
|
|
91
|
-
'unicorn/no-useless-undefined': string;
|
|
92
|
-
'unicorn/no-zero-fractions': string;
|
|
93
|
-
'unicorn/number-literal-case': string;
|
|
94
|
-
'unicorn/numeric-separators-style': (string | {
|
|
95
|
-
hexadecimal: {
|
|
96
|
-
minimumDigits: number;
|
|
97
|
-
groupLength: number;
|
|
98
|
-
};
|
|
99
|
-
binary: {
|
|
100
|
-
minimumDigits: number;
|
|
101
|
-
groupLength: number;
|
|
102
|
-
};
|
|
103
|
-
octal: {
|
|
104
|
-
minimumDigits: number;
|
|
105
|
-
groupLength: number;
|
|
106
|
-
};
|
|
107
|
-
number: {
|
|
108
|
-
minimumDigits: number;
|
|
109
|
-
groupLength: number;
|
|
110
|
-
};
|
|
111
|
-
})[];
|
|
112
|
-
'unicorn/prefer-add-event-listener': string;
|
|
113
|
-
'unicorn/prefer-array-find': (string | {
|
|
114
|
-
checkFromLast: boolean;
|
|
115
|
-
})[];
|
|
116
|
-
'unicorn/prefer-array-flat': string;
|
|
117
|
-
'unicorn/prefer-array-flat-map': string;
|
|
118
|
-
'unicorn/prefer-array-index-of': string;
|
|
119
|
-
'unicorn/prefer-array-some': string;
|
|
120
|
-
'unicorn/prefer-at': string;
|
|
121
|
-
'unicorn/prefer-blob-reading-methods': string;
|
|
122
|
-
'unicorn/prefer-code-point': string;
|
|
123
|
-
'unicorn/prefer-date-now': string;
|
|
124
|
-
'unicorn/prefer-default-parameters': string;
|
|
125
|
-
'unicorn/prefer-dom-node-append': string;
|
|
126
|
-
'unicorn/prefer-dom-node-dataset': string;
|
|
127
|
-
'unicorn/prefer-dom-node-remove': string;
|
|
128
|
-
'unicorn/prefer-dom-node-text-content': string;
|
|
129
|
-
'unicorn/prefer-event-target': string;
|
|
130
|
-
'unicorn/prefer-export-from': string;
|
|
131
|
-
'unicorn/prefer-global-this': string;
|
|
132
|
-
'unicorn/prefer-includes': string;
|
|
133
|
-
'unicorn/prefer-json-parse-buffer': string;
|
|
134
|
-
'unicorn/prefer-keyboard-event-key': string;
|
|
135
|
-
'unicorn/prefer-logical-operator-over-ternary': string;
|
|
136
|
-
'unicorn/prefer-math-min-max': string;
|
|
137
|
-
'unicorn/prefer-math-trunc': string;
|
|
138
|
-
'unicorn/prefer-modern-dom-apis': string;
|
|
139
|
-
'unicorn/prefer-modern-math-apis': string;
|
|
140
|
-
'unicorn/prefer-module': string;
|
|
141
|
-
'unicorn/prefer-native-coercion-functions': string;
|
|
142
|
-
'unicorn/prefer-negative-index': string;
|
|
143
|
-
'unicorn/prefer-node-protocol': string;
|
|
144
|
-
'unicorn/prefer-number-properties': (string | {
|
|
145
|
-
checkInfinity: boolean;
|
|
146
|
-
checkNaN: boolean;
|
|
147
|
-
})[];
|
|
148
|
-
'unicorn/prefer-object-from-entries': (string | {
|
|
149
|
-
functions: never[];
|
|
150
|
-
})[];
|
|
151
|
-
'unicorn/prefer-optional-catch-binding': string;
|
|
152
|
-
'unicorn/prefer-prototype-methods': string;
|
|
153
|
-
'unicorn/prefer-query-selector': string;
|
|
154
|
-
'unicorn/prefer-reflect-apply': string;
|
|
155
|
-
'unicorn/prefer-regexp-test': string;
|
|
156
|
-
'unicorn/prefer-set-has': string;
|
|
157
|
-
'unicorn/prefer-set-size': string;
|
|
158
|
-
'unicorn/prefer-spread': string;
|
|
159
|
-
'unicorn/prefer-string-raw': string;
|
|
160
|
-
'unicorn/prefer-string-replace-all': string;
|
|
161
|
-
'unicorn/prefer-string-slice': string;
|
|
162
|
-
'unicorn/prefer-string-starts-ends-with': string;
|
|
163
|
-
'unicorn/prefer-string-trim-start-end': string;
|
|
164
|
-
'unicorn/prefer-structured-clone': string;
|
|
165
|
-
'unicorn/prefer-switch': (string | {
|
|
166
|
-
minimumCases: number;
|
|
167
|
-
emptyDefaultCase: string;
|
|
168
|
-
})[];
|
|
169
|
-
'unicorn/prefer-ternary': string;
|
|
170
|
-
'unicorn/prefer-top-level-await': string;
|
|
171
|
-
'unicorn/prefer-type-error': string;
|
|
172
|
-
'unicorn/prevent-abbreviations': (string | import("./rules/prevent-abbreviations").UnicornPreventAbbreviations)[];
|
|
173
|
-
'unicorn/relative-url-style': string[];
|
|
174
|
-
'unicorn/require-array-join-separator': string;
|
|
175
|
-
'unicorn/require-number-to-fixed-digits-argument': string;
|
|
176
|
-
'unicorn/require-post-message-target-origin': string;
|
|
177
|
-
'unicorn/string-content': string;
|
|
178
|
-
'unicorn/switch-case-braces': string;
|
|
179
|
-
'unicorn/template-indent': string;
|
|
180
|
-
'unicorn/text-encoding-identifier-case': string;
|
|
181
|
-
'unicorn/throw-new-error': string;
|
|
182
|
-
};
|
|
183
|
-
};
|
package/rules/unicorn/index.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
|
2
|
-
import { unicornPreventAbbreviations } from "./rules/prevent-abbreviations.js";
|
|
3
|
-
export const unicornConfig = {
|
|
4
|
-
plugins: {
|
|
5
|
-
unicorn: eslintPluginUnicorn
|
|
6
|
-
},
|
|
7
|
-
rules: {
|
|
8
|
-
'unicorn/better-regex': 'warn',
|
|
9
|
-
'unicorn/catch-error-name': 'warn',
|
|
10
|
-
'unicorn/consistent-assert': 'warn',
|
|
11
|
-
'unicorn/consistent-date-clone': 'warn',
|
|
12
|
-
'unicorn/consistent-destructuring': 'warn',
|
|
13
|
-
'unicorn/consistent-empty-array-spread': 'warn',
|
|
14
|
-
'unicorn/consistent-existence-index-check': 'warn',
|
|
15
|
-
'unicorn/consistent-function-scoping': ['error', {
|
|
16
|
-
checkArrowFunctions: true
|
|
17
|
-
}],
|
|
18
|
-
'unicorn/custom-error-definition': 'warn',
|
|
19
|
-
'unicorn/empty-brace-spaces': 'warn',
|
|
20
|
-
'unicorn/error-message': 'error',
|
|
21
|
-
'unicorn/escape-case': 'warn',
|
|
22
|
-
'unicorn/expiring-todo-comments': 'error',
|
|
23
|
-
'unicorn/explicit-length-check': 'warn',
|
|
24
|
-
'unicorn/filename-case': ['error', {
|
|
25
|
-
case: 'kebabCase'
|
|
26
|
-
}],
|
|
27
|
-
'unicorn/import-index': 'off',
|
|
28
|
-
'unicorn/import-style': 'off',
|
|
29
|
-
'unicorn/new-for-builtins': 'warn',
|
|
30
|
-
'unicorn/no-abusive-eslint-disable': 'error',
|
|
31
|
-
'unicorn/no-accessor-recursion': 'error',
|
|
32
|
-
'unicorn/no-anonymous-default-export': 'error',
|
|
33
|
-
'unicorn/no-array-callback-reference': 'off',
|
|
34
|
-
'unicorn/no-array-for-each': 'off',
|
|
35
|
-
'unicorn/no-array-method-this-argument': 'warn',
|
|
36
|
-
'unicorn/no-array-push-push': ['warn', {
|
|
37
|
-
ignore: ['readable', 'this', 'this.stream']
|
|
38
|
-
}],
|
|
39
|
-
'unicorn/no-array-reduce': 'off',
|
|
40
|
-
'unicorn/no-await-expression-member': 'error',
|
|
41
|
-
'unicorn/no-await-in-promise-methods': 'error',
|
|
42
|
-
'unicorn/no-console-spaces': 'warn',
|
|
43
|
-
'unicorn/no-document-cookie': 'error',
|
|
44
|
-
'unicorn/no-empty-file': 'error',
|
|
45
|
-
'unicorn/no-for-loop': 'warn',
|
|
46
|
-
'unicorn/no-hex-escape': 'warn',
|
|
47
|
-
'unicorn/no-instanceof-array': 'off',
|
|
48
|
-
'unicorn/no-instanceof-builtins': 'warn',
|
|
49
|
-
'unicorn/no-invalid-fetch-options': 'error',
|
|
50
|
-
'unicorn/no-invalid-remove-event-listener': 'error',
|
|
51
|
-
'unicorn/no-keyword-prefix': ['off', {
|
|
52
|
-
disallowedPrefixes: ['new', 'class'],
|
|
53
|
-
checkProperties: true,
|
|
54
|
-
onlyCamelCase: false
|
|
55
|
-
}],
|
|
56
|
-
'unicorn/no-length-as-slice-end': 'warn',
|
|
57
|
-
'unicorn/no-lonely-if': 'warn',
|
|
58
|
-
'unicorn/no-magic-array-flat-depth': 'error',
|
|
59
|
-
'unicorn/no-named-default': 'warn',
|
|
60
|
-
'unicorn/no-negated-condition': 'warn',
|
|
61
|
-
'unicorn/no-negation-in-equality-check': 'error',
|
|
62
|
-
'unicorn/no-nested-ternary': 'off',
|
|
63
|
-
'unicorn/no-new-array': 'warn',
|
|
64
|
-
'unicorn/no-new-buffer': 'warn',
|
|
65
|
-
'unicorn/no-null': 'off',
|
|
66
|
-
'unicorn/no-object-as-default-parameter': 'error',
|
|
67
|
-
'unicorn/no-process-exit': 'error',
|
|
68
|
-
'unicorn/no-single-promise-in-promise-methods': 'warn',
|
|
69
|
-
'unicorn/no-static-only-class': 'error',
|
|
70
|
-
'unicorn/no-thenable': 'error',
|
|
71
|
-
'unicorn/no-this-assignment': 'error',
|
|
72
|
-
'unicorn/no-typeof-undefined': ['warn', {
|
|
73
|
-
checkGlobalVariables: true
|
|
74
|
-
}],
|
|
75
|
-
'unicorn/no-unnecessary-await': 'warn',
|
|
76
|
-
'unicorn/no-unnecessary-polyfills': 'error',
|
|
77
|
-
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
78
|
-
'unicorn/no-unreadable-iife': 'error',
|
|
79
|
-
'unicorn/no-unsafe-regex': 'off',
|
|
80
|
-
'unicorn/no-unused-properties': 'off',
|
|
81
|
-
'unicorn/no-useless-fallback-in-spread': 'warn',
|
|
82
|
-
'unicorn/no-useless-length-check': 'warn',
|
|
83
|
-
'unicorn/no-useless-promise-resolve-reject': 'warn',
|
|
84
|
-
'unicorn/no-useless-spread': 'warn',
|
|
85
|
-
'unicorn/no-useless-switch-case': 'error',
|
|
86
|
-
'unicorn/no-useless-undefined': 'off',
|
|
87
|
-
'unicorn/no-zero-fractions': 'off',
|
|
88
|
-
'unicorn/number-literal-case': 'warn',
|
|
89
|
-
'unicorn/numeric-separators-style': ['warn', {
|
|
90
|
-
hexadecimal: {
|
|
91
|
-
minimumDigits: 6,
|
|
92
|
-
groupLength: 2
|
|
93
|
-
},
|
|
94
|
-
binary: {
|
|
95
|
-
minimumDigits: 0,
|
|
96
|
-
groupLength: 4
|
|
97
|
-
},
|
|
98
|
-
octal: {
|
|
99
|
-
minimumDigits: 0,
|
|
100
|
-
groupLength: 4
|
|
101
|
-
},
|
|
102
|
-
number: {
|
|
103
|
-
minimumDigits: 6,
|
|
104
|
-
groupLength: 3
|
|
105
|
-
}
|
|
106
|
-
}],
|
|
107
|
-
'unicorn/prefer-add-event-listener': 'warn',
|
|
108
|
-
'unicorn/prefer-array-find': ['warn', {
|
|
109
|
-
checkFromLast: true
|
|
110
|
-
}],
|
|
111
|
-
'unicorn/prefer-array-flat': 'off',
|
|
112
|
-
'unicorn/prefer-array-flat-map': 'off',
|
|
113
|
-
'unicorn/prefer-array-index-of': 'warn',
|
|
114
|
-
'unicorn/prefer-array-some': 'error',
|
|
115
|
-
'unicorn/prefer-at': 'off',
|
|
116
|
-
'unicorn/prefer-blob-reading-methods': 'error',
|
|
117
|
-
'unicorn/prefer-code-point': 'error',
|
|
118
|
-
'unicorn/prefer-date-now': 'warn',
|
|
119
|
-
'unicorn/prefer-default-parameters': 'warn',
|
|
120
|
-
'unicorn/prefer-dom-node-append': 'warn',
|
|
121
|
-
'unicorn/prefer-dom-node-dataset': 'warn',
|
|
122
|
-
'unicorn/prefer-dom-node-remove': 'warn',
|
|
123
|
-
'unicorn/prefer-dom-node-text-content': 'warn',
|
|
124
|
-
'unicorn/prefer-event-target': 'error',
|
|
125
|
-
'unicorn/prefer-export-from': 'warn',
|
|
126
|
-
'unicorn/prefer-global-this': 'warn',
|
|
127
|
-
'unicorn/prefer-includes': 'warn',
|
|
128
|
-
'unicorn/prefer-json-parse-buffer': 'warn',
|
|
129
|
-
'unicorn/prefer-keyboard-event-key': 'warn',
|
|
130
|
-
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
131
|
-
'unicorn/prefer-math-min-max': 'warn',
|
|
132
|
-
'unicorn/prefer-math-trunc': 'warn',
|
|
133
|
-
'unicorn/prefer-modern-dom-apis': 'warn',
|
|
134
|
-
'unicorn/prefer-modern-math-apis': 'warn',
|
|
135
|
-
'unicorn/prefer-module': 'off',
|
|
136
|
-
'unicorn/prefer-native-coercion-functions': 'warn',
|
|
137
|
-
'unicorn/prefer-negative-index': 'warn',
|
|
138
|
-
'unicorn/prefer-node-protocol': 'warn',
|
|
139
|
-
'unicorn/prefer-number-properties': ['warn', {
|
|
140
|
-
checkInfinity: true,
|
|
141
|
-
checkNaN: true
|
|
142
|
-
}],
|
|
143
|
-
'unicorn/prefer-object-from-entries': ['off', {
|
|
144
|
-
functions: []
|
|
145
|
-
}],
|
|
146
|
-
'unicorn/prefer-optional-catch-binding': 'warn',
|
|
147
|
-
'unicorn/prefer-prototype-methods': 'warn',
|
|
148
|
-
'unicorn/prefer-query-selector': 'warn',
|
|
149
|
-
'unicorn/prefer-reflect-apply': 'warn',
|
|
150
|
-
'unicorn/prefer-regexp-test': 'off',
|
|
151
|
-
'unicorn/prefer-set-has': 'warn',
|
|
152
|
-
'unicorn/prefer-set-size': 'warn',
|
|
153
|
-
'unicorn/prefer-spread': 'off',
|
|
154
|
-
'unicorn/prefer-string-raw': 'off',
|
|
155
|
-
'unicorn/prefer-string-replace-all': 'off',
|
|
156
|
-
'unicorn/prefer-string-slice': 'warn',
|
|
157
|
-
'unicorn/prefer-string-starts-ends-with': 'warn',
|
|
158
|
-
'unicorn/prefer-string-trim-start-end': 'warn',
|
|
159
|
-
'unicorn/prefer-structured-clone': 'off',
|
|
160
|
-
'unicorn/prefer-switch': ['error', {
|
|
161
|
-
minimumCases: 3,
|
|
162
|
-
emptyDefaultCase: 'do-nothing-comment'
|
|
163
|
-
}],
|
|
164
|
-
'unicorn/prefer-ternary': 'off',
|
|
165
|
-
'unicorn/prefer-top-level-await': 'off',
|
|
166
|
-
'unicorn/prefer-type-error': 'warn',
|
|
167
|
-
'unicorn/prevent-abbreviations': ['warn', unicornPreventAbbreviations()],
|
|
168
|
-
'unicorn/relative-url-style': ['warn', 'always'],
|
|
169
|
-
'unicorn/require-array-join-separator': 'warn',
|
|
170
|
-
'unicorn/require-number-to-fixed-digits-argument': 'warn',
|
|
171
|
-
'unicorn/require-post-message-target-origin': 'error',
|
|
172
|
-
'unicorn/string-content': 'off',
|
|
173
|
-
'unicorn/switch-case-braces': 'off',
|
|
174
|
-
'unicorn/template-indent': 'warn',
|
|
175
|
-
'unicorn/text-encoding-identifier-case': 'error',
|
|
176
|
-
'unicorn/throw-new-error': 'warn'
|
|
177
|
-
}
|
|
178
|
-
};
|
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,4 +0,0 @@
|
|
|
1
|
-
export { cypressImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies } from "./rules/import/rules/no-extraneous-dependencies.js";
|
|
2
|
-
export { simpleImportSortImports } from "./rules/simple-import-sort/rules/imports.js";
|
|
3
|
-
export { typescriptEslintNamingConvention } from "./rules/typescript-eslint/rules/typescript-eslint-naming-convention.js";
|
|
4
|
-
export { unicornPreventAbbreviations } from "./rules/unicorn/rules/prevent-abbreviations.js";
|
package/rxjs.d.ts
DELETED
package/rxjs.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { parser } from 'typescript-eslint';
|
|
2
|
-
import { rxjsConfig as rxjsPluginConfig } from "./rules/rxjs/index.js";
|
|
3
|
-
export function rxjsConfig(files = ['**/*.ts?(x)']) {
|
|
4
|
-
return {
|
|
5
|
-
files,
|
|
6
|
-
languageOptions: {
|
|
7
|
-
sourceType: 'module',
|
|
8
|
-
ecmaVersion: 'latest',
|
|
9
|
-
parser,
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaFeatures: {
|
|
12
|
-
globalReturn: false,
|
|
13
|
-
impliedStrict: true
|
|
14
|
-
},
|
|
15
|
-
projectService: true,
|
|
16
|
-
warnOnUnsupportedTypeScriptVersion: true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
plugins: Object.assign({}, rxjsPluginConfig.plugins),
|
|
20
|
-
rules: Object.assign({}, rxjsPluginConfig.rules)
|
|
21
|
-
};
|
|
22
|
-
}
|
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,8 +0,0 @@
|
|
|
1
|
-
import { testingLibraryConfig as testingLibraryPluginConfig } from "./rules/testing-library/index.js";
|
|
2
|
-
export function testingLibraryConfig(files = ['**/*.@(spec|test).[jt]s?(x)']) {
|
|
3
|
-
return {
|
|
4
|
-
files,
|
|
5
|
-
plugins: testingLibraryPluginConfig.plugins,
|
|
6
|
-
rules: testingLibraryPluginConfig.rules
|
|
7
|
-
};
|
|
8
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{rules/eslint-comments/best-practices.js → config/eslint-comments/best-practices-rules.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|