@kununu/eslint-config 5.3.0-beta-6 → 5.3.0-beta-8
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/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -208,6 +208,8 @@ const baseRules = {
|
|
|
208
208
|
selector: 'ReturnStatement > LogicalExpression[operator="&&"]',
|
|
209
209
|
message: 'Prefer early returns over logical expressions in return statements. Use if (condition) return value; instead.'
|
|
210
210
|
}],
|
|
211
|
+
|
|
212
|
+
|
|
211
213
|
};
|
|
212
214
|
|
|
213
215
|
module.exports = {
|
|
@@ -278,7 +280,7 @@ module.exports = {
|
|
|
278
280
|
'**/stories.tsx',
|
|
279
281
|
],
|
|
280
282
|
}],
|
|
281
|
-
'@shopify/prefer-early-return': 'error',
|
|
283
|
+
'@shopify/prefer-early-return': ['error', { maximumStatements: 1 }],
|
|
282
284
|
},
|
|
283
285
|
overrides: [
|
|
284
286
|
{
|