Skip to content

Commit

Permalink
fix(no-undefined-types): support true and false literals
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jan 20, 2021
1 parent 6b5e82d commit b8cb394
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .README/rules/no-undefined-types.md
Expand Up @@ -27,7 +27,7 @@ The following types are always considered defined.
`function`, `symbol`
- `number`, `bigint`, `NaN`, `Infinity`
- `any`, `*`
- `this`
- `this`, `true`, `false`
- `Array`, `Object`, `RegExp`, `Date`, `Function`

Note that preferred types indicated within `settings.jsdoc.preferredTypes` will
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7133,7 +7133,7 @@ The following types are always considered defined.
`function`, `symbol`
- `number`, `bigint`, `NaN`, `Infinity`
- `any`, `*`
- `this`
- `this`, `true`, `false`
- `Array`, `Object`, `RegExp`, `Date`, `Function`
Note that preferred types indicated within `settings.jsdoc.preferredTypes` will
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noUndefinedTypes.js
Expand Up @@ -15,7 +15,7 @@ const extraTypes = [
'function', 'symbol',
'number', 'bigint', 'NaN', 'Infinity',
'any', '*',
'this',
'this', 'true', 'false',
'Array', 'Object', 'RegExp', 'Date', 'Function',
];

Expand Down

0 comments on commit b8cb394

Please sign in to comment.