-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
42 lines (42 loc) · 901 Bytes
/
.eslintrc.yml
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
33
34
35
36
37
38
39
40
41
42
env:
browser: true
es2021: true
node: true
extends:
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
rules:
quotes: ["warn", "single"]
object-curly-spacing: ["warn", "always"]
indent: ["error", 4]
semi: "off"
"@typescript-eslint/semi": ["off"]
no-console: "off"
"camelcase": "off"
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
},
{
"selector": "property",
"format": ["camelCase", "snake_case"],
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
]
eqeqeq: ["warn", "smart"]
arrow-parens: ["warn", "as-needed"]
settings:
import/resolver:
typescript:
project: './source'