generated from kryptoken101/krypt-swap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
139 lines (122 loc) · 2.71 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
root: true
globals:
React: true
describe: true
it: true
parser: babel-eslint
plugins:
- jsx-a11y
- react
- import
- babel
- reactintl
env:
browser: true
es6: true
parserOptions:
ecmaVersion: 8
sourceType: module
ecmaFeatures:
experimentalObjectRestSpread: true
experimentalDecorators: true
jsx: true
restParams: true
spread: true
arrowFunctions: true
classes: true
defaultParams: true
templateStrings: true
extends: ['eslint-config-airbnb']
rules:
indent:
- error
- 2
- SwitchCase: 1
linebreak-style:
- error
- unix
quotes:
- error
- single
- allowTemplateLiterals: true
semi:
- error
- never
import/newline-after-import:
- error
- count: 1
# rewrite airbnb config
array-callback-return: warn
no-debugger: 2
no-console: 0
default-case: warn
dot-location: [warn, property]
eqeqeq: 2
comma-dangle:
- error
- always-multiline
max-len:
- error
- code: 180
no-multi-spaces: 0
no-return-assign: 0
no-underscore-dangle: 0
no-lonely-if: 0
no-param-reassign: 0
no-confusing-arrow: 0
no-extra-boolean-cast: 0
no-plusplus: 0
no-nested-ternary: 0
no-mixed-operators: 0
no-shadow: 0
no-cond-assign: 0
no-use-before-define: 0
no-template-curly-in-string: 0
no-unused-vars: 2
func-names: 0
padded-blocks: 0
object-curly-newline: 0
quote-props: 0
array-bracket-spacing: 0
brace-style: 0
arrow-parens: 0
key-spacing: 0
consistent-return: 0
function-paren-newline: 0
class-methods-use-this: 0
object-property-newline: 0
prefer-const: 0
prefer-promise-reject-errors: 0
react/default-props-match-prop-types: 0
react/require-default-props: 0
react/jsx-filename-extension: 0
react/display-name: 0
react/prop-types: 0
react/forbid-prop-types: 0
react/sort-comp: 0
react/jsx-closing-bracket-location: 0
react/no-array-index-key: 0
react/no-danger: 0
react/no-unused-state: 0
import/extensions: 0
import/no-unresolved: 0
import/first: 0
import/no-extraneous-dependencies: 0
import/no-dynamic-require: 0
import/prefer-default-export: 0
jsx-a11y/no-static-element-interactions: 0
jsx-a11y/click-events-have-key-events: 0
jsx-a11y/media-has-caption: 0
jsx-a11y/aria-role: 0
jsx-a11y/label-has-for: 0
jsx-a11y/anchor-is-valid: 0
jsx-a11y/interactive-supports-focus: 0
reactintl/default-message: 2
reactintl/contains-hardcoded-copy: 2
overrides:
- files: '**/*.+(ts|tsx)'
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
plugins: ['@typescript-eslint/eslint-plugin']
extends: ['plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended']