@paratco/eslint-config 2.3.1 → 3.1.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 +21 -0
- package/README.md +186 -21
- package/dist/index.d.ts +20 -3588
- package/dist/index.js +2 -14
- package/dist/index.js.map +1 -0
- package/package.json +40 -27
- package/dist/configs/base.d.ts +0 -138
- package/dist/configs/base.d.ts.map +0 -1
- package/dist/configs/base.js +0 -29
- package/dist/configs/import.d.ts +0 -83
- package/dist/configs/import.d.ts.map +0 -1
- package/dist/configs/import.js +0 -41
- package/dist/configs/node.d.ts +0 -221
- package/dist/configs/node.d.ts.map +0 -1
- package/dist/configs/node.js +0 -7
- package/dist/configs/prettierFormatter.d.ts +0 -5
- package/dist/configs/prettierFormatter.d.ts.map +0 -1
- package/dist/configs/prettierFormatter.js +0 -3
- package/dist/configs/react.d.ts +0 -2934
- package/dist/configs/react.d.ts.map +0 -1
- package/dist/configs/react.js +0 -51
- package/dist/configs/stylisticFormatter.d.ts +0 -218
- package/dist/configs/stylisticFormatter.d.ts.map +0 -1
- package/dist/configs/stylisticFormatter.js +0 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/rules/import.d.ts +0 -59
- package/dist/rules/import.d.ts.map +0 -1
- package/dist/rules/import.js +0 -139
- package/dist/rules/javascript.d.ts +0 -23
- package/dist/rules/javascript.d.ts.map +0 -1
- package/dist/rules/javascript.js +0 -42
- package/dist/rules/react.d.ts +0 -112
- package/dist/rules/react.d.ts.map +0 -1
- package/dist/rules/react.js +0 -330
- package/dist/rules/stylistic.d.ts +0 -208
- package/dist/rules/stylistic.d.ts.map +0 -1
- package/dist/rules/stylistic.js +0 -439
- package/dist/rules/typescript.d.ts +0 -96
- package/dist/rules/typescript.d.ts.map +0 -1
- package/dist/rules/typescript.js +0 -254
- package/dist/rules/unicorn.d.ts +0 -14
- package/dist/rules/unicorn.d.ts.map +0 -1
- package/dist/rules/unicorn.js +0 -32
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
readonly "@stylistic/array-bracket-newline": readonly ["warn"];
|
|
3
|
-
readonly "@stylistic/array-bracket-spacing": readonly ["warn"];
|
|
4
|
-
readonly "@stylistic/array-element-newline": readonly ["warn", "consistent"];
|
|
5
|
-
readonly "@stylistic/arrow-parens": readonly ["warn", "always"];
|
|
6
|
-
readonly "@stylistic/arrow-spacing": readonly ["warn"];
|
|
7
|
-
readonly "@stylistic/block-spacing": readonly ["warn"];
|
|
8
|
-
readonly "@stylistic/brace-style": readonly ["warn", "1tbs"];
|
|
9
|
-
readonly "@stylistic/comma-dangle": readonly ["warn"];
|
|
10
|
-
readonly "@stylistic/comma-spacing": readonly ["warn"];
|
|
11
|
-
readonly "@stylistic/comma-style": readonly ["warn"];
|
|
12
|
-
readonly "@stylistic/computed-property-spacing": readonly ["warn"];
|
|
13
|
-
readonly "@stylistic/curly-newline": readonly ["warn", "always"];
|
|
14
|
-
readonly "@stylistic/dot-location": readonly ["warn", "property"];
|
|
15
|
-
readonly "@stylistic/eol-last": readonly ["warn"];
|
|
16
|
-
readonly "@stylistic/function-call-spacing": readonly ["warn"];
|
|
17
|
-
readonly "@stylistic/function-call-argument-newline": readonly ["warn", "consistent"];
|
|
18
|
-
readonly "@stylistic/function-paren-newline": readonly ["warn", "consistent"];
|
|
19
|
-
readonly "@stylistic/generator-star-spacing": readonly ["warn"];
|
|
20
|
-
readonly "@stylistic/implicit-arrow-linebreak": readonly ["warn"];
|
|
21
|
-
readonly "@stylistic/indent": readonly ["warn", 2];
|
|
22
|
-
readonly "@stylistic/indent-binary-ops": readonly ["warn", 2];
|
|
23
|
-
readonly "@stylistic/jsx-child-element-spacing": readonly ["error"];
|
|
24
|
-
readonly "@stylistic/jsx-closing-bracket-location": readonly ["warn"];
|
|
25
|
-
readonly "@stylistic/jsx-closing-tag-location": readonly ["warn"];
|
|
26
|
-
readonly "@stylistic/jsx-curly-brace-presence": readonly ["warn"];
|
|
27
|
-
readonly "@stylistic/jsx-curly-newline": readonly ["warn"];
|
|
28
|
-
readonly "@stylistic/jsx-curly-spacing": readonly ["warn"];
|
|
29
|
-
readonly "@stylistic/jsx-equals-spacing": readonly ["warn"];
|
|
30
|
-
readonly "@stylistic/jsx-first-prop-new-line": readonly ["warn"];
|
|
31
|
-
readonly "@stylistic/jsx-function-call-newline": readonly ["warn"];
|
|
32
|
-
readonly "@stylistic/jsx-indent": readonly ["warn", 2, {
|
|
33
|
-
readonly checkAttributes: true;
|
|
34
|
-
readonly indentLogicalExpressions: true;
|
|
35
|
-
}];
|
|
36
|
-
readonly "@stylistic/jsx-indent-props": readonly ["warn", 2];
|
|
37
|
-
readonly "@stylistic/jsx/jsx-max-props-per-line": readonly ["off"];
|
|
38
|
-
readonly "@stylistic/jsx-newline": readonly ["off"];
|
|
39
|
-
readonly "@stylistic/jsx-one-expression-per-line": readonly ["warn", {
|
|
40
|
-
readonly allow: "single-child";
|
|
41
|
-
}];
|
|
42
|
-
readonly "@stylistic/jsx-pascal-case": readonly ["error"];
|
|
43
|
-
readonly "@stylistic/jsx-props-no-multi-spaces": readonly ["warn"];
|
|
44
|
-
readonly "@stylistic/jsx-quotes": readonly ["warn"];
|
|
45
|
-
readonly "@stylistic/jsx-self-closing-comp": readonly ["warn"];
|
|
46
|
-
readonly "@stylistic/jsx-sort-props": readonly ["warn", {
|
|
47
|
-
readonly callbacksLast: true;
|
|
48
|
-
readonly shorthandFirst: true;
|
|
49
|
-
readonly multiline: "last";
|
|
50
|
-
readonly noSortAlphabetically: true;
|
|
51
|
-
}];
|
|
52
|
-
readonly "@stylistic/jsx-tag-spacing": readonly ["warn", {
|
|
53
|
-
readonly closingSlash: "never";
|
|
54
|
-
readonly beforeSelfClosing: "always";
|
|
55
|
-
readonly afterOpening: "never";
|
|
56
|
-
readonly beforeClosing: "never";
|
|
57
|
-
}];
|
|
58
|
-
readonly "@stylistic/jsx-wrap-multilines": readonly ["warn", {
|
|
59
|
-
readonly declaration: "parens-new-line";
|
|
60
|
-
readonly assignment: "parens-new-line";
|
|
61
|
-
readonly return: "parens-new-line";
|
|
62
|
-
readonly arrow: "parens-new-line";
|
|
63
|
-
readonly condition: "parens-new-line";
|
|
64
|
-
readonly logical: "parens-new-line";
|
|
65
|
-
readonly prop: "parens-new-line";
|
|
66
|
-
}];
|
|
67
|
-
readonly "@stylistic/key-spacing": "warn";
|
|
68
|
-
readonly "@stylistic/keyword-spacing": "warn";
|
|
69
|
-
readonly "@stylistic/line-comment-position": "warn";
|
|
70
|
-
readonly "@stylistic/linebreak-style": "warn";
|
|
71
|
-
readonly "@stylistic/lines-around-comment": readonly ["warn", {
|
|
72
|
-
readonly beforeBlockComment: true;
|
|
73
|
-
readonly afterBlockComment: false;
|
|
74
|
-
readonly beforeLineComment: true;
|
|
75
|
-
readonly afterLineComment: false;
|
|
76
|
-
readonly allowBlockStart: true;
|
|
77
|
-
readonly allowBlockEnd: true;
|
|
78
|
-
readonly allowObjectStart: true;
|
|
79
|
-
readonly allowObjectEnd: true;
|
|
80
|
-
readonly allowArrayStart: true;
|
|
81
|
-
readonly allowArrayEnd: true;
|
|
82
|
-
readonly allowClassStart: true;
|
|
83
|
-
readonly allowClassEnd: true;
|
|
84
|
-
readonly afterHashbangComment: true;
|
|
85
|
-
}];
|
|
86
|
-
readonly "@stylistic/lines-between-class-members": readonly ["warn", {
|
|
87
|
-
readonly enforce: readonly [{
|
|
88
|
-
readonly blankLine: "never";
|
|
89
|
-
readonly prev: "field";
|
|
90
|
-
readonly next: "field";
|
|
91
|
-
}, {
|
|
92
|
-
readonly blankLine: "always";
|
|
93
|
-
readonly prev: "*";
|
|
94
|
-
readonly next: "method";
|
|
95
|
-
}, {
|
|
96
|
-
readonly blankLine: "always";
|
|
97
|
-
readonly prev: "method";
|
|
98
|
-
readonly next: "*";
|
|
99
|
-
}];
|
|
100
|
-
}];
|
|
101
|
-
readonly "@stylistic/max-len": readonly ["error", {
|
|
102
|
-
readonly code: 120;
|
|
103
|
-
readonly tabWidth: 2;
|
|
104
|
-
readonly comments: 120;
|
|
105
|
-
readonly ignoreComments: true;
|
|
106
|
-
readonly ignoreTrailingComments: true;
|
|
107
|
-
readonly ignoreUrls: true;
|
|
108
|
-
readonly ignoreStrings: true;
|
|
109
|
-
readonly ignoreTemplateLiterals: true;
|
|
110
|
-
readonly ignoreRegExpLiterals: true;
|
|
111
|
-
}];
|
|
112
|
-
readonly "@stylistic/max-statements-per-line": readonly ["error"];
|
|
113
|
-
readonly "@stylistic/member-delimiter-style": readonly ["warn"];
|
|
114
|
-
readonly "@stylistic/multiline-comment-style": readonly ["off"];
|
|
115
|
-
readonly "@stylistic/multiline-ternary": readonly ["warn", "always-multiline"];
|
|
116
|
-
readonly "@stylistic/new-parens": readonly ["warn"];
|
|
117
|
-
readonly "@stylistic/newline-per-chained-call": readonly ["warn"];
|
|
118
|
-
readonly "@stylistic/no-confusing-arrow": readonly ["warn"];
|
|
119
|
-
readonly "@stylistic/no-extra-parens": readonly ["warn"];
|
|
120
|
-
readonly "@stylistic/no-extra-semi": readonly ["warn"];
|
|
121
|
-
readonly "@stylistic/no-floating-decimal": readonly ["warn"];
|
|
122
|
-
readonly "@stylistic/no-mixed-operators": readonly ["error"];
|
|
123
|
-
readonly "@stylistic/no-mixed-spaces-and-tabs": readonly ["error"];
|
|
124
|
-
readonly "@stylistic/no-multi-spaces": readonly ["warn"];
|
|
125
|
-
readonly "@stylistic/no-multiple-empty-lines": readonly ["warn"];
|
|
126
|
-
readonly "@stylistic/no-tabs": readonly ["error"];
|
|
127
|
-
readonly "@stylistic/no-trailing-spaces": readonly ["warn"];
|
|
128
|
-
readonly "@stylistic/no-whitespace-before-property": readonly ["warn"];
|
|
129
|
-
readonly "@stylistic/nonblock-statement-body-position": readonly ["warn"];
|
|
130
|
-
readonly "@stylistic/object-curly-newline": readonly ["warn", {
|
|
131
|
-
readonly consistent: true;
|
|
132
|
-
}];
|
|
133
|
-
readonly "@stylistic/object-curly-spacing": readonly ["warn"];
|
|
134
|
-
readonly "@stylistic/object-property-newline": readonly ["warn", {
|
|
135
|
-
readonly allowAllPropertiesOnSameLine: true;
|
|
136
|
-
}];
|
|
137
|
-
readonly "@stylistic/one-var-declaration-per-line": readonly ["warn"];
|
|
138
|
-
readonly "@stylistic/operator-linebreak": readonly ["warn"];
|
|
139
|
-
readonly "@stylistic/padded-blocks": readonly ["warn", "never"];
|
|
140
|
-
readonly "@stylistic/padding-line-between-statements": readonly ["warn", {
|
|
141
|
-
readonly blankLine: "always";
|
|
142
|
-
readonly prev: "*";
|
|
143
|
-
readonly next: "return";
|
|
144
|
-
}, {
|
|
145
|
-
readonly blankLine: "always";
|
|
146
|
-
readonly prev: "*";
|
|
147
|
-
readonly next: "block-like";
|
|
148
|
-
}, {
|
|
149
|
-
readonly blankLine: "always";
|
|
150
|
-
readonly prev: "block-like";
|
|
151
|
-
readonly next: "*";
|
|
152
|
-
}, {
|
|
153
|
-
readonly blankLine: "always";
|
|
154
|
-
readonly prev: "case";
|
|
155
|
-
readonly next: "case";
|
|
156
|
-
}, {
|
|
157
|
-
readonly blankLine: "never";
|
|
158
|
-
readonly prev: "*";
|
|
159
|
-
readonly next: "break";
|
|
160
|
-
}, {
|
|
161
|
-
readonly blankLine: "always";
|
|
162
|
-
readonly prev: "*";
|
|
163
|
-
readonly next: "export";
|
|
164
|
-
}, {
|
|
165
|
-
readonly blankLine: "always";
|
|
166
|
-
readonly prev: "*";
|
|
167
|
-
readonly next: "interface";
|
|
168
|
-
}, {
|
|
169
|
-
readonly blankLine: "always";
|
|
170
|
-
readonly prev: "interface";
|
|
171
|
-
readonly next: "*";
|
|
172
|
-
}, {
|
|
173
|
-
readonly blankLine: "always";
|
|
174
|
-
readonly prev: "*";
|
|
175
|
-
readonly next: "class";
|
|
176
|
-
}, {
|
|
177
|
-
readonly blankLine: "always";
|
|
178
|
-
readonly prev: "class";
|
|
179
|
-
readonly next: "*";
|
|
180
|
-
}];
|
|
181
|
-
readonly "@stylistic/quote-props": readonly ["warn", "as-needed"];
|
|
182
|
-
readonly "@stylistic/quotes": readonly ["warn"];
|
|
183
|
-
readonly "@stylistic/rest-spread-spacing": readonly ["warn"];
|
|
184
|
-
readonly "@stylistic/semi": readonly ["warn"];
|
|
185
|
-
readonly "@stylistic/semi-spacing": readonly ["warn"];
|
|
186
|
-
readonly "@stylistic/semi-style": readonly ["warn"];
|
|
187
|
-
readonly "@stylistic/space-before-blocks": readonly ["warn"];
|
|
188
|
-
readonly "@stylistic/space-before-function-paren": readonly ["warn", {
|
|
189
|
-
readonly anonymous: "always";
|
|
190
|
-
readonly named: "never";
|
|
191
|
-
readonly asyncArrow: "always";
|
|
192
|
-
}];
|
|
193
|
-
readonly "@stylistic/space-in-parens": readonly ["warn"];
|
|
194
|
-
readonly "@stylistic/space-infix-ops": readonly ["warn"];
|
|
195
|
-
readonly "@stylistic/space-unary-ops": readonly ["warn"];
|
|
196
|
-
readonly "@stylistic/spaced-comment": readonly ["warn"];
|
|
197
|
-
readonly "@stylistic/switch-colon-spacing": readonly ["warn"];
|
|
198
|
-
readonly "@stylistic/template-curly-spacing": readonly ["warn"];
|
|
199
|
-
readonly "@stylistic/template-tag-spacing": readonly ["warn"];
|
|
200
|
-
readonly "@stylistic/type-annotation-spacing": readonly ["warn"];
|
|
201
|
-
readonly "@stylistic/type-generic-spacing": readonly ["warn"];
|
|
202
|
-
readonly "@stylistic/type-named-tuple-spacing": readonly ["warn"];
|
|
203
|
-
readonly "@stylistic/wrap-iife": readonly ["warn", "inside"];
|
|
204
|
-
readonly "@stylistic/wrap-regex": readonly ["warn"];
|
|
205
|
-
readonly "@stylistic/yield-star-spacing": readonly ["warn", "after"];
|
|
206
|
-
};
|
|
207
|
-
export default _default;
|
|
208
|
-
//# sourceMappingURL=stylistic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAohBW"}
|
package/dist/rules/stylistic.js
DELETED
|
@@ -1,439 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
// https://eslint.style/rules/default/array-bracket-newline
|
|
3
|
-
// Enforce linebreaks after opening and before closing array brackets
|
|
4
|
-
"@stylistic/array-bracket-newline": ["warn"],
|
|
5
|
-
// https://eslint.style/rules/default/array-bracket-spacing
|
|
6
|
-
// Enforce consistent spacing inside array brackets
|
|
7
|
-
"@stylistic/array-bracket-spacing": ["warn"],
|
|
8
|
-
// https://eslint.style/rules/default/array-element-newline
|
|
9
|
-
// Enforce line breaks after each array element
|
|
10
|
-
"@stylistic/array-element-newline": ["warn", "consistent"],
|
|
11
|
-
// https://eslint.style/rules/default/arrow-parens
|
|
12
|
-
// Require parentheses around arrow function arguments
|
|
13
|
-
"@stylistic/arrow-parens": ["warn", "always"],
|
|
14
|
-
// https://eslint.style/rules/default/arrow-spacing
|
|
15
|
-
// Enforce consistent spacing before and after the arrow in arrow functions
|
|
16
|
-
"@stylistic/arrow-spacing": ["warn"],
|
|
17
|
-
// https://eslint.style/rules/default/block-spacing
|
|
18
|
-
// Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
19
|
-
"@stylistic/block-spacing": ["warn"],
|
|
20
|
-
// https://eslint.style/rules/default/brace-style
|
|
21
|
-
// Enforce consistent brace style for blocks
|
|
22
|
-
"@stylistic/brace-style": ["warn", "1tbs"],
|
|
23
|
-
// https://eslint.style/rules/default/comma-dangle
|
|
24
|
-
// Require or disallow trailing commas
|
|
25
|
-
"@stylistic/comma-dangle": ["warn"],
|
|
26
|
-
// https://eslint.style/rules/default/comma-spacing
|
|
27
|
-
// Enforce consistent spacing before and after commas
|
|
28
|
-
"@stylistic/comma-spacing": ["warn"],
|
|
29
|
-
// https://eslint.style/rules/default/comma-style
|
|
30
|
-
// Enforce consistent comma style
|
|
31
|
-
"@stylistic/comma-style": ["warn"],
|
|
32
|
-
// https://eslint.style/rules/default/computed-property-spacing
|
|
33
|
-
// Enforce consistent spacing inside computed property brackets
|
|
34
|
-
"@stylistic/computed-property-spacing": ["warn"],
|
|
35
|
-
// https://eslint.style/rules/default/curly-newline
|
|
36
|
-
// Enforce consistent line breaks after opening and before closing braces
|
|
37
|
-
"@stylistic/curly-newline": ["warn", "always"],
|
|
38
|
-
// https://eslint.style/rules/default/dot-location
|
|
39
|
-
// Enforce consistent newlines before and after dots
|
|
40
|
-
"@stylistic/dot-location": ["warn", "property"],
|
|
41
|
-
// https://eslint.style/rules/default/eol-last
|
|
42
|
-
// Require or disallow newline at the end of files
|
|
43
|
-
"@stylistic/eol-last": ["warn"],
|
|
44
|
-
// https://eslint.style/rules/default/function-call-spacing
|
|
45
|
-
// Require or disallow spacing between function identifiers and their invocations. Alias of `function-call-spacing`.
|
|
46
|
-
"@stylistic/function-call-spacing": ["warn"],
|
|
47
|
-
// https://eslint.style/rules/default/function-call-argument-newline
|
|
48
|
-
// Enforce line breaks between arguments of a function call
|
|
49
|
-
"@stylistic/function-call-argument-newline": ["warn", "consistent"],
|
|
50
|
-
// https://eslint.style/rules/default/function-paren-newline
|
|
51
|
-
// Enforce consistent line breaks inside function parentheses
|
|
52
|
-
"@stylistic/function-paren-newline": ["warn", "consistent"],
|
|
53
|
-
// https://eslint.style/rules/default/generator-star-spacing
|
|
54
|
-
// Enforce consistent spacing around `*` operators in generator functions
|
|
55
|
-
"@stylistic/generator-star-spacing": ["warn"],
|
|
56
|
-
// https://eslint.style/rules/default/implicit-arrow-linebreak
|
|
57
|
-
// Enforce the location of arrow function bodies
|
|
58
|
-
"@stylistic/implicit-arrow-linebreak": ["warn"],
|
|
59
|
-
// https://eslint.style/rules/default/indent
|
|
60
|
-
// Enforce consistent indentation
|
|
61
|
-
"@stylistic/indent": ["warn", 2],
|
|
62
|
-
// https://eslint.style/rules/default/indent-binary-ops
|
|
63
|
-
// Indentation for binary operators
|
|
64
|
-
"@stylistic/indent-binary-ops": ["warn", 2],
|
|
65
|
-
// https://eslint.style/rules/default/jsx-child-element-spacing
|
|
66
|
-
// Enforce or disallow spaces inside curly braces in JSX attributes and expressions
|
|
67
|
-
"@stylistic/jsx-child-element-spacing": ["error"],
|
|
68
|
-
// https://eslint.style/rules/default/jsx-closing-bracket-location
|
|
69
|
-
// Enforce closing bracket location in JSX
|
|
70
|
-
"@stylistic/jsx-closing-bracket-location": ["warn"],
|
|
71
|
-
// https://eslint.style/rules/default/jsx-closing-tag-location
|
|
72
|
-
// Enforce closing tag location for multiline JSX
|
|
73
|
-
"@stylistic/jsx-closing-tag-location": ["warn"],
|
|
74
|
-
// https://eslint.style/rules/default/jsx-curly-brace-presence
|
|
75
|
-
// Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
76
|
-
"@stylistic/jsx-curly-brace-presence": ["warn"],
|
|
77
|
-
// https://eslint.style/rules/default/jsx-curly-newline
|
|
78
|
-
// Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
79
|
-
"@stylistic/jsx-curly-newline": ["warn"],
|
|
80
|
-
// https://eslint.style/rules/default/jsx-curly-spacing
|
|
81
|
-
// Enforce or disallow spaces inside curly braces in JSX attributes and expressions
|
|
82
|
-
"@stylistic/jsx-curly-spacing": ["warn"],
|
|
83
|
-
// https://eslint.style/rules/default/jsx-equals-spacing
|
|
84
|
-
// Enforce or disallow spaces around equal signs in JSX attributes
|
|
85
|
-
"@stylistic/jsx-equals-spacing": ["warn"],
|
|
86
|
-
// https://eslint.style/rules/default/jsx-first-prop-new-line
|
|
87
|
-
// Enforce proper position of the first property in JSX
|
|
88
|
-
"@stylistic/jsx-first-prop-new-line": ["warn"],
|
|
89
|
-
// https://eslint.style/rules/default/jsx-function-call-newline
|
|
90
|
-
// Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
91
|
-
"@stylistic/jsx-function-call-newline": ["warn"],
|
|
92
|
-
// https://eslint.style/rules/default/jsx-indent
|
|
93
|
-
// Enforce JSX indentation
|
|
94
|
-
"@stylistic/jsx-indent": ["warn", 2, { checkAttributes: true, indentLogicalExpressions: true }],
|
|
95
|
-
// https://eslint.style/rules/default/jsx-indent-props
|
|
96
|
-
// Enforce props indentation in JSX
|
|
97
|
-
"@stylistic/jsx-indent-props": ["warn", 2],
|
|
98
|
-
// https://eslint.style/rules/default/jsx-max-props-per-line
|
|
99
|
-
// Enforce maximum of props on a single line in JSX
|
|
100
|
-
"@stylistic/jsx/jsx-max-props-per-line": ["off"],
|
|
101
|
-
// https://eslint.style/rules/default/jsx-newline
|
|
102
|
-
// Require or prevent a new line after jsx elements and expressions.
|
|
103
|
-
"@stylistic/jsx-newline": ["off"],
|
|
104
|
-
// https://eslint.style/rules/default/jsx-one-expression-per-line
|
|
105
|
-
// Require one JSX element per line
|
|
106
|
-
"@stylistic/jsx-one-expression-per-line": ["warn", { allow: "single-child" }],
|
|
107
|
-
// https://eslint.style/rules/default/jsx-pascal-case
|
|
108
|
-
// Enforce PascalCase for user-defined JSX components
|
|
109
|
-
"@stylistic/jsx-pascal-case": ["error"],
|
|
110
|
-
// https://eslint.style/rules/default/jsx-props-no-multi-spaces
|
|
111
|
-
// Disallow multiple spaces between inline JSX props
|
|
112
|
-
"@stylistic/jsx-props-no-multi-spaces": ["warn"],
|
|
113
|
-
// https://eslint.style/rules/default/jsx-quotes
|
|
114
|
-
// Enforce the consistent use of either double or single quotes in JSX attributes
|
|
115
|
-
"@stylistic/jsx-quotes": ["warn"],
|
|
116
|
-
// https://eslint.style/rules/default/jsx-self-closing-comp
|
|
117
|
-
// Disallow extra closing tags for components without children
|
|
118
|
-
"@stylistic/jsx-self-closing-comp": ["warn"],
|
|
119
|
-
// https://eslint.style/rules/default/jsx-sort-props
|
|
120
|
-
// Enforce props alphabetical sorting
|
|
121
|
-
"@stylistic/jsx-sort-props": [
|
|
122
|
-
"warn",
|
|
123
|
-
{
|
|
124
|
-
callbacksLast: true,
|
|
125
|
-
shorthandFirst: true,
|
|
126
|
-
// shorthandLast: false,
|
|
127
|
-
multiline: "last",
|
|
128
|
-
// ignoreCase: false,
|
|
129
|
-
noSortAlphabetically: true
|
|
130
|
-
// reservedFirst: true
|
|
131
|
-
// locale: "auto"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
// https://eslint.style/rules/default/jsx-tag-spacing
|
|
135
|
-
// Enforce whitespace in and around the JSX opening and closing brackets
|
|
136
|
-
"@stylistic/jsx-tag-spacing": [
|
|
137
|
-
"warn",
|
|
138
|
-
{
|
|
139
|
-
closingSlash: "never",
|
|
140
|
-
beforeSelfClosing: "always",
|
|
141
|
-
afterOpening: "never",
|
|
142
|
-
beforeClosing: "never"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
// https://eslint.style/rules/default/jsx-wrap-multilines
|
|
146
|
-
// Disallow missing parentheses around multiline JSX
|
|
147
|
-
"@stylistic/jsx-wrap-multilines": [
|
|
148
|
-
"warn",
|
|
149
|
-
{
|
|
150
|
-
declaration: "parens-new-line",
|
|
151
|
-
assignment: "parens-new-line",
|
|
152
|
-
return: "parens-new-line",
|
|
153
|
-
arrow: "parens-new-line",
|
|
154
|
-
condition: "parens-new-line",
|
|
155
|
-
logical: "parens-new-line",
|
|
156
|
-
prop: "parens-new-line"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
// https://eslint.style/rules/default/key-spacing
|
|
160
|
-
// Enforce consistent spacing between keys and values in object literal properties
|
|
161
|
-
"@stylistic/key-spacing": "warn",
|
|
162
|
-
// https://eslint.style/rules/default/keyword-spacing
|
|
163
|
-
// Enforce consistent spacing before and after keywords
|
|
164
|
-
"@stylistic/keyword-spacing": "warn",
|
|
165
|
-
// https://eslint.style/rules/default/line-comment-position
|
|
166
|
-
// Enforce position of line comments
|
|
167
|
-
"@stylistic/line-comment-position": "warn",
|
|
168
|
-
// https://eslint.style/rules/default/linebreak-style
|
|
169
|
-
// Enforce consistent linebreak style
|
|
170
|
-
"@stylistic/linebreak-style": "warn",
|
|
171
|
-
// https://eslint.style/rules/default/lines-around-comment
|
|
172
|
-
// Require empty lines around comments
|
|
173
|
-
"@stylistic/lines-around-comment": [
|
|
174
|
-
"warn",
|
|
175
|
-
{
|
|
176
|
-
beforeBlockComment: true,
|
|
177
|
-
afterBlockComment: false,
|
|
178
|
-
beforeLineComment: true,
|
|
179
|
-
afterLineComment: false,
|
|
180
|
-
allowBlockStart: true,
|
|
181
|
-
allowBlockEnd: true,
|
|
182
|
-
allowObjectStart: true,
|
|
183
|
-
allowObjectEnd: true,
|
|
184
|
-
allowArrayStart: true,
|
|
185
|
-
allowArrayEnd: true,
|
|
186
|
-
allowClassStart: true,
|
|
187
|
-
allowClassEnd: true,
|
|
188
|
-
afterHashbangComment: true
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
// https://eslint.style/rules/default/lines-between-class-members
|
|
192
|
-
// Require or disallow an empty line between class members
|
|
193
|
-
"@stylistic/lines-between-class-members": [
|
|
194
|
-
"warn",
|
|
195
|
-
{
|
|
196
|
-
enforce: [
|
|
197
|
-
{
|
|
198
|
-
blankLine: "never",
|
|
199
|
-
prev: "field",
|
|
200
|
-
next: "field"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
blankLine: "always",
|
|
204
|
-
prev: "*",
|
|
205
|
-
next: "method"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
blankLine: "always",
|
|
209
|
-
prev: "method",
|
|
210
|
-
next: "*"
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
// https://eslint.style/rules/default/max-len
|
|
216
|
-
// Enforce a maximum line length
|
|
217
|
-
"@stylistic/max-len": [
|
|
218
|
-
"error",
|
|
219
|
-
{
|
|
220
|
-
code: 120,
|
|
221
|
-
tabWidth: 2,
|
|
222
|
-
comments: 120,
|
|
223
|
-
// ignorePattern: true,
|
|
224
|
-
ignoreComments: true,
|
|
225
|
-
ignoreTrailingComments: true,
|
|
226
|
-
ignoreUrls: true,
|
|
227
|
-
ignoreStrings: true,
|
|
228
|
-
ignoreTemplateLiterals: true,
|
|
229
|
-
ignoreRegExpLiterals: true
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
// https://eslint.style/rules/default/max-statements-per-line
|
|
233
|
-
// Enforce a maximum number of statements allowed per line
|
|
234
|
-
"@stylistic/max-statements-per-line": ["error"],
|
|
235
|
-
// https://eslint.style/rules/default/member-delimiter-style
|
|
236
|
-
// Require a specific member delimiter style for interfaces and type literals
|
|
237
|
-
"@stylistic/member-delimiter-style": ["warn"],
|
|
238
|
-
// https://eslint.style/rules/default/multiline-comment-style
|
|
239
|
-
// Enforce a particular style for multiline comments
|
|
240
|
-
"@stylistic/multiline-comment-style": ["off"],
|
|
241
|
-
// https://eslint.style/rules/default/multiline-ternary
|
|
242
|
-
// Enforce newlines between operands of ternary expressions
|
|
243
|
-
"@stylistic/multiline-ternary": ["warn", "always-multiline"],
|
|
244
|
-
// https://eslint.style/rules/default/new-parens
|
|
245
|
-
// Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
246
|
-
"@stylistic/new-parens": ["warn"],
|
|
247
|
-
// https://eslint.style/rules/default/newline-per-chained-call
|
|
248
|
-
// Require a newline after each call in a method chain
|
|
249
|
-
"@stylistic/newline-per-chained-call": ["warn"],
|
|
250
|
-
// https://eslint.style/rules/default/no-confusing-arrow
|
|
251
|
-
// Disallow arrow functions where they could be confused with comparisons
|
|
252
|
-
"@stylistic/no-confusing-arrow": ["warn"],
|
|
253
|
-
// https://eslint.style/rules/default/no-extra-parens
|
|
254
|
-
// Disallow unnecessary parentheses
|
|
255
|
-
"@stylistic/no-extra-parens": ["warn"],
|
|
256
|
-
// https://eslint.style/rules/default/no-extra-semi
|
|
257
|
-
// Disallow unnecessary semicolons
|
|
258
|
-
"@stylistic/no-extra-semi": ["warn"],
|
|
259
|
-
// https://eslint.style/rules/default/no-floating-decimal
|
|
260
|
-
// Disallow leading or trailing decimal points in numeric literals
|
|
261
|
-
"@stylistic/no-floating-decimal": ["warn"],
|
|
262
|
-
// https://eslint.style/rules/default/no-mixed-operators
|
|
263
|
-
// Disallow mixed binary operators
|
|
264
|
-
"@stylistic/no-mixed-operators": ["error"],
|
|
265
|
-
// https://eslint.style/rules/default/no-mixed-spaces-and-tabs
|
|
266
|
-
// Disallow mixed spaces and tabs for indentation
|
|
267
|
-
"@stylistic/no-mixed-spaces-and-tabs": ["error"],
|
|
268
|
-
// https://eslint.style/rules/default/no-multi-spaces
|
|
269
|
-
// Disallow multiple spaces
|
|
270
|
-
"@stylistic/no-multi-spaces": ["warn"],
|
|
271
|
-
// https://eslint.style/rules/default/no-multiple-empty-lines
|
|
272
|
-
// Disallow multiple empty lines
|
|
273
|
-
"@stylistic/no-multiple-empty-lines": ["warn"],
|
|
274
|
-
// https://eslint.style/rules/default/no-tabs
|
|
275
|
-
// Disallow all tabs
|
|
276
|
-
"@stylistic/no-tabs": ["error"],
|
|
277
|
-
// https://eslint.style/rules/default/no-trailing-spaces
|
|
278
|
-
// Disallow trailing whitespace at the end of lines
|
|
279
|
-
"@stylistic/no-trailing-spaces": ["warn"],
|
|
280
|
-
// https://eslint.style/rules/default/no-whitespace-before-property
|
|
281
|
-
// Disallow whitespace before properties
|
|
282
|
-
"@stylistic/no-whitespace-before-property": ["warn"],
|
|
283
|
-
// https://eslint.style/rules/default/nonblock-statement-body-position
|
|
284
|
-
// Enforce the location of single-line statements
|
|
285
|
-
"@stylistic/nonblock-statement-body-position": ["warn"],
|
|
286
|
-
// https://eslint.style/rules/default/object-curly-newline
|
|
287
|
-
// Enforce consistent line breaks after opening and before closing braces
|
|
288
|
-
"@stylistic/object-curly-newline": [
|
|
289
|
-
"warn",
|
|
290
|
-
{
|
|
291
|
-
consistent: true
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
// https://eslint.style/rules/default/object-curly-spacing
|
|
295
|
-
// Enforce consistent spacing inside braces
|
|
296
|
-
"@stylistic/object-curly-spacing": ["warn"],
|
|
297
|
-
// https://eslint.style/rules/default/object-property-newline
|
|
298
|
-
// Enforce placing object properties on separate lines
|
|
299
|
-
"@stylistic/object-property-newline": [
|
|
300
|
-
"warn",
|
|
301
|
-
{
|
|
302
|
-
allowAllPropertiesOnSameLine: true
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
// https://eslint.style/rules/default/one-var-declaration-per-line
|
|
306
|
-
// Require or disallow newlines around variable declarations
|
|
307
|
-
"@stylistic/one-var-declaration-per-line": ["warn"],
|
|
308
|
-
// https://eslint.style/rules/default/operator-linebreak
|
|
309
|
-
// Enforce consistent linebreak style for operators
|
|
310
|
-
"@stylistic/operator-linebreak": ["warn"],
|
|
311
|
-
// https://eslint.style/rules/default/padded-blocks
|
|
312
|
-
// Require or disallow padding within blocks
|
|
313
|
-
"@stylistic/padded-blocks": ["warn", "never"],
|
|
314
|
-
// https://eslint.style/rules/default/padding-line-between-statements
|
|
315
|
-
// Require or disallow padding lines between statements
|
|
316
|
-
"@stylistic/padding-line-between-statements": [
|
|
317
|
-
"warn",
|
|
318
|
-
{
|
|
319
|
-
blankLine: "always",
|
|
320
|
-
prev: "*",
|
|
321
|
-
next: "return"
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
blankLine: "always",
|
|
325
|
-
prev: "*",
|
|
326
|
-
next: "block-like"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
blankLine: "always",
|
|
330
|
-
prev: "block-like",
|
|
331
|
-
next: "*"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
blankLine: "always",
|
|
335
|
-
prev: "case",
|
|
336
|
-
next: "case"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
blankLine: "never",
|
|
340
|
-
prev: "*",
|
|
341
|
-
next: "break"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
blankLine: "always",
|
|
345
|
-
prev: "*",
|
|
346
|
-
next: "export"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
blankLine: "always",
|
|
350
|
-
prev: "*",
|
|
351
|
-
next: "interface"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
blankLine: "always",
|
|
355
|
-
prev: "interface",
|
|
356
|
-
next: "*"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
blankLine: "always",
|
|
360
|
-
prev: "*",
|
|
361
|
-
next: "class"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
blankLine: "always",
|
|
365
|
-
prev: "class",
|
|
366
|
-
next: "*"
|
|
367
|
-
}
|
|
368
|
-
],
|
|
369
|
-
// https://eslint.style/rules/default/quote-props
|
|
370
|
-
// Require quotes around object literal property names
|
|
371
|
-
"@stylistic/quote-props": ["warn", "as-needed"],
|
|
372
|
-
// https://eslint.style/rules/default/quotes
|
|
373
|
-
// Enforce the consistent use of either backticks, double, or single quotes
|
|
374
|
-
"@stylistic/quotes": ["warn"],
|
|
375
|
-
// https://eslint.style/rules/default/rest-spread-spacing
|
|
376
|
-
// Enforce spacing between rest and spread operators and their expressions
|
|
377
|
-
"@stylistic/rest-spread-spacing": ["warn"],
|
|
378
|
-
// https://eslint.style/rules/default/semi
|
|
379
|
-
// Require or disallow semicolons instead of ASI
|
|
380
|
-
"@stylistic/semi": ["warn"],
|
|
381
|
-
// https://eslint.style/rules/default/semi-spacing
|
|
382
|
-
// Enforce consistent spacing before and after semicolons
|
|
383
|
-
"@stylistic/semi-spacing": ["warn"],
|
|
384
|
-
// https://eslint.style/rules/default/semi-style
|
|
385
|
-
// Enforce location of semicolons
|
|
386
|
-
"@stylistic/semi-style": ["warn"],
|
|
387
|
-
// https://eslint.style/rules/default/space-before-blocks
|
|
388
|
-
// Enforce consistent spacing before blocks
|
|
389
|
-
"@stylistic/space-before-blocks": ["warn"],
|
|
390
|
-
// https://eslint.style/rules/default/space-before-function-paren
|
|
391
|
-
// Enforce consistent spacing before `function` definition opening parenthesis
|
|
392
|
-
"@stylistic/space-before-function-paren": [
|
|
393
|
-
"warn",
|
|
394
|
-
{
|
|
395
|
-
anonymous: "always",
|
|
396
|
-
named: "never",
|
|
397
|
-
asyncArrow: "always"
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
|
-
// https://eslint.style/rules/default/space-in-parens
|
|
401
|
-
// Enforce consistent spacing inside parentheses
|
|
402
|
-
"@stylistic/space-in-parens": ["warn"],
|
|
403
|
-
// https://eslint.style/rules/default/space-infix-ops
|
|
404
|
-
// Require spacing around infix operators
|
|
405
|
-
"@stylistic/space-infix-ops": ["warn"],
|
|
406
|
-
// https://eslint.style/rules/default/space-unary-ops
|
|
407
|
-
// Enforce consistent spacing before or after unary operators
|
|
408
|
-
"@stylistic/space-unary-ops": ["warn"],
|
|
409
|
-
// https://eslint.style/rules/default/spaced-comment
|
|
410
|
-
// Enforce consistent spacing after the `//` or `/*` in a comment
|
|
411
|
-
"@stylistic/spaced-comment": ["warn"],
|
|
412
|
-
// https://eslint.style/rules/default/switch-colon-spacing
|
|
413
|
-
// Enforce spacing around colons of switch statements
|
|
414
|
-
"@stylistic/switch-colon-spacing": ["warn"],
|
|
415
|
-
// https://eslint.style/rules/default/template-curly-spacing
|
|
416
|
-
// Require or disallow spacing around embedded expressions of template strings
|
|
417
|
-
"@stylistic/template-curly-spacing": ["warn"],
|
|
418
|
-
// https://eslint.style/rules/default/template-tag-spacing
|
|
419
|
-
// Require or disallow spacing between template tags and their literals
|
|
420
|
-
"@stylistic/template-tag-spacing": ["warn"],
|
|
421
|
-
// https://eslint.style/rules/default/type-annotation-spacing
|
|
422
|
-
// Require consistent spacing around type annotations
|
|
423
|
-
"@stylistic/type-annotation-spacing": ["warn"],
|
|
424
|
-
// https://eslint.style/rules/default/type-generic-spacing
|
|
425
|
-
// Enforces consistent spacing inside TypeScript type generics
|
|
426
|
-
"@stylistic/type-generic-spacing": ["warn"],
|
|
427
|
-
// https://eslint.style/rules/default/type-named-tuple-spacing
|
|
428
|
-
// Expect space before the type declaration in the named tuple
|
|
429
|
-
"@stylistic/type-named-tuple-spacing": ["warn"],
|
|
430
|
-
// https://eslint.style/rules/default/wrap-iife
|
|
431
|
-
// Require parentheses around immediate `function` invocations
|
|
432
|
-
"@stylistic/wrap-iife": ["warn", "inside"],
|
|
433
|
-
// https://eslint.style/rules/default/wrap-regex
|
|
434
|
-
// Require parenthesis around regex literals
|
|
435
|
-
"@stylistic/wrap-regex": ["warn"],
|
|
436
|
-
// https://eslint.style/rules/default/yield-star-spacing
|
|
437
|
-
// Require or disallow spacing around the `*` in `yield*` expressions
|
|
438
|
-
"@stylistic/yield-star-spacing": ["warn", "after"]
|
|
439
|
-
};
|