Skip to content

Commit 293b177

Browse files
committed
remove array type
1 parent 1b0da8f commit 293b177

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

validator/rules/no-native-types.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const TYPE_SUGGESTIONS = {
3030
'Set': 'Use an array type instead (e.g., string[])',
3131
'WeakMap': 'Use Dictionary instead',
3232
'WeakSet': 'Use an array type instead',
33-
'Array': 'Use array syntax instead (e.g., string[])',
3433
};
3534

3635
export default createRule({

validator/test/no-native-types.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ ruleTester.run('no-native-types', rule, {
3434
valid: [
3535
`type MyDict = Dictionary<string, object>`,
3636
`type MyMapping = Dictionary<string, any>`,
37-
`type MyArray = string[]`,
3837
`type MyType = { field: string }`,
3938
`class MyClass { prop: integer }`,
4039
],
@@ -79,9 +78,5 @@ ruleTester.run('no-native-types', rule, {
7978
code: `class MyClass { items: Map<string, number> }`,
8079
errors: [{ messageId: 'noNativeType' }]
8180
},
82-
{
83-
code: `type MyList = Array<integer>`,
84-
errors: [{ messageId: 'noNativeType' }]
85-
},
8681
],
8782
})

0 commit comments

Comments
 (0)