eslint-plugin-prefer-let 4.2.0 → 4.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # eslint-plugin-prefer-let
2
2
 
3
+ ## \[4.2.1]
4
+
5
+ - [`fadad0b`](https://github.com/thefrontside/javascript/commit/fadad0b5cf786b3186d74a35d9933b5e8bea0e34) Ignore `export const` cases
6
+
3
7
  ## \[4.2.0]
4
8
 
5
9
  - [`9066434`](https://github.com/thefrontside/javascript/commit/90664342144bce7d4a13812e82c155ba3d4ea7e0) Add `forceUpperCaseConst` option
@@ -132,6 +132,8 @@ module.exports = {
132
132
  }
133
133
  });
134
134
  }
135
+ } else if (node.parent && node.parent.type === 'ExportNamedDeclaration') {
136
+ // ignore `export const` cases
135
137
  } else {
136
138
  let constToken = sourceCode.getFirstToken(node);
137
139
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-prefer-let",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Rule to prefer using `let` to bind names to values",
5
5
  "repository": {
6
6
  "type": "git",