@kununu/eslint-config 5.3.0-beta-9 → 5.3.0-beta-10

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 (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -212,6 +212,10 @@ const baseRules = {
212
212
  {
213
213
  selector: 'ReturnStatement > SequenceExpression LogicalExpression[operator="&&"]',
214
214
  message: 'Prefer early returns over logical expressions in return statements. Use if (condition) return value; instead.'
215
+ },
216
+ {
217
+ selector: 'ReturnStatement > ParenthesizedExpression > SequenceExpression LogicalExpression[operator="&&"]',
218
+ message: 'Prefer early returns over logical expressions in return statements. Use if (condition) return value; instead.'
215
219
  }
216
220
  ],
217
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "5.3.0-beta-9",
3
+ "version": "5.3.0-beta-10",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",