You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change @typescript-eslint/array-type from generic to array-simple
#9226
For simple types (containing just alphanumeric characters and dot), use the syntax sugar for arrays, T[] or readonly T[], rather than the longer form Array or ReadonlyArray.
For multi-dimensional non-readonly arrays of simple types, use the syntax sugar form (T[][], T[][][], and so on) rather than the longer form.
For anything more complex, use the longer form Array.
These rules apply at each level of nesting, i.e. a simple T[] nested in a more complex type would still be spelled as T[], using the syntax sugar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
#BackLog
Current config enforces Array everywhere:
nodejs.org/eslint.config.js
Line 40 in 72c1738
Proposal
Switch to
array-simple:Google TypeScript Style Guide
All reactions