js-style-kit 0.8.0 → 0.8.2
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/bin/index.cjs +1 -1
- package/dist/bin/index.cjs.map +1 -1
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/eslint/convex/README.md +50 -1
- package/src/eslint/convex/config.ts +14 -1
- package/src/eslint/convex/rules.ts +1 -2
- package/src/eslint/convex/types.ts +1 -2
- package/src/eslint/index.ts +3 -1
- package/src/eslint/unicorn/README.md +17 -0
package/dist/bin/index.cjs
CHANGED
|
@@ -2658,7 +2658,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2658
2658
|
return arg.length > 1 && arg[0] === "-";
|
|
2659
2659
|
}
|
|
2660
2660
|
const negativeNumberArg = (arg) => {
|
|
2661
|
-
if (
|
|
2661
|
+
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
|
|
2662
2662
|
return !this._getCommandAndAncestors().some(
|
|
2663
2663
|
(cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
|
|
2664
2664
|
);
|