@blumintinc/eslint-plugin-blumint 1.12.3 → 1.12.4
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/lib/index.js
CHANGED
|
@@ -108,7 +108,7 @@ const no_undefined_null_passthrough_1 = require("./rules/no-undefined-null-passt
|
|
|
108
108
|
module.exports = {
|
|
109
109
|
meta: {
|
|
110
110
|
name: '@blumintinc/eslint-plugin-blumint',
|
|
111
|
-
version: '1.12.
|
|
111
|
+
version: '1.12.4',
|
|
112
112
|
},
|
|
113
113
|
parseOptions: {
|
|
114
114
|
ecmaVersion: 2020,
|
|
@@ -16,6 +16,15 @@ exports.preferBlockCommentsForDeclarations = (0, createRule_1.createRule)({
|
|
|
16
16
|
if (comment.type !== 'Line') {
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
19
|
+
// Ignore ESLint directive comments
|
|
20
|
+
const commentText = comment.value.trim();
|
|
21
|
+
if (commentText.startsWith('eslint-disable') ||
|
|
22
|
+
commentText.startsWith('eslint-enable') ||
|
|
23
|
+
commentText.startsWith('eslint-env') ||
|
|
24
|
+
commentText.startsWith('global ') ||
|
|
25
|
+
commentText.startsWith('globals ')) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
19
28
|
// Check if the comment is directly before the node
|
|
20
29
|
const commentLine = comment.loc.end.line;
|
|
21
30
|
const nodeLine = node.loc.start.line;
|