Skip to content

Commit 2f13cb5

Browse files
committed
docs(no-undefined-types): Add tags
refactoring(check-types): Put like-cased together
1 parent b2a00c4 commit 2f13cb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.README/rules/no-undefined-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In addition to considering globals found in code (or in ESLint-indicated
1111
name(path) definitions to also serve as a potential "type" for checking
1212
the tag types in the table below:
1313

14-
`callback`, `class` (or `constructor`), `constant` (or `const`), `event`, `external` (or `host`), `function` (or `func` or `method`), `interface`, `member` (or `var`), `mixin`, `name`, `namespace`, `typedef`.
14+
`@callback`, `@class` (or `@constructor`), `@constant` (or `@const`), `@event`, `@external` (or `@host`), `@function` (or `@func` or `@method`), `@interface`, `@member` (or `@var`), `@mixin`, `@name`, `@namespace`, `@typedef`.
1515

1616
The following types are always considered defined.
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ In addition to considering globals found in code (or in ESLint-indicated
21002100
name(path) definitions to also serve as a potential "type" for checking
21012101
the tag types in the table below:
21022102

2103-
`callback`, `class` (or `constructor`), `constant` (or `const`), `event`, `external` (or `host`), `function` (or `func` or `method`), `interface`, `member` (or `var`), `mixin`, `name`, `namespace`, `typedef`.
2103+
`@callback`, `@class` (or `@constructor`), `@constant` (or `@const`), `@event`, `@external` (or `@host`), `@function` (or `@func` or `@method`), `@interface`, `@member` (or `@var`), `@mixin`, `@name`, `@namespace`, `@typedef`.
21042104

21052105
The following types are always considered defined.
21062106

src/rules/checkTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const strictNativeTypes = [
88
'boolean',
99
'number',
1010
'string',
11-
'Array',
1211
'object',
12+
'Array',
1313
'RegExp',
1414
'Date',
1515
'Function'

0 commit comments

Comments
 (0)