#4021·faker

Use oxlint to detect other places where functions throw but don't have a throws JSDoc

Author: matthewmayerCreated Aug 30, 2026Updated Sep 14, 2026
Labelsc: docsp: 1-normal

To catch more issues like

https://github.com/faker-js/faker/issues/4015 https://github.com/faker-js/faker/issues/4018

There's a oxlint rule

jsdoc-js/require-throws

If you set this to warn it finds 13 more places which can be investigated.

All 13 warnings

File Line Function
src/internal/locale-proxy.ts 104 assertLocaleData
src/modules/commerce/module.ts 289 isbn
src/modules/helpers/eval.ts 67 fakeEval
src/modules/helpers/eval.ts 114 evalProcessFunction
src/modules/helpers/eval.ts 147 findParams
src/modules/helpers/eval.ts 183 evalProcessExpression
src/modules/helpers/module.ts 26 getRepetitionsBasedOnQuantifierParameters
src/modules/location/module.ts 232 zipCode
src/modules/phone/module.ts 30 number
src/modules/string/module.ts 123 fromCharacters
src/modules/string/module.ts 507 numeric
src/modules/system/module.ts 165 fileExt
src/modules/word/module.ts 340 sample

Public API methods (8): isbn, fakeEval, zipCode, number, fromCharacters, numeric, fileExt, sample

Internal/private helpers (5): assertLocaleData, evalProcessFunction, findParams, evalProcessExpression, getRepetitionsBasedOnQuantifierParameters