diff --git a/.README/rules/no-undefined-types.md b/.README/rules/no-undefined-types.md index aa9dbcc05..c3b6e48ff 100644 --- a/.README/rules/no-undefined-types.md +++ b/.README/rules/no-undefined-types.md @@ -19,8 +19,9 @@ The following tags will also be checked but only when the mode is `closure`: The following types are always considered defined. -- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function` -- `number`, `NaN`, `Infinity` +- `null`, `undefined`, `void`, `string`, `boolean`, `object`, + `function`, `symbol` +- `number`, `bigint`, `NaN`, `Infinity` - `any`, `*` - `Array`, `Object`, `RegExp`, `Date`, `Function` diff --git a/README.md b/README.md index 1ebb4f93f..5f400ad16 100644 --- a/README.md +++ b/README.md @@ -5351,8 +5351,9 @@ The following tags will also be checked but only when the mode is `closure`: The following types are always considered defined. -- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function` -- `number`, `NaN`, `Infinity` +- `null`, `undefined`, `void`, `string`, `boolean`, `object`, + `function`, `symbol` +- `number`, `bigint`, `NaN`, `Infinity` - `any`, `*` - `Array`, `Object`, `RegExp`, `Date`, `Function` diff --git a/src/rules/noUndefinedTypes.js b/src/rules/noUndefinedTypes.js index 978b342c3..613f7d8e5 100644 --- a/src/rules/noUndefinedTypes.js +++ b/src/rules/noUndefinedTypes.js @@ -4,8 +4,8 @@ import iterateJsdoc, {parseComment} from '../iterateJsdoc'; import jsdocUtils from '../jsdocUtils'; const extraTypes = [ - 'null', 'undefined', 'void', 'string', 'symbol', 'boolean', 'object', - 'function', + 'null', 'undefined', 'void', 'string', 'boolean', 'object', + 'function', 'symbol', 'number', 'bigint', 'NaN', 'Infinity', 'any', '*', 'Array', 'Object', 'RegExp', 'Date', 'Function',