forked from jhlywa/chess.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
32 lines (31 loc) · 838 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
// allow while(true) loops
'no-constant-condition': ['error', { checkLoops: false }],
'@typescript-eslint/naming-convention': [
'error',
{
selector: ['default'],
format: ['strictCamelCase'],
leadingUnderscore: 'allow',
},
{
selector: ['variable'],
format: ['strictCamelCase', 'UPPER_CASE'],
},
{
selector: ['objectLiteralProperty'],
format: ['strictCamelCase', 'UPPER_CASE'],
},
{
selector: ['typeLike'],
format: ['PascalCase'],
},
],
'multiline-comment-style': ['error', 'starred-block'],
},
}