forked from bithyve/bitcointribe-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
60 lines (57 loc) · 1.57 KB
/
.eslintrc.js
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
54
55
56
57
58
59
60
module.exports = {
'env': {
'browser': true,
'es2021': true,
'node': true
},
'extends': [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 2018,
'sourceType': 'module'
},
'plugins': [ 'react', '@typescript-eslint' ],
'rules': {
'no-case-declarations': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty-pattern': 'off',
'eslint-disable no-case-declarations': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'computed-property-spacing': [ 'error', 'always' ],
'array-bracket-spacing': [ 'error', 'always' ],
'object-curly-spacing': [ 'error', 'always' ],
'space-in-parens': [ 'error', 'always' ],
'quotes': [ 'error', 'single' ],
'comma-spacing': [ 'error', {
'before': false, 'after': true
} ],
'semi': [ 'error', 'never' ],
'indent': [ 'error', 2, {
'SwitchCase': 2
} ],
'object-curly-newline': [ 'error', {
'ObjectExpression': 'always',
'ObjectPattern': {
'multiline': true
}
} ],
'eol-last': [ 'error', 'always' ],
'react/display-name': 'off',
'react/prop-types': 'off',
'prefer-const': [ 'warn', {
'destructuring': 'all',
'ignoreReadBeforeAssign': true
} ],
'no-trailing-spaces': 'error'
}
}