We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87d558e commit fadad0bCopy full SHA for fadad0b
2 files changed
.changes/fix-export-const.md
@@ -0,0 +1,5 @@
1
+---
2
+"eslint-plugin-prefer-let": patch
3
4
+
5
+Ignore `export const` cases
packages/eslint-plugin-prefer-let/lib/rules/prefer-let.js
@@ -132,6 +132,8 @@ module.exports = {
132
}
133
});
134
135
+ } else if (node.parent && node.parent.type === 'ExportNamedDeclaration') {
136
+ // ignore `export const` cases
137
} else {
138
let constToken = sourceCode.getFirstToken(node);
139
context.report({
0 commit comments