-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
.eslintrc
93 lines (87 loc) · 2.37 KB
/
.eslintrc
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# vi: set ft=yaml :
root: true
plugins:
- 'react'
- 'react-hooks'
extends:
- 'eslint:recommended'
- 'plugin:react/recommended'
- 'plugin:react-hooks/recommended'
parser: '@babel/eslint-parser'
parserOptions:
ecmaVersion: 2021
sourceType: module
ecmaFeatures:
jsx: true
babelOptions:
configFile: './src/.babelrc.json'
env:
es2021: true
node: true
browser: true
settings:
react:
version: detect
rules:
array-bracket-spacing: 2
block-spacing: 2
brace-style: [2, '1tbs', { allowSingleLine: true }]
comma-dangle: 2
comma-spacing: 2
comma-style: 2
complexity: [1, 16]
dot-location: [2, 'property']
eqeqeq: [2, 'smart']
indent: [0, 2, { SwitchCase: 1 }]
indent-legacy: [2, 2, { SwitchCase: 1 }]
jsx-quotes: [2, 'prefer-double']
key-spacing: [1, { beforeColon: false, afterColon: true }]
keyword-spacing: 2
max-depth: [1, 6]
max-len: [1, 80, 2, { ignoreComments: true, ignoreUrls: true, ignorePattern: "[`'\"\/],?$" }]
max-nested-callbacks: [1, 4]
no-caller: 2
no-constant-condition: [2, { checkLoops: false }]
no-eval: 2
no-implied-eval: 2
no-mixed-spaces-and-tabs: 2
no-multi-str: 2
no-shadow: [2, { allow: ['done', 'reject', 'resolve', 'conn', 'cb', 'err', 'error']}]
no-spaced-func: 2
no-trailing-spaces: 2
no-unexpected-multiline: 2
no-unneeded-ternary: 2
no-unreachable: 2
no-useless-concat: 2
no-unsafe-finally: 0
object-curly-spacing: [2, 'always']
operator-linebreak: [2, 'after']
quote-props: [2, 'consistent-as-needed']
quotes: [2, 'single', 'avoid-escape']
radix: 2
require-atomic-updates: 0
react/display-name: 0
react/no-deprecated: 1
react/jsx-boolean-value: 2
react/jsx-closing-bracket-location: [2, 'after-props']
react/jsx-curly-spacing: [2, 'never']
react/jsx-equals-spacing: [2, 'never']
react/jsx-indent-props: [2, 2]
react/jsx-indent: [2, 2]
react/jsx-key: 2
react/jsx-no-bind: 0
react/jsx-pascal-case: 2
react/jsx-wrap-multilines: [2, { 'arrow': false }]
react/react-in-jsx-scope: 0
react/prefer-es6-class: 2
react/prefer-stateless-function: [2, { 'ignorePureComponents': true }]
react/require-render-return: 2
react/self-closing-comp: 2
semi-spacing: 0
semi: [2, 'never']
space-before-blocks: 2
space-before-function-paren: [2, { anonymous: 'always', named: 'never' }]
space-infix-ops: 2
space-unary-ops: 2
space-in-parens: 2
wrap-regex: 2