@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
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginStylisticJs from '@stylistic/eslint-plugin-js';
|
|
2
|
-
export declare const stylisticJsConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
'@stylistic/js': typeof eslintPluginStylisticJs;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
'@stylistic/js/array-bracket-newline': string[];
|
|
8
|
-
'@stylistic/js/array-bracket-spacing': string[];
|
|
9
|
-
'@stylistic/js/array-element-newline': string[];
|
|
10
|
-
'@stylistic/js/arrow-parens': string[];
|
|
11
|
-
'@stylistic/js/arrow-spacing': (string | {
|
|
12
|
-
before: boolean;
|
|
13
|
-
after: boolean;
|
|
14
|
-
})[];
|
|
15
|
-
'@stylistic/js/block-spacing': string[];
|
|
16
|
-
'@stylistic/js/brace-style': (string | {
|
|
17
|
-
allowSingleLine: boolean;
|
|
18
|
-
})[];
|
|
19
|
-
'@stylistic/js/comma-dangle': (string | {
|
|
20
|
-
arrays: string;
|
|
21
|
-
objects: string;
|
|
22
|
-
imports: string;
|
|
23
|
-
exports: string;
|
|
24
|
-
functions: string;
|
|
25
|
-
})[];
|
|
26
|
-
'@stylistic/js/comma-spacing': (string | {
|
|
27
|
-
before: boolean;
|
|
28
|
-
after: boolean;
|
|
29
|
-
})[];
|
|
30
|
-
'@stylistic/js/comma-style': string[];
|
|
31
|
-
'@stylistic/js/computed-property-spacing': string[];
|
|
32
|
-
'@stylistic/js/dot-location': string[];
|
|
33
|
-
'@stylistic/js/eol-last': string[];
|
|
34
|
-
'@stylistic/js/func-call-spacing': string;
|
|
35
|
-
'@stylistic/js/function-call-argument-newline': string[];
|
|
36
|
-
'@stylistic/js/function-call-spacing': string[];
|
|
37
|
-
'@stylistic/js/function-paren-newline': string[];
|
|
38
|
-
'@stylistic/js/generator-star-spacing': (string | {
|
|
39
|
-
before: boolean;
|
|
40
|
-
after: boolean;
|
|
41
|
-
})[];
|
|
42
|
-
'@stylistic/js/implicit-arrow-linebreak': string[];
|
|
43
|
-
'@stylistic/js/indent': (string | number | {
|
|
44
|
-
SwitchCase: number;
|
|
45
|
-
})[];
|
|
46
|
-
'@stylistic/js/jsx-quotes': string[];
|
|
47
|
-
'@stylistic/js/key-spacing': (string | {
|
|
48
|
-
beforeColon: boolean;
|
|
49
|
-
afterColon: boolean;
|
|
50
|
-
mode: string;
|
|
51
|
-
})[];
|
|
52
|
-
'@stylistic/js/keyword-spacing': (string | {
|
|
53
|
-
before: boolean;
|
|
54
|
-
after: boolean;
|
|
55
|
-
})[];
|
|
56
|
-
'@stylistic/js/line-comment-position': (string | {
|
|
57
|
-
position: string;
|
|
58
|
-
ignorePattern: string;
|
|
59
|
-
})[];
|
|
60
|
-
'@stylistic/js/linebreak-style': string[];
|
|
61
|
-
'@stylistic/js/lines-around-comment': (string | {
|
|
62
|
-
beforeBlockComment: boolean;
|
|
63
|
-
afterBlockComment: boolean;
|
|
64
|
-
beforeLineComment: boolean;
|
|
65
|
-
afterLineComment: boolean;
|
|
66
|
-
allowBlockStart: boolean;
|
|
67
|
-
allowBlockEnd: boolean;
|
|
68
|
-
allowObjectStart: boolean;
|
|
69
|
-
allowObjectEnd: boolean;
|
|
70
|
-
allowArrayStart: boolean;
|
|
71
|
-
allowArrayEnd: boolean;
|
|
72
|
-
allowClassStart: boolean;
|
|
73
|
-
allowClassEnd: boolean;
|
|
74
|
-
afterHashbangComment: boolean;
|
|
75
|
-
})[];
|
|
76
|
-
'@stylistic/js/lines-between-class-members': (string | {
|
|
77
|
-
exceptAfterSingleLine: boolean;
|
|
78
|
-
})[];
|
|
79
|
-
'@stylistic/js/max-len': (string | {
|
|
80
|
-
code: number;
|
|
81
|
-
tabWidth: number;
|
|
82
|
-
ignoreRegExpLiterals: boolean;
|
|
83
|
-
ignoreUrls: boolean;
|
|
84
|
-
})[];
|
|
85
|
-
'@stylistic/js/max-statements-per-line': (string | {
|
|
86
|
-
max: number;
|
|
87
|
-
})[];
|
|
88
|
-
'@stylistic/js/multiline-comment-style': (string | {
|
|
89
|
-
checkJSDoc: boolean;
|
|
90
|
-
})[];
|
|
91
|
-
'@stylistic/js/multiline-ternary': string[];
|
|
92
|
-
'@stylistic/js/new-parens': string;
|
|
93
|
-
'@stylistic/js/newline-per-chained-call': (string | {
|
|
94
|
-
ignoreChainWithDepth: number;
|
|
95
|
-
})[];
|
|
96
|
-
'@stylistic/js/no-confusing-arrow': (string | {
|
|
97
|
-
allowParens: boolean;
|
|
98
|
-
onlyOneSimpleParam: boolean;
|
|
99
|
-
})[];
|
|
100
|
-
'@stylistic/js/no-extra-parens': (string | {
|
|
101
|
-
ignoreJSX: string;
|
|
102
|
-
nestedBinaryExpressions: boolean;
|
|
103
|
-
enforceForArrowConditionals: boolean;
|
|
104
|
-
ternaryOperandBinaryExpressions: boolean;
|
|
105
|
-
})[];
|
|
106
|
-
'@stylistic/js/no-extra-semi': string;
|
|
107
|
-
'@stylistic/js/no-floating-decimal': string;
|
|
108
|
-
'@stylistic/js/no-mixed-operators': (string | {
|
|
109
|
-
groups: string[][];
|
|
110
|
-
allowSamePrecedence: boolean;
|
|
111
|
-
})[];
|
|
112
|
-
'@stylistic/js/no-mixed-spaces-and-tabs': string;
|
|
113
|
-
'@stylistic/js/no-multi-spaces': string;
|
|
114
|
-
'@stylistic/js/no-multiple-empty-lines': (string | {
|
|
115
|
-
max: number;
|
|
116
|
-
maxEOF: number;
|
|
117
|
-
maxBOF: number;
|
|
118
|
-
})[];
|
|
119
|
-
'@stylistic/js/no-tabs': string;
|
|
120
|
-
'@stylistic/js/no-trailing-spaces': string;
|
|
121
|
-
'@stylistic/js/no-whitespace-before-property': string;
|
|
122
|
-
'@stylistic/js/nonblock-statement-body-position': string[];
|
|
123
|
-
'@stylistic/js/object-curly-newline': (string | {
|
|
124
|
-
ImportDeclaration: {
|
|
125
|
-
multiline: boolean;
|
|
126
|
-
};
|
|
127
|
-
ExportDeclaration: {
|
|
128
|
-
multiline: boolean;
|
|
129
|
-
};
|
|
130
|
-
})[];
|
|
131
|
-
'@stylistic/js/object-curly-spacing': (string | {
|
|
132
|
-
arraysInObjects: boolean;
|
|
133
|
-
objectsInObjects: boolean;
|
|
134
|
-
})[];
|
|
135
|
-
'@stylistic/js/object-property-newline': (string | {
|
|
136
|
-
allowAllPropertiesOnSameLine: boolean;
|
|
137
|
-
})[];
|
|
138
|
-
'@stylistic/js/one-var-declaration-per-line': string[];
|
|
139
|
-
'@stylistic/js/operator-linebreak': (string | {
|
|
140
|
-
overrides: {
|
|
141
|
-
'=': string;
|
|
142
|
-
'==': string;
|
|
143
|
-
'!=': string;
|
|
144
|
-
'>=': string;
|
|
145
|
-
'<=': string;
|
|
146
|
-
'===': string;
|
|
147
|
-
'+=': string;
|
|
148
|
-
};
|
|
149
|
-
})[];
|
|
150
|
-
'@stylistic/js/padded-blocks': string[];
|
|
151
|
-
'@stylistic/js/padding-line-between-statements': string;
|
|
152
|
-
'@stylistic/js/quote-props': string[];
|
|
153
|
-
'@stylistic/js/quotes': (string | {
|
|
154
|
-
avoidEscape: boolean;
|
|
155
|
-
allowTemplateLiterals: boolean;
|
|
156
|
-
ignoreStringLiterals: boolean;
|
|
157
|
-
})[];
|
|
158
|
-
'@stylistic/js/rest-spread-spacing': string[];
|
|
159
|
-
'@stylistic/js/semi': string[];
|
|
160
|
-
'@stylistic/js/semi-spacing': (string | {
|
|
161
|
-
before: boolean;
|
|
162
|
-
after: boolean;
|
|
163
|
-
})[];
|
|
164
|
-
'@stylistic/js/semi-style': string[];
|
|
165
|
-
'@stylistic/js/space-before-blocks': string[];
|
|
166
|
-
'@stylistic/js/space-before-function-paren': (string | {
|
|
167
|
-
anonymous: string;
|
|
168
|
-
named: string;
|
|
169
|
-
asyncArrow: string;
|
|
170
|
-
})[];
|
|
171
|
-
'@stylistic/js/space-in-parens': string[];
|
|
172
|
-
'@stylistic/js/space-infix-ops': (string | {
|
|
173
|
-
int32Hint: boolean;
|
|
174
|
-
})[];
|
|
175
|
-
'@stylistic/js/space-unary-ops': (string | {
|
|
176
|
-
words: boolean;
|
|
177
|
-
nonwords: boolean;
|
|
178
|
-
})[];
|
|
179
|
-
'@stylistic/js/spaced-comment': (string | {
|
|
180
|
-
line: {
|
|
181
|
-
markers: string[];
|
|
182
|
-
};
|
|
183
|
-
})[];
|
|
184
|
-
'@stylistic/js/switch-colon-spacing': (string | {
|
|
185
|
-
after: boolean;
|
|
186
|
-
before: boolean;
|
|
187
|
-
})[];
|
|
188
|
-
'@stylistic/js/template-curly-spacing': string[];
|
|
189
|
-
'@stylistic/js/template-tag-spacing': string[];
|
|
190
|
-
'@stylistic/js/wrap-iife': string[];
|
|
191
|
-
'@stylistic/js/wrap-regex': string;
|
|
192
|
-
'@stylistic/js/yield-star-spacing': (string | {
|
|
193
|
-
before: boolean;
|
|
194
|
-
after: boolean;
|
|
195
|
-
})[];
|
|
196
|
-
};
|
|
197
|
-
};
|
|
@@ -1,236 +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.stylisticJsConfig = void 0;
|
|
37
|
-
const eslintPluginStylisticJs = __importStar(require("@stylistic/eslint-plugin-js"));
|
|
38
|
-
exports.stylisticJsConfig = {
|
|
39
|
-
plugins: {
|
|
40
|
-
'@stylistic/js': eslintPluginStylisticJs,
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
'@stylistic/js/array-bracket-newline': ['warn', 'consistent'],
|
|
44
|
-
'@stylistic/js/array-bracket-spacing': ['warn', 'never'],
|
|
45
|
-
'@stylistic/js/array-element-newline': ['warn', 'consistent'],
|
|
46
|
-
'@stylistic/js/arrow-parens': ['warn', 'as-needed'],
|
|
47
|
-
'@stylistic/js/arrow-spacing': ['warn', {
|
|
48
|
-
before: true,
|
|
49
|
-
after: true,
|
|
50
|
-
}],
|
|
51
|
-
'@stylistic/js/block-spacing': ['warn', 'always'],
|
|
52
|
-
'@stylistic/js/brace-style': ['warn', 'stroustrup', {
|
|
53
|
-
allowSingleLine: false,
|
|
54
|
-
}],
|
|
55
|
-
'@stylistic/js/comma-dangle': ['warn', {
|
|
56
|
-
arrays: 'always-multiline',
|
|
57
|
-
objects: 'always-multiline',
|
|
58
|
-
imports: 'always-multiline',
|
|
59
|
-
exports: 'always-multiline',
|
|
60
|
-
functions: 'always-multiline',
|
|
61
|
-
}],
|
|
62
|
-
'@stylistic/js/comma-spacing': ['warn', {
|
|
63
|
-
before: false,
|
|
64
|
-
after: true,
|
|
65
|
-
}],
|
|
66
|
-
'@stylistic/js/comma-style': ['warn', 'last'],
|
|
67
|
-
'@stylistic/js/computed-property-spacing': ['warn', 'never'],
|
|
68
|
-
'@stylistic/js/dot-location': ['warn', 'property'],
|
|
69
|
-
'@stylistic/js/eol-last': ['warn', 'always'],
|
|
70
|
-
'@stylistic/js/func-call-spacing': 'off',
|
|
71
|
-
'@stylistic/js/function-call-argument-newline': ['warn', 'consistent'],
|
|
72
|
-
'@stylistic/js/function-call-spacing': ['warn', 'never'],
|
|
73
|
-
'@stylistic/js/function-paren-newline': ['warn', 'consistent'],
|
|
74
|
-
'@stylistic/js/generator-star-spacing': ['warn', {
|
|
75
|
-
before: true,
|
|
76
|
-
after: false,
|
|
77
|
-
}],
|
|
78
|
-
'@stylistic/js/implicit-arrow-linebreak': ['warn', 'beside'],
|
|
79
|
-
'@stylistic/js/indent': ['warn', 4, {
|
|
80
|
-
SwitchCase: 1,
|
|
81
|
-
}],
|
|
82
|
-
'@stylistic/js/jsx-quotes': ['warn', 'prefer-double'],
|
|
83
|
-
'@stylistic/js/key-spacing': ['warn', {
|
|
84
|
-
beforeColon: false,
|
|
85
|
-
afterColon: true,
|
|
86
|
-
mode: 'strict',
|
|
87
|
-
}],
|
|
88
|
-
'@stylistic/js/keyword-spacing': ['warn', {
|
|
89
|
-
before: true,
|
|
90
|
-
after: true,
|
|
91
|
-
}],
|
|
92
|
-
'@stylistic/js/line-comment-position': ['error', {
|
|
93
|
-
position: 'above',
|
|
94
|
-
ignorePattern: '^ == .+',
|
|
95
|
-
}],
|
|
96
|
-
'@stylistic/js/linebreak-style': ['warn', 'unix'],
|
|
97
|
-
'@stylistic/js/lines-around-comment': ['warn', {
|
|
98
|
-
beforeBlockComment: true,
|
|
99
|
-
afterBlockComment: false,
|
|
100
|
-
beforeLineComment: false,
|
|
101
|
-
afterLineComment: false,
|
|
102
|
-
allowBlockStart: false,
|
|
103
|
-
allowBlockEnd: false,
|
|
104
|
-
allowObjectStart: false,
|
|
105
|
-
allowObjectEnd: false,
|
|
106
|
-
allowArrayStart: false,
|
|
107
|
-
allowArrayEnd: false,
|
|
108
|
-
allowClassStart: true,
|
|
109
|
-
allowClassEnd: false,
|
|
110
|
-
afterHashbangComment: true,
|
|
111
|
-
}],
|
|
112
|
-
'@stylistic/js/lines-between-class-members': ['warn', 'always', {
|
|
113
|
-
exceptAfterSingleLine: true,
|
|
114
|
-
}],
|
|
115
|
-
'@stylistic/js/max-len': ['error', {
|
|
116
|
-
code: 120,
|
|
117
|
-
tabWidth: 4,
|
|
118
|
-
ignoreRegExpLiterals: true,
|
|
119
|
-
ignoreUrls: true,
|
|
120
|
-
}],
|
|
121
|
-
'@stylistic/js/max-statements-per-line': ['error', {
|
|
122
|
-
max: 1,
|
|
123
|
-
}],
|
|
124
|
-
'@stylistic/js/multiline-comment-style': ['warn', 'separate-lines', {
|
|
125
|
-
checkJSDoc: false,
|
|
126
|
-
}],
|
|
127
|
-
'@stylistic/js/multiline-ternary': ['warn', 'always-multiline'],
|
|
128
|
-
'@stylistic/js/new-parens': 'warn',
|
|
129
|
-
'@stylistic/js/newline-per-chained-call': ['off', {
|
|
130
|
-
ignoreChainWithDepth: 3,
|
|
131
|
-
}],
|
|
132
|
-
'@stylistic/js/no-confusing-arrow': ['warn', {
|
|
133
|
-
allowParens: true,
|
|
134
|
-
onlyOneSimpleParam: false,
|
|
135
|
-
}],
|
|
136
|
-
'@stylistic/js/no-extra-parens': ['warn', 'all', {
|
|
137
|
-
ignoreJSX: 'all',
|
|
138
|
-
nestedBinaryExpressions: false,
|
|
139
|
-
enforceForArrowConditionals: false,
|
|
140
|
-
ternaryOperandBinaryExpressions: false,
|
|
141
|
-
}],
|
|
142
|
-
'@stylistic/js/no-extra-semi': 'warn',
|
|
143
|
-
'@stylistic/js/no-floating-decimal': 'warn',
|
|
144
|
-
'@stylistic/js/no-mixed-operators': ['error', {
|
|
145
|
-
groups: [
|
|
146
|
-
['+', '-'],
|
|
147
|
-
['*', '/', '%', '**'],
|
|
148
|
-
['&', '|', '^', '~', '<<', '>>', '>>>'],
|
|
149
|
-
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
|
|
150
|
-
['&&', '||', '?:', '??'],
|
|
151
|
-
['in', 'instanceof'],
|
|
152
|
-
],
|
|
153
|
-
allowSamePrecedence: true,
|
|
154
|
-
}],
|
|
155
|
-
'@stylistic/js/no-mixed-spaces-and-tabs': 'error',
|
|
156
|
-
'@stylistic/js/no-multi-spaces': 'warn',
|
|
157
|
-
'@stylistic/js/no-multiple-empty-lines': ['warn', {
|
|
158
|
-
max: 1,
|
|
159
|
-
maxEOF: 0,
|
|
160
|
-
maxBOF: 0,
|
|
161
|
-
}],
|
|
162
|
-
'@stylistic/js/no-tabs': 'error',
|
|
163
|
-
'@stylistic/js/no-trailing-spaces': 'warn',
|
|
164
|
-
'@stylistic/js/no-whitespace-before-property': 'warn',
|
|
165
|
-
'@stylistic/js/nonblock-statement-body-position': ['warn', 'below'],
|
|
166
|
-
'@stylistic/js/object-curly-newline': ['warn', {
|
|
167
|
-
ImportDeclaration: { multiline: true },
|
|
168
|
-
ExportDeclaration: { multiline: true },
|
|
169
|
-
}],
|
|
170
|
-
'@stylistic/js/object-curly-spacing': ['warn', 'always', {
|
|
171
|
-
arraysInObjects: true,
|
|
172
|
-
objectsInObjects: true,
|
|
173
|
-
}],
|
|
174
|
-
'@stylistic/js/object-property-newline': ['warn', {
|
|
175
|
-
allowAllPropertiesOnSameLine: true,
|
|
176
|
-
}],
|
|
177
|
-
'@stylistic/js/one-var-declaration-per-line': ['warn', 'always'],
|
|
178
|
-
'@stylistic/js/operator-linebreak': ['warn', 'before', {
|
|
179
|
-
overrides: {
|
|
180
|
-
'=': 'none',
|
|
181
|
-
'==': 'none',
|
|
182
|
-
'!=': 'none',
|
|
183
|
-
'>=': 'none',
|
|
184
|
-
'<=': 'none',
|
|
185
|
-
'===': 'none',
|
|
186
|
-
'+=': 'none',
|
|
187
|
-
},
|
|
188
|
-
}],
|
|
189
|
-
'@stylistic/js/padded-blocks': ['warn', 'never'],
|
|
190
|
-
'@stylistic/js/padding-line-between-statements': 'off',
|
|
191
|
-
'@stylistic/js/quote-props': ['warn', 'consistent-as-needed'],
|
|
192
|
-
'@stylistic/js/quotes': ['warn', 'single', {
|
|
193
|
-
avoidEscape: true,
|
|
194
|
-
allowTemplateLiterals: true,
|
|
195
|
-
ignoreStringLiterals: false,
|
|
196
|
-
}],
|
|
197
|
-
'@stylistic/js/rest-spread-spacing': ['warn', 'never'],
|
|
198
|
-
'@stylistic/js/semi': ['warn', 'always'],
|
|
199
|
-
'@stylistic/js/semi-spacing': ['warn', {
|
|
200
|
-
before: false,
|
|
201
|
-
after: true,
|
|
202
|
-
}],
|
|
203
|
-
'@stylistic/js/semi-style': ['warn', 'last'],
|
|
204
|
-
'@stylistic/js/space-before-blocks': ['warn', 'always'],
|
|
205
|
-
'@stylistic/js/space-before-function-paren': ['warn', {
|
|
206
|
-
anonymous: 'always',
|
|
207
|
-
named: 'never',
|
|
208
|
-
asyncArrow: 'always',
|
|
209
|
-
}],
|
|
210
|
-
'@stylistic/js/space-in-parens': ['warn', 'never'],
|
|
211
|
-
'@stylistic/js/space-infix-ops': ['warn', {
|
|
212
|
-
int32Hint: false,
|
|
213
|
-
}],
|
|
214
|
-
'@stylistic/js/space-unary-ops': ['warn', {
|
|
215
|
-
words: true,
|
|
216
|
-
nonwords: false,
|
|
217
|
-
}],
|
|
218
|
-
'@stylistic/js/spaced-comment': ['warn', 'always', {
|
|
219
|
-
line: {
|
|
220
|
-
markers: ['/ <reference'],
|
|
221
|
-
},
|
|
222
|
-
}],
|
|
223
|
-
'@stylistic/js/switch-colon-spacing': ['warn', {
|
|
224
|
-
after: true,
|
|
225
|
-
before: false,
|
|
226
|
-
}],
|
|
227
|
-
'@stylistic/js/template-curly-spacing': ['warn', 'never'],
|
|
228
|
-
'@stylistic/js/template-tag-spacing': ['warn', 'never'],
|
|
229
|
-
'@stylistic/js/wrap-iife': ['warn', 'outside'],
|
|
230
|
-
'@stylistic/js/wrap-regex': 'warn',
|
|
231
|
-
'@stylistic/js/yield-star-spacing': ['warn', {
|
|
232
|
-
before: true,
|
|
233
|
-
after: false,
|
|
234
|
-
}],
|
|
235
|
-
},
|
|
236
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginStylisticJsx from '@stylistic/eslint-plugin-jsx';
|
|
2
|
-
export declare const stylisticJsxConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
'@stylistic/jsx': typeof eslintPluginStylisticJsx;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
'@stylistic/jsx/jsx-child-element-spacing': string;
|
|
8
|
-
'@stylistic/jsx/jsx-closing-bracket-location': (string | {
|
|
9
|
-
selfClosing: string;
|
|
10
|
-
nonEmpty: string;
|
|
11
|
-
})[];
|
|
12
|
-
'@stylistic/jsx/jsx-closing-tag-location': string[];
|
|
13
|
-
'@stylistic/jsx/jsx-curly-brace-presence': (string | {
|
|
14
|
-
props: string;
|
|
15
|
-
children: string;
|
|
16
|
-
propElementValues: string;
|
|
17
|
-
})[];
|
|
18
|
-
'@stylistic/jsx/jsx-curly-newline': string[];
|
|
19
|
-
'@stylistic/jsx/jsx-curly-spacing': (string | {
|
|
20
|
-
when: string;
|
|
21
|
-
attributes: {
|
|
22
|
-
allowMultiline: boolean;
|
|
23
|
-
};
|
|
24
|
-
children: {
|
|
25
|
-
allowMultiline: boolean;
|
|
26
|
-
};
|
|
27
|
-
})[];
|
|
28
|
-
'@stylistic/jsx/jsx-equals-spacing': string[];
|
|
29
|
-
'@stylistic/jsx/jsx-first-prop-new-line': string[];
|
|
30
|
-
'@stylistic/jsx/jsx-function-call-newline': string[];
|
|
31
|
-
'@stylistic/jsx/jsx-indent': string;
|
|
32
|
-
'@stylistic/jsx/jsx-indent-props': (string | {
|
|
33
|
-
indentMode: number;
|
|
34
|
-
ignoreTernaryOperator: boolean;
|
|
35
|
-
})[];
|
|
36
|
-
'@stylistic/jsx/jsx-max-props-per-line': (string | {
|
|
37
|
-
maximum: number;
|
|
38
|
-
when: string;
|
|
39
|
-
})[];
|
|
40
|
-
'@stylistic/jsx/jsx-newline': string;
|
|
41
|
-
'@stylistic/jsx/jsx-one-expression-per-line': (string | {
|
|
42
|
-
allow: string;
|
|
43
|
-
})[];
|
|
44
|
-
'@stylistic/jsx/jsx-pascal-case': (string | {
|
|
45
|
-
allowAllCaps: boolean;
|
|
46
|
-
allowLeadingUnderscore: boolean;
|
|
47
|
-
allowNamespace: boolean;
|
|
48
|
-
ignore: never[];
|
|
49
|
-
})[];
|
|
50
|
-
'@stylistic/jsx/jsx-props-no-multi-spaces': string;
|
|
51
|
-
'@stylistic/jsx/jsx-self-closing-comp': (string | {
|
|
52
|
-
component: boolean;
|
|
53
|
-
html: boolean;
|
|
54
|
-
})[];
|
|
55
|
-
'@stylistic/jsx/jsx-sort-props': (string | {
|
|
56
|
-
ignoreCase: boolean;
|
|
57
|
-
callbacksLast: boolean;
|
|
58
|
-
shorthandFirst: boolean;
|
|
59
|
-
shorthandLast: boolean;
|
|
60
|
-
multiline: string;
|
|
61
|
-
noSortAlphabetically: boolean;
|
|
62
|
-
reservedFirst: boolean;
|
|
63
|
-
locale: string;
|
|
64
|
-
})[];
|
|
65
|
-
'@stylistic/jsx/jsx-tag-spacing': (string | {
|
|
66
|
-
closingSlash: string;
|
|
67
|
-
beforeSelfClosing: string;
|
|
68
|
-
afterOpening: string;
|
|
69
|
-
beforeClosing: string;
|
|
70
|
-
})[];
|
|
71
|
-
'@stylistic/jsx/jsx-wrap-multilines': (string | {
|
|
72
|
-
declaration: string;
|
|
73
|
-
assignment: string;
|
|
74
|
-
return: string;
|
|
75
|
-
arrow: string;
|
|
76
|
-
condition: string;
|
|
77
|
-
logical: string;
|
|
78
|
-
prop: string;
|
|
79
|
-
})[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -1,117 +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.stylisticJsxConfig = void 0;
|
|
37
|
-
const eslintPluginStylisticJsx = __importStar(require("@stylistic/eslint-plugin-jsx"));
|
|
38
|
-
exports.stylisticJsxConfig = {
|
|
39
|
-
plugins: {
|
|
40
|
-
'@stylistic/jsx': eslintPluginStylisticJsx,
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
'@stylistic/jsx/jsx-child-element-spacing': 'error',
|
|
44
|
-
'@stylistic/jsx/jsx-closing-bracket-location': ['warn', {
|
|
45
|
-
selfClosing: 'after-props',
|
|
46
|
-
nonEmpty: 'after-props',
|
|
47
|
-
}],
|
|
48
|
-
'@stylistic/jsx/jsx-closing-tag-location': ['warn', 'tag-aligned'],
|
|
49
|
-
'@stylistic/jsx/jsx-curly-brace-presence': ['warn', {
|
|
50
|
-
props: 'never',
|
|
51
|
-
children: 'always',
|
|
52
|
-
propElementValues: 'always',
|
|
53
|
-
}],
|
|
54
|
-
'@stylistic/jsx/jsx-curly-newline': ['warn', 'never'],
|
|
55
|
-
'@stylistic/jsx/jsx-curly-spacing': ['warn', {
|
|
56
|
-
when: 'never',
|
|
57
|
-
attributes: {
|
|
58
|
-
allowMultiline: false,
|
|
59
|
-
},
|
|
60
|
-
children: {
|
|
61
|
-
allowMultiline: false,
|
|
62
|
-
},
|
|
63
|
-
}],
|
|
64
|
-
'@stylistic/jsx/jsx-equals-spacing': ['warn', 'never'],
|
|
65
|
-
'@stylistic/jsx/jsx-first-prop-new-line': ['warn', 'multiline-multiprop'],
|
|
66
|
-
'@stylistic/jsx/jsx-function-call-newline': ['warn', 'multiline'],
|
|
67
|
-
'@stylistic/jsx/jsx-indent': 'off',
|
|
68
|
-
'@stylistic/jsx/jsx-indent-props': ['warn', {
|
|
69
|
-
indentMode: 1,
|
|
70
|
-
ignoreTernaryOperator: false,
|
|
71
|
-
}],
|
|
72
|
-
'@stylistic/jsx/jsx-max-props-per-line': ['warn', {
|
|
73
|
-
maximum: 1,
|
|
74
|
-
when: 'always',
|
|
75
|
-
}],
|
|
76
|
-
'@stylistic/jsx/jsx-newline': 'off',
|
|
77
|
-
'@stylistic/jsx/jsx-one-expression-per-line': ['warn', {
|
|
78
|
-
allow: 'single-child',
|
|
79
|
-
}],
|
|
80
|
-
'@stylistic/jsx/jsx-pascal-case': ['error', {
|
|
81
|
-
allowAllCaps: false,
|
|
82
|
-
allowLeadingUnderscore: false,
|
|
83
|
-
allowNamespace: false,
|
|
84
|
-
ignore: [],
|
|
85
|
-
}],
|
|
86
|
-
'@stylistic/jsx/jsx-props-no-multi-spaces': 'warn',
|
|
87
|
-
'@stylistic/jsx/jsx-self-closing-comp': ['warn', {
|
|
88
|
-
component: true,
|
|
89
|
-
html: true,
|
|
90
|
-
}],
|
|
91
|
-
'@stylistic/jsx/jsx-sort-props': ['warn', {
|
|
92
|
-
ignoreCase: false,
|
|
93
|
-
callbacksLast: true,
|
|
94
|
-
shorthandFirst: true,
|
|
95
|
-
shorthandLast: false,
|
|
96
|
-
multiline: 'ignore',
|
|
97
|
-
noSortAlphabetically: false,
|
|
98
|
-
reservedFirst: true,
|
|
99
|
-
locale: 'auto',
|
|
100
|
-
}],
|
|
101
|
-
'@stylistic/jsx/jsx-tag-spacing': ['warn', {
|
|
102
|
-
closingSlash: 'never',
|
|
103
|
-
beforeSelfClosing: 'always',
|
|
104
|
-
afterOpening: 'never',
|
|
105
|
-
beforeClosing: 'never',
|
|
106
|
-
}],
|
|
107
|
-
'@stylistic/jsx/jsx-wrap-multilines': ['warn', {
|
|
108
|
-
declaration: 'parens-new-line',
|
|
109
|
-
assignment: 'parens-new-line',
|
|
110
|
-
return: 'parens-new-line',
|
|
111
|
-
arrow: 'parens-new-line',
|
|
112
|
-
condition: 'parens-new-line',
|
|
113
|
-
logical: 'parens-new-line',
|
|
114
|
-
prop: 'parens-new-line',
|
|
115
|
-
}],
|
|
116
|
-
},
|
|
117
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as eslintPluginStylisticPlus from '@stylistic/eslint-plugin-plus';
|
|
2
|
-
export declare const stylisticPlusConfig: {
|
|
3
|
-
plugins: {
|
|
4
|
-
'@stylistic/plus': typeof eslintPluginStylisticPlus;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
'@stylistic/plus/curly-newline': (string | {
|
|
8
|
-
minElements: number;
|
|
9
|
-
})[];
|
|
10
|
-
'@stylistic/plus/indent-binary-ops': (string | number)[];
|
|
11
|
-
'@stylistic/plus/type-generic-spacing': string;
|
|
12
|
-
'@stylistic/plus/type-named-tuple-spacing': string;
|
|
13
|
-
};
|
|
14
|
-
};
|