@kununu/eslint-config 5.4.0-beta-4 → 5.4.1-beta-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 (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -207,7 +207,8 @@ const baseRules = {
207
207
  'no-restricted-syntax': ['error',
208
208
  {
209
209
  selector: 'ReturnStatement > LogicalExpression[operator="&&"]',
210
- message: 'Prefer early returns over logical expressions in return statements. Use if (condition) return value; instead.'
210
+ message: 'Prefer early returns over logical expressions in return statements. Use if (condition) return value; instead.',
211
+ filter: "node.right.type !== 'BinaryExpression' && node.right.type !== 'Literal' && node.right.type !== 'UnaryExpression' && node.right.type !== 'LogicalExpression'"
211
212
  },
212
213
  {
213
214
  selector: 'ReturnStatement > SequenceExpression LogicalExpression[operator="&&"]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "5.4.0-beta-4",
3
+ "version": "5.4.1-beta-1",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",
@@ -36,7 +36,7 @@
36
36
  "eslint-config-airbnb-typescript": "18.0.0",
37
37
  "eslint-config-prettier": "9.1.0",
38
38
  "eslint-import-resolver-alias": "1.1.2",
39
- "eslint-plugin-granular-selectors": "^1.2.1",
39
+ "eslint-plugin-granular-selectors": "1.2.3",
40
40
  "eslint-plugin-import": "2.31.0",
41
41
  "eslint-plugin-jest-dom": "5.5.0",
42
42
  "eslint-plugin-jsx-a11y": "6.10.2",