eslint-plugin-comment-annotations
Advanced tools
Comparing version 0.4.2 to 1.0.0
@@ -5,7 +5,7 @@ module.exports = { | ||
"single-colon": require("./lib/rules/single-colon"), | ||
"no-extra-space": require("./lib/rules/no-extra-space") | ||
"no-extra-space": require("./lib/rules/no-extra-space"), | ||
}, | ||
configs: { | ||
recommended: require("./lib/configs/recommended") | ||
} | ||
recommended: require("./lib/configs/recommended"), | ||
}, | ||
}; |
module.exports = { | ||
"comment-annotations/all-caps": 2, | ||
"comment-annotations/single-colon": 2, | ||
"comment-annotations/no-extra-space": 2 | ||
"comment-annotations/no-extra-space": 2, | ||
}; |
@@ -8,5 +8,5 @@ const utils = require("../utils"); | ||
category: "Stylistic Issues", | ||
recommended: true | ||
recommended: true, | ||
}, | ||
fixable: "code" | ||
fixable: "code", | ||
}, | ||
@@ -43,5 +43,5 @@ | ||
[start, end], | ||
annotation.toUpperCase() | ||
annotation.toUpperCase(), | ||
); | ||
} | ||
}, | ||
}); | ||
@@ -56,7 +56,7 @@ } | ||
comments | ||
.filter(token => token.type !== "Shebang") | ||
.filter((token) => token.type !== "Shebang") | ||
.forEach(checkCommentForLowercaseAnnotation); | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; |
@@ -8,5 +8,5 @@ const typosRE = /^(\s*)((fix\s+me)|(to\s+do))/i; | ||
category: "Stylistic Issues", | ||
recommended: true | ||
recommended: true, | ||
}, | ||
fixable: "code" | ||
fixable: "code", | ||
}, | ||
@@ -42,5 +42,5 @@ | ||
[start, end], | ||
annotation.replace(/\s+/g, "") | ||
annotation.replace(/\s+/g, ""), | ||
); | ||
} | ||
}, | ||
}); | ||
@@ -54,7 +54,7 @@ } | ||
comments | ||
.filter(token => token.type !== "Shebang") | ||
.filter((token) => token.type !== "Shebang") | ||
.forEach(checkCommentForAnnotationWithExtraSpace); | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; |
@@ -10,5 +10,5 @@ const utils = require("../utils"); | ||
category: "Stylistic Issues", | ||
recommended: true | ||
recommended: true, | ||
}, | ||
fixable: "code" | ||
fixable: "code", | ||
}, | ||
@@ -35,3 +35,3 @@ | ||
const stringAfterAnnotation = node.value.slice( | ||
spaces.length + annotation.length | ||
spaces.length + annotation.length, | ||
); | ||
@@ -52,3 +52,3 @@ | ||
return fixer.insertTextAfterRange([start, end], ":"); | ||
} | ||
}, | ||
}); | ||
@@ -77,3 +77,3 @@ | ||
return fixer.replaceTextRange([start, end], ":"); | ||
} | ||
}, | ||
}); | ||
@@ -87,7 +87,7 @@ } | ||
comments | ||
.filter(token => token.type !== "Shebang") | ||
.filter((token) => token.type !== "Shebang") | ||
.forEach(checkCommentForSingleColonAfterAnnotation); | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; |
@@ -6,3 +6,3 @@ const annotations = ["TODO", "HACK", "XXX", "FIXME"]; | ||
annotations, | ||
annotationsRe | ||
annotationsRe, | ||
}; |
{ | ||
"name": "eslint-plugin-comment-annotations", | ||
"version": "0.4.2", | ||
"version": "1.0.0", | ||
"description": "", | ||
@@ -8,3 +8,4 @@ "main": "index.js", | ||
"test": "mocha tests/lib/rules/*", | ||
"lint": "eslint ./" | ||
"lint": "eslint ./", | ||
"lint:fix": "eslint ./ --fix" | ||
}, | ||
@@ -14,10 +15,8 @@ "author": "Roman Gusev <rgusev2@gmail.com>", | ||
"devDependencies": { | ||
"eslint": "^8.4.1", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-eslint-plugin": "5.1.1", | ||
"eslint-plugin-import": "^2.19.1", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"mocha": "^10.0.0", | ||
"prettier": "^1.15.3" | ||
"eslint": "^9.4.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-eslint-plugin": "^6.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"mocha": "^10.4.0", | ||
"prettier": "^3.3.0" | ||
}, | ||
@@ -24,0 +23,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6
1
8387