@zgeoff/oxlint-config 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/function-verb.js +2 -1
  2. package/package.json +1 -1
package/function-verb.js CHANGED
@@ -105,7 +105,8 @@ function isVerbMatch(name, verb, bareAllowed) {
105
105
  return bareAllowed;
106
106
  }
107
107
 
108
- return name.startsWith(verb) && /[A-Z]/u.test(name.charAt(verb.length));
108
+ // a digit also ends the verb: acronyms like 2FA start camelCase segments
109
+ return name.startsWith(verb) && /[A-Z0-9]/u.test(name.charAt(verb.length));
109
110
  }
110
111
 
111
112
  function findAllowedVerb(name, verbs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/oxlint-config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Shareable oxlint config: strict categories, house-style rules, and a custom JS plugin",
5
5
  "license": "MIT",
6
6
  "repository": {