forked from gamba-labs/flip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
49 lines (48 loc) · 1.57 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
env:
browser: true
es2021: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
ecmaFeatures:
jsx: true
plugins:
- react
- '@typescript-eslint'
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
rules:
indent: 'off'
semi: ['error', 'never']
quotes: ['error', 'single']
eol-last: ['error', 'always']
object-curly-spacing: ['error', 'always']
array-bracket-spacing: ['error', 'never']
'@typescript-eslint/indent': ['error', 2]
'@typescript-eslint/explicit-module-boundary-types': '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']
func-call-spacing: ['error', 'never']
brace-style: ['error', '1tbs']
jsx-quotes: ['error', 'prefer-double']
quote-props: ['error', 'as-needed']
space-in-parens: ['error', 'never']
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/prop-types: 'off'
react/no-children-prop: 'off'