@darksheep/eslint 5.2.1 → 5.3.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +8 -6
  3. package/src/configs/eslint-base.js +103 -103
  4. package/src/configs/eslint-complexity.js +24 -24
  5. package/src/configs/eslint-ignores.js +32 -32
  6. package/src/configs/eslint-recommended.js +4 -4
  7. package/src/configs/eslint-style.js +12 -12
  8. package/src/custom/index.js +5 -5
  9. package/src/custom/instance-of-array.js +44 -44
  10. package/src/custom/loose-types.js +128 -128
  11. package/src/custom/no-useless-expression.js +19 -19
  12. package/src/custom/sequence-expression.js +15 -15
  13. package/src/index.js +39 -37
  14. package/src/plugins/eslint-comments.js +19 -19
  15. package/src/plugins/jsdoc.js +57 -57
  16. package/src/plugins/json.js +43 -27
  17. package/src/plugins/node.js +108 -108
  18. package/src/plugins/package-json.js +25 -25
  19. package/src/plugins/perfectionist.js +200 -200
  20. package/src/plugins/promise.js +9 -9
  21. package/src/plugins/react.js +111 -111
  22. package/src/plugins/regexp.js +6 -6
  23. package/src/plugins/sca.js +32 -32
  24. package/src/plugins/security.js +14 -14
  25. package/src/plugins/sonarjs.js +11 -20
  26. package/src/plugins/style.js +236 -236
  27. package/src/plugins/typescript.js +65 -65
  28. package/src/plugins/unicorn.js +40 -40
  29. package/src/plugins/unused-imports.js +25 -25
  30. package/src/plugins/yml.js +41 -0
  31. package/src/types.d.ts +80 -80
  32. package/src/utilities/editorconfig.js +151 -141
  33. package/src/utilities/eslint-files.js +20 -20
  34. package/src/utilities/expand-glob.js +34 -34
  35. package/src/utilities/filesystem.js +30 -30
  36. package/src/utilities/make-compat.js +6 -6
  37. package/src/utilities/package.js +29 -29
  38. package/types/src/plugins/yml.d.ts +5 -0
  39. package/types/src/utilities/editorconfig.d.ts +7 -0
@@ -6,245 +6,245 @@ import stylistic from '@stylistic/eslint-plugin';
6
6
  * @returns {import('eslint').Linter.FlatConfig[]}
7
7
  */
