-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
54 lines (53 loc) · 1.75 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
env:
browser: true
es2021: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 12
sourceType: module
plugins:
- react
- '@typescript-eslint'
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
rules:
max-len: 'off'
semi: ['error', 'never']
indent: 'off'
'@typescript-eslint/indent': ['error', 2]
'@typescript-eslint/explicit-module-boundary-types': 'off'
quotes: ['error', 'single']
object-curly-spacing: ['error', 'always']
array-bracket-spacing: ['error', 'never']
no-shadow: ['off']
comma-dangle: ['error', 'always-multiline']
comma-spacing: ['error', {before: false, after: true}]
comma-style: ['error', 'last']
arrow-spacing: ['error', {before: true, after: true}]
key-spacing: ['error', {'beforeColon': false, 'afterColon': true}]
keyword-spacing: ['error']
space-before-blocks: ['error', 'always']
computed-property-spacing: ['error', 'never']
eol-last: ['error', 'always']
func-call-spacing: ['error', 'never']
space-before-function-paren: ['error', {anonymous: 'never', named: 'never', asyncArrow: 'always'}]
brace-style: ['error', '1tbs']
jsx-quotes: ['error', 'prefer-double']
quote-props: ['error', 'as-needed']
space-in-parens: ['error', 'never']
new-cap: 'off'
padded-blocks: ['error', 'never']
object-property-newline: ['error', {'allowAllPropertiesOnSameLine': true}]
object-curly-newline: ['error', {'multiline': true}]
space-infix-ops: 'error'
react/jsx-space-before-closing: ['error', 'always']
react/react-in-jsx-scope: 'off'
react/no-unknown-property: 'off'
react/display-name: 'off'
react/prop-types: 'off'
react/no-children-prop: 'off'