Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

5.1.1

Compare
Choose a tag to compare
@vitorbal vitorbal released this 05 Mar 10:51
· 35 commits to master since this release

Breaking Changes

The npm package was moved into the @zapier organization. To resolve, change your eslint config to point to @zapier/zapier instead of just zapier:

{
-  "plugins": ["zapier"],
-  "extends": ["plugin:zapier/prettier"]
+  "plugins": ["@zapier/zapier"],
+  "extends": ["plugin:@zapier/zapier/prettier"]
}

If you are referencing any custom rules directly, make sure to change those too:

{
   "rules": {
-    "zapier/disallow-lodash-get-dot-notation": "error",
+    "@zapier/zapier/disallow-lodash-get-dot-notation": "error",
   }
}

Other Changes

  • Changed yoda rule to allow yoda conditions in range comparisons which are wrapped directly in parentheses, including the parentheses of an if or while condition (A range comparison tests whether a variable is inside or outside the range between two literal values).