@checkdigit/eslint-plugin 5.5.0 → 5.5.1-PR.50-8d8a

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.
@@ -322,7 +322,7 @@ var no_uuid_default = {
322
322
  };
323
323
 
324
324
  // src/no-wallaby-comment.ts
325
- var wallabyRegex = /\s*(?:[?]{1,2}\.?|file\.only|file\.skip)\s*/gu;
325
+ var wallabyRegex = /(?<=(?:^|\*\/)\s*)[?]{1,2}|file\.only|file\.skip/gu;
326
326
  var commentRegex = /\s*(?:\/\/|<!--)\s*(?<comment>\?{1,2}\.?\s*|file\.(?:only|skip))\s*/gu;
327
327
  function removeWallabyComment(context, sourceCode, start, end) {
328
328
  context.report({
@@ -16,7 +16,7 @@
16
16
  "format": "esm"
17
17
  },
18
18
  "src/no-wallaby-comment.ts": {
19
- "bytes": 3455,
19
+ "bytes": 3460,
20
20
  "imports": [],
21
21
  "format": "esm"
22
22
  },
@@ -86,7 +86,7 @@
86
86
  "bytesInOutput": 2256
87
87
  },
88
88
  "src/no-wallaby-comment.ts": {
89
- "bytesInOutput": 3026
89
+ "bytesInOutput": 3031
90
90
  },
91
91
  "src/regular-expression-comment.ts": {
92
92
  "bytesInOutput": 932
@@ -95,7 +95,7 @@
95
95
  "bytesInOutput": 3362
96
96
  }
97
97
  },
98
- "bytes": 31027
98
+ "bytes": 31032
99
99
  }
100
100
  }
101
101
  }
@@ -1,5 +1,5 @@
1
1
  // src/no-wallaby-comment.ts
2
- var wallabyRegex = /\s*(?:[?]{1,2}\.?|file\.only|file\.skip)\s*/gu;
2
+ var wallabyRegex = /(?<=(?:^|\*\/)\s*)[?]{1,2}|file\.only|file\.skip/gu;
3
3
  var commentRegex = /\s*(?:\/\/|<!--)\s*(?<comment>\?{1,2}\.?\s*|file\.(?:only|skip))\s*/gu;
4
4
  function removeWallabyComment(context, sourceCode, start, end) {
5
5
  context.report({
package/package.json CHANGED
@@ -1,84 +1 @@
1
- {
2
- "name": "@checkdigit/eslint-plugin",
3
- "version": "5.5.0",
4
- "description": "Check Digit eslint plugins",
5
- "prettier": "@checkdigit/prettier-config",
6
- "type": "module",
7
- "exports": {
8
- ".": {
9
- "types": "./dist-types/index.d.ts",
10
- "require": "./dist-cjs/index.cjs",
11
- "import": "./dist-mjs/index.mjs",
12
- "default": "./dist-mjs/index.mjs"
13
- }
14
- },
15
- "keywords": [
16
- "eslint",
17
- "eslintplugin"
18
- ],
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/checkdigit/eslint-plugin.git"
25
- },
26
- "author": "Check Digit, LLC",
27
- "license": "MIT",
28
- "bugs": {
29
- "url": "https://github.com/checkdigit/eslint-plugin/issues"
30
- },
31
- "homepage": "https://github.com/checkdigit/eslint-plugin#readme",
32
- "peerDependencies": {
33
- "eslint": ">=8 <9"
34
- },
35
- "devDependencies": {
36
- "@checkdigit/jest-config": "^3.1.1",
37
- "@checkdigit/prettier-config": "^4.1.0",
38
- "@checkdigit/typescript-config": "^5.1.0",
39
- "@types/eslint": "^8.44.6",
40
- "@typescript-eslint/eslint-plugin": "^6.10.0",
41
- "@typescript-eslint/parser": "^6.10.0",
42
- "eslint-config-prettier": "^9.0.0",
43
- "eslint-plugin-eslint-plugin": "^5.1.1",
44
- "eslint-plugin-import": "^2.29.0",
45
- "eslint-plugin-no-only-tests": "^3.1.0",
46
- "eslint-plugin-no-secrets": "^0.8.9",
47
- "eslint-plugin-node": "^11.1.0",
48
- "eslint-plugin-sonarjs": "^0.23.0"
49
- },
50
- "scripts": {
51
- "prepublishOnly": "npm run build:dist-types && npm run build:dist-cjs && npm run build:dist-mjs",
52
- "build:dist-types": "rimraf dist-types && npx builder --type=types --outDir=dist-types",
53
- "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",
54
- "build:dist-mjs": "rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs",
55
- "lint:fix": "eslint --ignore-path .gitignore . --fix",
56
- "lint": "eslint --max-warnings 0 --ignore-path .gitignore .",
57
- "prettier": "prettier --ignore-path .gitignore --list-different .",
58
- "prettier:fix": "prettier --ignore-path .gitignore --write .",
59
- "test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style",
60
- "ci:compile": "tsc --noEmit",
61
- "ci:test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage=false",
62
- "ci:coverage": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage=true",
63
- "ci:lint": "npm run lint",
64
- "ci:style": "npm run prettier"
65
- },
66
- "jest": {
67
- "preset": "@checkdigit/jest-config"
68
- },
69
- "files": [
70
- "src",
71
- "dist-types",
72
- "dist-cjs",
73
- "dist-mjs",
74
- "!src/**/*.test.ts",
75
- "!src/**/*.spec.ts",
76
- "!dist-types/**/*.test.d.ts",
77
- "!dist-types/**/*.spec.d.ts",
78
- "!dist-cjs/**/*.test.cjs",
79
- "!dist-cjs/**/*.spec.cjs",
80
- "!dist-mjs/**/*.test.mjs",
81
- "!dist-mjs/**/*.spec.mjs",
82
- "SECURITY.md"
83
- ]
84
- }
1
+ {"name":"@checkdigit/eslint-plugin","version":"5.5.1-PR.50-8d8a","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.1","@checkdigit/prettier-config":"^5.0.0","@checkdigit/typescript-config":"^6.0.0","@types/eslint":"^8.44.7","@typescript-eslint/eslint-plugin":"^6.13.1","@typescript-eslint/parser":"^6.13.1","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.23.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, SourceCode } from 'eslint';
10
10
  import type { Comment } from 'estree';
11
11
 
12
- const wallabyRegex = /\s*(?:[?]{1,2}\.?|file\.only|file\.skip)\s*/gu;
12
+ const wallabyRegex = /(?<=(?:^|\*\/)\s*)[?]{1,2}|file\.only|file\.skip/gu;
13
13
  const commentRegex = /\s*(?:\/\/|<!--)\s*(?<comment>\?{1,2}\.?\s*|file\.(?:only|skip))\s*/gu;
14
14
  function removeWallabyComment(context: Rule.RuleContext, sourceCode: SourceCode, start: number, end: number): void {
15
15
  context.report({