@checkdigit/eslint-plugin 5.3.0-PR.41-f269 → 5.3.0-PR.41-7ae9
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/dist-cjs/index.cjs
CHANGED
|
@@ -323,7 +323,7 @@ var no_uuid_default = {
|
|
|
323
323
|
|
|
324
324
|
// src/no-wallaby-comment.ts
|
|
325
325
|
function removeComments(input) {
|
|
326
|
-
const commentPattern = /\/\/\s*(
|
|
326
|
+
const commentPattern = /\/\/\s*(?<comment>\?{1,2}\.?|file\.only)/gu;
|
|
327
327
|
return input.replace(commentPattern, "").trim();
|
|
328
328
|
}
|
|
329
329
|
var no_wallaby_comment_default = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/no-wallaby-comment.ts
|
|
2
2
|
function removeComments(input) {
|
|
3
|
-
const commentPattern = /\/\/\s*(
|
|
3
|
+
const commentPattern = /\/\/\s*(?<comment>\?{1,2}\.?|file\.only)/gu;
|
|
4
4
|
return input.replace(commentPattern, "").trim();
|
|
5
5
|
}
|
|
6
6
|
var no_wallaby_comment_default = {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@checkdigit/eslint-plugin","version":"5.3.0-PR.41-
|
|
1
|
+
{"name":"@checkdigit/eslint-plugin","version":"5.3.0-PR.41-7ae9","description":"Check Digit eslint plugins","prettier":"@checkdigit/prettier-config","type":"module","exports":{".":{"types":"./dist-types/index.d.ts","require":"./dist-cjs/index.cjs","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"keywords":["eslint","eslintplugin"],"engines":{"node":">=18"},"repository":{"type":"git","url":"git+https://github.com/checkdigit/eslint-plugin.git"},"author":"Check Digit, LLC","license":"MIT","bugs":{"url":"https://github.com/checkdigit/eslint-plugin/issues"},"homepage":"https://github.com/checkdigit/eslint-plugin#readme","peerDependencies":{"eslint":">=8 <9"},"devDependencies":{"@checkdigit/jest-config":"^3.1.0","@checkdigit/prettier-config":"^4.1.0","@checkdigit/typescript-config":"^5.1.0","@types/eslint":"^8.44.6","@typescript-eslint/eslint-plugin":"^6.9.0","@typescript-eslint/parser":"^6.9.0","eslint-config-prettier":"^9.0.0","eslint-plugin-eslint-plugin":"^5.1.1","eslint-plugin-import":"^2.29.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-no-secrets":"^0.8.9","eslint-plugin-node":"^11.1.0","eslint-plugin-sonarjs":"^0.21.0"},"scripts":{"prepublishOnly":"npm run build:dist-types && npm run build:dist-cjs && npm run build:dist-mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","build:dist-cjs":"rimraf dist-cjs && npx builder --type=commonjs --sourceMap --entryPoint=index.ts --outDir=dist-cjs --outFile=index.cjs && echo \"module.exports = module.exports.default;\" >> dist-cjs/index.cjs && node dist-cjs/index.cjs","build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","lint:fix":"eslint --ignore-path .gitignore . --fix","lint":"eslint --max-warnings 0 --ignore-path .gitignore .","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style","ci:compile":"tsc --noEmit","ci:test":"NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage=false","ci:coverage":"NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier"},"jest":{"preset":"@checkdigit/jest-config"},"files":["src","dist-types","dist-cjs","dist-mjs","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-cjs/**/*.test.cjs","!dist-cjs/**/*.spec.cjs","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"]}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { Rule } from 'eslint';
|
|
10
10
|
|
|
11
11
|
function removeComments(input: string) {
|
|
12
|
-
const commentPattern = /\/\/\s*(
|
|
12
|
+
const commentPattern = /\/\/\s*(?<comment>\?{1,2}\.?|file\.only)/gu;
|
|
13
13
|
return input.replace(commentPattern, '').trim();
|
|
14
14
|
}
|
|
15
15
|
|