-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
36 lines (35 loc) · 1.01 KB
/
.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
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:react/recommended'
- 'plugin:react-hooks/recommended'
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
rules:
'@typescript-eslint/camelcase': 0
'@typescript-eslint/semi': error
'@typescript-eslint/member-delimiter-style': error
'@typescript-eslint/no-unused-vars':
- error
- ignoreRestSiblings: true
argsIgnorePattern: ^_
semi: off
quotes: ['error', 'single']
quote-props: ['error', 'consistent-as-needed']
comma-dangle: ['error', 'always-multiline']
indent: [warn, 4, {SwitchCase: 1}]
eqeqeq: error
prefer-arrow-callback: error
no-constant-condition: [error, { checkLoops: false }]
# spacing
no-trailing-spaces: error
func-call-spacing: error
object-curly-spacing: [error, always]
array-bracket-spacing: error
computed-property-spacing: error
space-before-blocks: error
arrow-spacing: error
keyword-spacing: error
key-spacing: error
space-infix-ops: error