We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c15bfb commit 4358932Copy full SHA for 4358932
website/src/pages/index.mdx
@@ -456,17 +456,9 @@ app.listen(process.env.PORT, () => {...}
456
### Array Types
457
458
<Rule
459
- prefix="Array types must be defined with generic syntax"
+ prefix="Array types should be defined using generic syntax"
460
href="https://typescript-eslint.io/rules/array-type/#generic"
461
->
462
- {`'@typescript-eslint/naming-convention': [
463
- 'error',
464
- {
465
- selector: 'typeAlias',
466
- format: ['PascalCase'],
467
- },
468
- ]`}
469
-</Rule>
+>{`'@typescript-eslint/array-type': ['error', { default: 'generic' }]`}</Rule>
470
<Note>
471
As there is no functional difference between 'generic' and 'array' definition, feel free to set the one your team
472
finds most readable to work with.
0 commit comments