Skip to content

Commit d657181

Browse files
committed
update docusaurus
1 parent 91baae5 commit d657181

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

website/eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@ export default tseslint.config(
5858
'@typescript-eslint/no-unnecessary-condition': 'error',
5959
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreArrowShorthand: true }],
6060
'@typescript-eslint/restrict-plus-operands': 'off',
61+
'@typescript-eslint/naming-convention': [
62+
'error',
63+
{
64+
selector: 'typeAlias',
65+
format: ['PascalCase'],
66+
},
67+
{
68+
selector: 'variable',
69+
types: ['boolean'],
70+
format: ['PascalCase'],
71+
prefix: ['is', 'should', 'has', 'can', 'did', 'will'],
72+
},
73+
{
74+
// Generic type parameter must start with letter T, followed by any uppercase letter.
75+
selector: 'typeParameter',
76+
format: ['PascalCase'],
77+
custom: { regex: '^T[A-Z]', match: true },
78+
},
79+
],
6180

6281
'import/no-default-export': 'error',
6382
'import/no-unresolved': 'off',

0 commit comments

Comments
 (0)