You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Restore when it becomes safer: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/681
@@ -148,8 +148,8 @@ module.exports = {
148
148
'unicorn/better-regex': [
149
149
'error',
150
150
{
151
-
sortCharacterClasses: false
152
-
}
151
+
sortCharacterClasses: false,
152
+
},
153
153
],
154
154
155
155
// TODO: Disabled for now until it becomes more stable: https://github.com/sindresorhus/eslint-plugin-unicorn/search?q=consistent-destructuring+is:issue&state=open&type=issues
@@ -161,7 +161,7 @@ module.exports = {
161
161
// We only enforce it for single-line statements to not be too opinionated.
162
162
'unicorn/prefer-ternary': [
163
163
'error',
164
-
'only-single-line'
164
+
'only-single-line',
165
165
],
166
166
167
167
// TODO: Remove this override when the rule is more stable.
@@ -177,8 +177,8 @@ module.exports = {
177
177
'promise/no-return-wrap': [
178
178
'error',
179
179
{
180
-
allowReject: true
181
-
}
180
+
allowReject: true,
181
+
},
182
182
],
183
183
'promise/no-new-statics': 'error',
184
184
'promise/no-return-in-finally': 'error',
@@ -194,9 +194,9 @@ module.exports = {
194
194
// TypeScript doesn't yet support using extensions and fails with error TS2691.
195
195
pattern: {
196
196
ts: 'never',
197
-
tsx: 'never'
198
-
}
199
-
}
197
+
tsx: 'never',
198
+
},
199
+
},
200
200
],
201
201
'import/first': 'error',
202
202
@@ -207,8 +207,8 @@ module.exports = {
207
207
'import/namespace': [
208
208
'error',
209
209
{
210
-
allowComputed: true
211
-
}
210
+
allowComputed: true,
211
+
},
212
212
],
213
213
'import/no-absolute-path': 'error',
214
214
'import/no-anonymous-default-export': 'error',
@@ -218,8 +218,8 @@ module.exports = {
218
218
'import/no-cycle': [
219
219
'error',
220
220
{
221
-
ignoreExternal: true
222
-
}
221
+
ignoreExternal: true,
222
+
},
223
223
],
224
224
'import/no-useless-path-segments': 'error',
225
225
@@ -261,9 +261,9 @@ module.exports = {
261
261
'**/*.css',
262
262
'**/*.scss',
263
263
'**/*.sass',
264
-
'**/*.less'
265
-
]
266
-
}
264
+
'**/*.less',
265
+
],
266
+
},
267
267
],
268
268
269
269
// Redundant with `import/no-extraneous-dependencies`.
@@ -283,15 +283,15 @@ module.exports = {
283
283
{
284
284
// TypeScript doesn't yet support using extensions and fails with error TS2691.
0 commit comments