@checkdigit/eslint-plugin 5.6.0-PR.57-db79 → 5.6.0-PR.57-1e29
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 +1 -1
- package/dist-cjs/metafile.json +3 -3
- package/dist-mjs/no-util.mjs +1 -1
- package/package.json +1 -1
- package/src/no-util.ts +1 -1
package/dist-cjs/index.cjs
CHANGED
|
@@ -240,7 +240,7 @@ var no_util_default = {
|
|
|
240
240
|
return {
|
|
241
241
|
Program() {
|
|
242
242
|
const filename = context.filename;
|
|
243
|
-
const utilRegex = /util/iu;
|
|
243
|
+
const utilRegex = /(?:^|[-_/])util(?=[-_./]|$)/iu;
|
|
244
244
|
if (utilRegex.test(filename)) {
|
|
245
245
|
context.report({
|
|
246
246
|
message: `File name '${filename}' contains banned 'util' pattern.`,
|
package/dist-cjs/metafile.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"format": "esm"
|
|
12
12
|
},
|
|
13
13
|
"src/no-util.ts": {
|
|
14
|
-
"bytes":
|
|
14
|
+
"bytes": 773,
|
|
15
15
|
"imports": [],
|
|
16
16
|
"format": "esm"
|
|
17
17
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"bytesInOutput": 3353
|
|
94
94
|
},
|
|
95
95
|
"src/no-util.ts": {
|
|
96
|
-
"bytesInOutput":
|
|
96
|
+
"bytesInOutput": 572
|
|
97
97
|
},
|
|
98
98
|
"src/no-uuid.ts": {
|
|
99
99
|
"bytesInOutput": 2251
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"bytesInOutput": 3362
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"bytes":
|
|
111
|
+
"bytes": 33634
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
package/dist-mjs/no-util.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var no_util_default = {
|
|
|
11
11
|
return {
|
|
12
12
|
Program() {
|
|
13
13
|
const filename = context.filename;
|
|
14
|
-
const utilRegex = /util/iu;
|
|
14
|
+
const utilRegex = /(?:^|[-_/])util(?=[-_./]|$)/iu;
|
|
15
15
|
if (utilRegex.test(filename)) {
|
|
16
16
|
context.report({
|
|
17
17
|
message: `File name '${filename}' contains banned 'util' pattern.`,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@checkdigit/eslint-plugin","version":"5.6.0-PR.57-
|
|
1
|
+
{"name":"@checkdigit/eslint-plugin","version":"5.6.0-PR.57-1e29","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.9","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","eslint-config-prettier":"^9.1.0","eslint-plugin-eslint-plugin":"^5.2.1","eslint-plugin-import":"^2.29.1","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"]}
|
package/src/no-util.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
return {
|
|
20
20
|
Program() {
|
|
21
21
|
const filename = context.filename;
|
|
22
|
-
const utilRegex = /util/iu;
|
|
22
|
+
const utilRegex = /(?:^|[-_/])util(?=[-_./]|$)/iu;
|
|
23
23
|
if (utilRegex.test(filename)) {
|
|
24
24
|
context.report({
|
|
25
25
|
message: `File name '${filename}' contains banned 'util' pattern.`,
|