8
8
  export function createEslintStyleConfig() {
9
- return [ {
10
- name: 'stylistic/custom',
11
- plugins: { style: stylistic },
12
- rules: {
13
- // Require or disallow newline at the end of files
14
- // 'style/eol-last': [ 'error' ],
15
- // Enforce consistent indentation
16
- // 'style/indent': [ 'error' ],
17
- // Indentation for binary operators
18
- // 'style/indent-binary-ops': [ 'error' ],
19
- // Enforce consistent linebreak style
20
- // 'style/linebreak-style': [ 'error' ],
21
- // Disallow trailing whitespace at the end of lines
22
- // 'style/no-trailing-spaces': [ 'error' ],
23
- // Enforce JSX indentation
24
- // 'style/jsx-indent': [ 'off' ],
9
+ return [ {
10
+ name: 'stylistic/custom',
11
+ plugins: { style: stylistic },
12
+ rules: {
13
+ // Require or disallow newline at the end of files
14
+ // 'style/eol-last': [ 'error' ],
15
+ // Enforce consistent indentation
16
+ // 'style/indent': [ 'error' ],
17
+ // Indentation for binary operators
18
+ // 'style/indent-binary-ops': [ 'error' ],
19
+ // Enforce consistent linebreak style
20
+ // 'style/linebreak-style': [ 'error' ],
21
+ // Disallow trailing whitespace at the end of lines
22
+ // 'style/no-trailing-spaces': [ 'error' ],
23
+ // Enforce JSX indentation
24
+ // 'style/jsx-indent': [ 'off' ],
25
25
 
26
- // Enforce linebreaks after opening and before closing array brackets
27
- 'style/array-bracket-newline': [ 'error', 'consistent' ],
28
- // Enforce consistent spacing inside array brackets
29
- 'style/array-bracket-spacing': [ 'error', 'always' ],
30
- // Enforce line breaks after each array element
31
- 'style/array-element-newline': [ 'error', 'consistent' ],
32
- // Require parentheses around arrow function arguments
33
- 'style/arrow-parens': [ 'error', 'always' ],
34
- // Enforce consistent spacing before and after the arrow in arrow functions
35
- 'style/arrow-spacing': [ 'error' ],
36
- // Disallow or enforce spaces inside of blocks after opening block and before closing block
37
- 'style/block-spacing': [ 'error' ],
38
- // Enforce consistent brace style for blocks
39
- 'style/brace-style': [ 'error', '1tbs' ],
40
- // Require or disallow trailing commas
41
- 'style/comma-dangle': [ 'error', 'always-multiline' ],
42
- // Enforce consistent spacing before and after commas
43
- 'style/comma-spacing': [ 'error', { before: false, after: true } ],
44
- // Enforce consistent comma style
45
- 'style/comma-style': [ 'error', 'last' ],
46
- // Enforce consistent spacing inside computed property brackets
47
- 'style/computed-property-spacing': [ 'error', 'never' ],
48
- // Enforce consistent newlines before and after dots
49
- 'style/dot-location': [ 'error', 'property' ],
50
- // Require or disallow spacing between function identifiers and their invocations. Alias of `function-call-spacing`.
51
- 'style/func-call-spacing': [ 'error', 'never' ],
52
- // Enforce line breaks between arguments of a function call
53
- 'style/function-call-argument-newline': [ 'error', 'consistent' ],
54
- // Require or disallow spacing between function identifiers and their invocations
55
- 'style/function-call-spacing': [ 'error' ],
56
- // Enforce consistent line breaks inside function parentheses
57
- 'style/function-paren-newline': [ 'error', 'consistent' ],
58
- // Enforce consistent spacing around `*` operators in generator functions
59
- 'style/generator-star-spacing': [ 'error', 'both' ],
60
- // Enforce the location of arrow function bodies
61
- 'style/implicit-arrow-linebreak': [ 'error', 'beside' ],
62
- // Enforce the consistent use of either double or single quotes in JSX attributes
63
- 'style/jsx-quotes': [ 'error' ],
64
- // Enforce consistent spacing between keys and values in object literal properties
65
- 'style/key-spacing': [ 'error', { beforeColon: false, afterColon: true } ],
66
- // Enforce consistent spacing before and after keywords
67
- 'style/keyword-spacing': [ 'error', { before: true, after: true } ],
68
- // Require empty lines around comments
69
- 'style/lines-around-comment': [ 'off' ],
70
- // Require or disallow an empty line between class members
71
- 'style/lines-between-class-members': [
72
- 'error',
73
- 'always',
74
- { exceptAfterSingleLine: true },
75
- ],
76
- // Enforce a maximum line length
77
- 'style/max-len': [ 'off' ],
78
- // 'warn',
79
- // {
80
- // code: 100,
81
- // ignoreComments: true,
82
- // ignoreRegExpLiterals: true,
83
- // ignoreStrings: true,
84
- // ignoreTemplateLiterals: true,
85
- // ignoreUrls: true,
86
- // },
87
- // ]
88
- // Enforce a maximum number of statements allowed per line
89
- 'style/max-statements-per-line': [ 'error' ],
90
- // Enforce newlines between operands of ternary expressions
91
- 'style/multiline-ternary': [ 'error', 'always-multiline' ],
92
- // Enforce or disallow parentheses when invoking a constructor with no arguments
93
- 'style/new-parens': [ 'error' ],
94
- // Require a newline after each call in a method chain
95
- 'style/newline-per-chained-call': [ 'error' ],
96
- // Disallow arrow functions where they could be confused with comparisons
97
- 'style/no-confusing-arrow': [ 'warn', { allowParens: true } ],
98
- // Disallow unnecessary parentheses
99
- 'style/no-extra-parens': [ 'off' ],
100
- // Disallow unnecessary semicolons
101
- 'style/no-extra-semi': [ 'error' ],
102
- // Disallow leading or trailing decimal points in numeric literals
103
- 'style/no-floating-decimal': [ 'error' ],
104
- // Disallow mixed binary operators
105
- 'style/no-mixed-operators': [ 'error' ],
106
- // Disallow mixed spaces and tabs for indentation
107
- 'style/no-mixed-spaces-and-tabs': [ 'error' ],
108
- // Disallow multiple spaces
109
- 'style/no-multi-spaces': [ 'error' ],
110
- // Disallow multiple empty lines
111
- 'style/no-multiple-empty-lines': [
112
- 'error',
113
- {
114
- max: 1,
115
- maxBOF: 1,
116
- maxEOF: 1,
117
- },
118
- ],
119
- // Disallow all tabs
120
- 'style/no-tabs': [ 'error' ],
121
- // Disallow whitespace before properties
122
- 'style/no-whitespace-before-property': [ 'error' ],
123
- // Enforce the location of single-line statements
124
- 'style/nonblock-statement-body-position': [ 'error' ],
125
- // Enforce consistent line breaks after opening and before closing braces
126
- 'style/object-curly-newline': [ 'error', { consistent: true } ],
127
- // Enforce consistent spacing inside braces
128
- 'style/object-curly-spacing': [ 'error', 'always' ],
129
- // Enforce placing object properties on separate lines
130
- 'style/object-property-newline': [ 'error', { allowAllPropertiesOnSameLine: true } ],
131
- // Require or disallow newlines around variable declarations
132
- 'style/one-var-declaration-per-line': [ 'error', 'initializations' ],
133
- // Enforce consistent linebreak style for operators
134
- 'style/operator-linebreak': [
135
- 'error',
136
- 'after',
137
- {
138
- overrides: {
139
- '?': 'before',
140
- ':': 'before',
141
- },
142
- },
143
- ],
144
- // Require or disallow padding within blocks
145
- 'style/padded-blocks': [ 'error', 'never' ],
146
- // Require or disallow padding lines between statements
147
- 'style/padding-line-between-statements': [ 'off' ],
148
- // Require quotes around object literal property names
149
- 'style/quote-props': [ 'error', 'consistent-as-needed' ],
150
- // Enforce the consistent use of either backticks, double, or single quotes
151
- 'style/quotes': [
152
- 'error',
153
- 'single',
154
- {
155
- allowTemplateLiterals: true,
156
- avoidEscape: true,
157
- },
158
- ],
159
- // Enforce spacing between rest and spread operators and their expressions
160
- 'style/rest-spread-spacing': [ 'error', 'never' ],
161
- // Require or disallow semicolons instead of ASI
162
- 'style/semi': [ 'error', 'always' ],
163
- // Enforce consistent spacing before and after semicolons
164
- 'style/semi-spacing': [ 'error' ],
165
- // Enforce location of semicolons
166
- 'style/semi-style': [ 'error', 'last' ],
167
- // Enforce consistent spacing before blocks
168
- 'style/space-before-blocks': [ 'error' ],
169
- // Enforce consistent spacing before `function` definition opening parenthesis
170
- 'style/space-before-function-paren': [
171
- 'error',
172
- {
173
- anonymous: 'always',
174
- named: 'never',
175
- asyncArrow: 'always',
176
- },
177
- ],
178
- // Enforce consistent spacing inside parentheses
179
- 'style/space-in-parens': [ 'error', 'never' ],
180
- // Require spacing around infix operators
181
- 'style/space-infix-ops': [ 'error' ],
182
- // Enforce consistent spacing before or after unary operators
183
- 'style/space-unary-ops': [ 'error' ],
184
- // Enforce consistent spacing after the `//` or `/*` in a comment
185
- 'style/spaced-comment': [ 'error', 'always', { markers: [ '?' ] } ],
186
- // Enforce spacing around colons of switch statements
187
- 'style/switch-colon-spacing': [ 'error' ],
188
- // Require or disallow spacing around embedded expressions of template strings
189
- 'style/template-curly-spacing': [ 'error' ],
190
- // Require or disallow spacing between template tags and their literals
191
- 'style/template-tag-spacing': [ 'error' ],
192
- // Require parentheses around immediate `function` invocations
193
- 'style/wrap-iife': [
194
- 'error',
195
- 'inside',
196
- { functionPrototypeMethods: true },
197
- ],
198
- // Require parenthesis around regex literals
199
- 'style/wrap-regex': [ 'error' ],
200
- // Require or disallow spacing around the `*` in `yield*` expressions
201
- 'style/yield-star-spacing': [ 'error', 'both' ],
26
+ // Enforce linebreaks after opening and before closing array brackets
27
+ 'style/array-bracket-newline': [ 'error', 'consistent' ],
28
+ // Enforce consistent spacing inside array brackets
29
+ 'style/array-bracket-spacing': [ 'error', 'always' ],
30
+ // Enforce line breaks after each array element
31
+ 'style/array-element-newline': [ 'error', 'consistent' ],
32
+ // Require parentheses around arrow function arguments
33
+ 'style/arrow-parens': [ 'error', 'always' ],
34
+ // Enforce consistent spacing before and after the arrow in arrow functions
35
+ 'style/arrow-spacing': [ 'error' ],
36
+ // Disallow or enforce spaces inside of blocks after opening block and before closing block
37
+ 'style/block-spacing': [ 'error' ],
38
+ // Enforce consistent brace style for blocks
39
+ 'style/brace-style': [ 'error', '1tbs' ],
40
+ // Require or disallow trailing commas
41
+ 'style/comma-dangle': [ 'error', 'always-multiline' ],
42
+ // Enforce consistent spacing before and after commas
43
+ 'style/comma-spacing': [ 'error', { before: false, after: true } ],
44
+ // Enforce consistent comma style
45
+ 'style/comma-style': [ 'error', 'last' ],
46
+ // Enforce consistent spacing inside computed property brackets
47
+ 'style/computed-property-spacing': [ 'error', 'never' ],
48
+ // Enforce consistent newlines before and after dots
49
+ 'style/dot-location': [ 'error', 'property' ],
50
+ // Require or disallow spacing between function identifiers and their invocations. Alias of `function-call-spacing`.
51
+ 'style/func-call-spacing': [ 'error', 'never' ],
52
+ // Enforce line breaks between arguments of a function call
53
+ 'style/function-call-argument-newline': [ 'error', 'consistent' ],
54
+ // Require or disallow spacing between function identifiers and their invocations
55
+ 'style/function-call-spacing': [ 'error' ],
56
+ // Enforce consistent line breaks inside function parentheses
57
+ 'style/function-paren-newline': [ 'error', 'consistent' ],
58
+ // Enforce consistent spacing around `*` operators in generator functions
59
+ 'style/generator-star-spacing': [ 'error', 'both' ],
60
+ // Enforce the location of arrow function bodies
61
+ 'style/implicit-arrow-linebreak': [ 'error', 'beside' ],
62
+ // Enforce the consistent use of either double or single quotes in JSX attributes
63
+ 'style/jsx-quotes': [ 'error' ],
64
+ // Enforce consistent spacing between keys and values in object literal properties
65
+ 'style/key-spacing': [ 'error', { beforeColon: false, afterColon: true } ],
66
+ // Enforce consistent spacing before and after keywords
67
+ 'style/keyword-spacing': [ 'error', { before: true, after: true } ],
68
+ // Require empty lines around comments
69
+ 'style/lines-around-comment': [ 'off' ],
70
+ // Require or disallow an empty line between class members
71
+ 'style/lines-between-class-members': [
72
+ 'error',
73
+ 'always',
74
+ { exceptAfterSingleLine: true },
75
+ ],
76
+ // Enforce a maximum line length
77
+ 'style/max-len': [ 'off' ],
78
+ // 'warn',
79
+ // {
80
+ // code: 100,
81
+ // ignoreComments: true,
82
+ // ignoreRegExpLiterals: true,
83
+ // ignoreStrings: true,
84
+ // ignoreTemplateLiterals: true,
85
+ // ignoreUrls: true,
86
+ // },
87
+ // ]
88
+ // Enforce a maximum number of statements allowed per line
89
+ 'style/max-statements-per-line': [ 'error' ],
90
+ // Enforce newlines between operands of ternary expressions
91
+ 'style/multiline-ternary': [ 'error', 'always-multiline' ],
92
+ // Enforce or disallow parentheses when invoking a constructor with no arguments
93
+ 'style/new-parens': [ 'error' ],
94
+ // Require a newline after each call in a method chain
95
+ 'style/newline-per-chained-call': [ 'error' ],
96
+ // Disallow arrow functions where they could be confused with comparisons
97
+ 'style/no-confusing-arrow': [ 'warn', { allowParens: true } ],
98
+ // Disallow unnecessary parentheses
99
+ 'style/no-extra-parens': [ 'off' ],
100
+ // Disallow unnecessary semicolons
101
+ 'style/no-extra-semi': [ 'error' ],
102
+ // Disallow leading or trailing decimal points in numeric literals
103
+ 'style/no-floating-decimal': [ 'error' ],
104
+ // Disallow mixed binary operators
105
+ 'style/no-mixed-operators': [ 'error' ],
106
+ // Disallow mixed spaces and tabs for indentation
107
+ 'style/no-mixed-spaces-and-tabs': [ 'error' ],
108
+ // Disallow multiple spaces
109
+ 'style/no-multi-spaces': [ 'error' ],
110
+ // Disallow multiple empty lines
111
+ 'style/no-multiple-empty-lines': [
112
+ 'error',
113
+ {
114
+ max: 1,
115
+ maxBOF: 1,
116
+ maxEOF: 1,
117
+ },
118
+ ],
119
+ // Disallow all tabs
120
+ 'style/no-tabs': [ 'error' ],
121
+ // Disallow whitespace before properties
122
+ 'style/no-whitespace-before-property': [ 'error' ],
123
+ // Enforce the location of single-line statements
124
+ 'style/nonblock-statement-body-position': [ 'error' ],
125
+ // Enforce consistent line breaks after opening and before closing braces
126
+ 'style/object-curly-newline': [ 'error', { consistent: true } ],
127
+ // Enforce consistent spacing inside braces
128
+ 'style/object-curly-spacing': [ 'error', 'always' ],
129
+ // Enforce placing object properties on separate lines
130
+ 'style/object-property-newline': [ 'error', { allowAllPropertiesOnSameLine: true } ],
131
+ // Require or disallow newlines around variable declarations
132
+ 'style/one-var-declaration-per-line': [ 'error', 'initializations' ],
133
+ // Enforce consistent linebreak style for operators
134
+ 'style/operator-linebreak': [
135
+ 'error',
136
+ 'after',
137
+ {
138
+ overrides: {
139
+ '?': 'before',
140
+ ':': 'before',
141
+ },
142
+ },
143
+ ],
144
+ // Require or disallow padding within blocks
145
+ 'style/padded-blocks': [ 'error', 'never' ],
146
+ // Require or disallow padding lines between statements
147
+ 'style/padding-line-between-statements': [ 'off' ],
148
+ // Require quotes around object literal property names
149
+ 'style/quote-props': [ 'error', 'consistent-as-needed' ],
150
+ // Enforce the consistent use of either backticks, double, or single quotes
151
+ 'style/quotes': [
152
+ 'error',
153
+ 'single',
154
+ {
155
+ allowTemplateLiterals: true,
156
+ avoidEscape: true,
157
+ },
158
+ ],
159
+ // Enforce spacing between rest and spread operators and their expressions
160
+ 'style/rest-spread-spacing': [ 'error', 'never' ],
161
+ // Require or disallow semicolons instead of ASI
162
+ 'style/semi': [ 'error', 'always' ],
163
+ // Enforce consistent spacing before and after semicolons
164
+ 'style/semi-spacing': [ 'error' ],
165
+ // Enforce location of semicolons
166
+ 'style/semi-style': [ 'error', 'last' ],
167
+ // Enforce consistent spacing before blocks
168
+ 'style/space-before-blocks': [ 'error' ],
169
+ // Enforce consistent spacing before `function` definition opening parenthesis
170
+ 'style/space-before-function-paren': [
171
+ 'error',
172
+ {
173
+ anonymous: 'always',
174
+ named: 'never',
175
+ asyncArrow: 'always',
176
+ },
177
+ ],
178
+ // Enforce consistent spacing inside parentheses
179
+ 'style/space-in-parens': [ 'error', 'never' ],
180
+ // Require spacing around infix operators
181
+ 'style/space-infix-ops': [ 'error' ],
182
+ // Enforce consistent spacing before or after unary operators
183
+ 'style/space-unary-ops': [ 'error' ],
184
+ // Enforce consistent spacing after the `//` or `/*` in a comment
185
+ 'style/spaced-comment': [ 'error', 'always', { markers: [ '?' ] } ],
186
+ // Enforce spacing around colons of switch statements
187
+ 'style/switch-colon-spacing': [ 'error' ],
188
+ // Require or disallow spacing around embedded expressions of template strings
189
+ 'style/template-curly-spacing': [ 'error' ],
190
+ // Require or disallow spacing between template tags and their literals
191
+ 'style/template-tag-spacing': [ 'error' ],
192
+ // Require parentheses around immediate `function` invocations
193
+ 'style/wrap-iife': [
194
+ 'error',
195
+ 'inside',
196
+ { functionPrototypeMethods: true },
197
+ ],
198
+ // Require parenthesis around regex literals
199
+ 'style/wrap-regex': [ 'error' ],
200
+ // Require or disallow spacing around the `*` in `yield*` expressions
201
+ 'style/yield-star-spacing': [ 'error', 'both' ],
202
202
 
203
- // Require a specific member delimiter style for interfaces and type literals
204
- 'style/member-delimiter-style': [ 'error' ],
205
- // Require consistent spacing around type annotations
206
- 'style/type-annotation-spacing': [ 'error' ],
203
+ // Require a specific member delimiter style for interfaces and type literals
204
+ 'style/member-delimiter-style': [ 'error' ],
205
+ // Require consistent spacing around type annotations
206
+ 'style/type-annotation-spacing': [ 'error' ],
207
207
 
208
- // Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
209
- 'style/jsx-child-element-spacing': [ 'off' ],
210
- // Enforce closing bracket location in JSX
211
- 'style/jsx-closing-bracket-location': [ 'off' ],
212
- // Enforce closing tag location for multiline JSX
213
- 'style/jsx-closing-tag-location': [ 'off' ],
214
- // Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
215
- 'style/jsx-curly-brace-presence': [ 'off' ],
216
- // Enforce consistent linebreaks in curly braces in JSX attributes and expressions
217
- 'style/jsx-curly-newline': [ 'off' ],
218
- // Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
219
- 'style/jsx-curly-spacing': [ 'off' ],
220
- // Enforce or disallow spaces around equal signs in JSX attributes
221
- 'style/jsx-equals-spacing': [ 'off' ],
222
- // Enforce proper position of the first property in JSX
223
- 'style/jsx-first-prop-new-line': [ 'off' ],
224
- // Enforce props indentation in JSX
225
- 'style/jsx-indent-props': [ 'off' ],
226
- // Enforce maximum of props on a single line in JSX
227
- 'style/jsx-max-props-per-line': [ 'off' ],
228
- // Require or prevent a new line after jsx elements and expressions.
229
- 'style/jsx-newline': [ 'off' ],
230
- // Require one JSX element per line
231
- 'style/jsx-one-expression-per-line': [ 'off' ],
232
- // Disallow multiple spaces between inline JSX props
233
- 'style/jsx-props-no-multi-spaces': [ 'off' ],
234
- // Disallow extra closing tags for components without children
235
- 'style/jsx-self-closing-comp': [ 'off' ],
236
- // Enforce props alphabetical sorting
237
- 'style/jsx-sort-props': [ 'off' ],
238
- // Enforce whitespace in and around the JSX opening and closing brackets
239
- 'style/jsx-tag-spacing': [ 'off' ],
240
- // Disallow missing parentheses around multiline JSX
241
- 'style/jsx-wrap-multilines': [ 'off' ],
208
+ // Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
209
+ 'style/jsx-child-element-spacing': [ 'off' ],
210
+ // Enforce closing bracket location in JSX
211
+ 'style/jsx-closing-bracket-location': [ 'off' ],
212
+ // Enforce closing tag location for multiline JSX
213
+ 'style/jsx-closing-tag-location': [ 'off' ],
214
+ // Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
215
+ 'style/jsx-curly-brace-presence': [ 'off' ],
216
+ // Enforce consistent linebreaks in curly braces in JSX attributes and expressions
217
+ 'style/jsx-curly-newline': [ 'off' ],
218
+ // Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
219
+ 'style/jsx-curly-spacing': [ 'off' ],
220
+ // Enforce or disallow spaces around equal signs in JSX attributes
221
+ 'style/jsx-equals-spacing': [ 'off' ],
222
+ // Enforce proper position of the first property in JSX
223
+ 'style/jsx-first-prop-new-line': [ 'off' ],
224
+ // Enforce props indentation in JSX
225
+ 'style/jsx-indent-props': [ 'off' ],
226
+ // Enforce maximum of props on a single line in JSX
227
+ 'style/jsx-max-props-per-line': [ 'off' ],
228
+ // Require or prevent a new line after jsx elements and expressions.
229
+ 'style/jsx-newline': [ 'off' ],
230
+ // Require one JSX element per line
231
+ 'style/jsx-one-expression-per-line': [ 'off' ],
232
+ // Disallow multiple spaces between inline JSX props
233
+ 'style/jsx-props-no-multi-spaces': [ 'off' ],
234
+ // Disallow extra closing tags for components without children
235
+ 'style/jsx-self-closing-comp': [ 'off' ],
236
+ // Enforce props alphabetical sorting
237
+ 'style/jsx-sort-props': [ 'off' ],
238
+ // Enforce whitespace in and around the JSX opening and closing brackets
239
+ 'style/jsx-tag-spacing': [ 'off' ],
240
+ // Disallow missing parentheses around multiline JSX
241
+ 'style/jsx-wrap-multilines': [ 'off' ],
242
242
 
243
- // Enforces consistent spacing inside TypeScript type generics
244
- 'style/type-generic-spacing': [ 'error' ],
245
- // Expect space before the type declaration in the named tuple
246
- 'style/type-named-tuple-spacing': [ 'error' ],
243
+ // Enforces consistent spacing inside TypeScript type generics
244
+ 'style/type-generic-spacing': [ 'error' ],
245
+ // Expect space before the type declaration in the named tuple
246
+ 'style/type-named-tuple-spacing': [ 'error' ],
247
247
 
248
- },
249
- } ];
248
+ },
249
+ } ];
250
250
  }