This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.yml
125 lines (124 loc) · 3.39 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
# @Author: Guan Gui <guiguan>
# @Date: 2016-06-02T14:58:00+10:00
# @Email: root@guiguan.net
# @Last modified by: guiguan
# @Last modified time: 2018-02-26T15:32:07+11:00
extends: [airbnb, plugin:flowtype/recommended]
parser: babel-eslint
env:
browser: true
node: true
jest: true
es6: true
rules:
no-continue: off
no-labels: off
arrow-body-style: off
key-spacing: off
object-property-newline: off
no-cond-assign: [error, except-parens]
no-nested-ternary: off
no-shadow: off
eqeqeq: off
array-callback-return: off
no-param-reassign: off
space-before-function-paren: off
global-require: off
consistent-return: off
quote-props: off
linebreak-style: off
no-underscore-dangle: off
prefer-const: [error, {ignoreReadBeforeAssign: true}]
max-len: off
prefer-template: off
object-curly-spacing: off
comma-dangle: off
object-curly-newline: [off, {
ObjectExpression: { minProperties: 0, multiline: true },
ObjectPattern: { minProperties: 0, multiline: true }
}]
jsx-a11y/label-has-for: off
jsx-a11y/interactive-supports-focus: off
jsx-a11y/click-events-have-key-events: off
jsx-a11y/no-noninteractive-element-interactions: off
function-paren-newline: off
no-restricted-globals: off
indent: off
no-console: off
no-alert: off
no-multiple-empty-lines: [error, {max: 3}]
func-names: off
new-cap: [error, {capIsNew: false}]
import/default: off
import/no-duplicates: off
import/named: off
import/namespace: off
import/no-named-as-default: error
# this requires eslint-import-resolver-node@0.3.0 to be installed in order for import/resolver settings to work
import/no-unresolved: [error, {ignore: ["^[~]", "^[#]"]}]
import/prefer-default-export: off
import/no-extraneous-dependencies: off
import/extensions: off
react/prefer-stateless-function: off
react/jsx-space-before-closing: off
react/jsx-first-prop-new-line: off
react/jsx-closing-bracket-location: off
react/no-multi-comp: off
react/no-did-mount-set-state: off
react/prop-types: off
react/sort-comp: off
react/no-unused-prop-types: off
react/no-unused-state: off
react/jsx-max-props-per-line: off
react/prefer-es6-class: off
react/require-default-props: off
react/forbid-prop-types: off
no-unused-vars: [error, {argsIgnorePattern: ^_}]
no-restricted-syntax: off
no-unused-expressions: off
newline-per-chained-call: off
class-methods-use-this: off
no-multi-str: off
no-useless-escape: off
no-use-before-define: [error, {functions: false, classes: true}]
no-mixed-operators: off
no-return-assign: [error, except-parens]
no-prototype-builtins: off
prefer-destructuring:
- warn
- VariableDeclarator:
array: true
object: true
AssignmentExpression:
array: true
object: true
- enforceForRenamedProperties: false
prefer-promise-reject-errors: warn
no-control-regex: off
flowtype/no-types-missing-file-annotation: off
flowtype/generic-spacing: off
arrow-parens: off
no-multi-assign: off
plugins: [react, import, flowtype]
settings:
import/resolver:
node:
moduleDirectory:
- node_modules
- src
globals:
locale: false
globalString: false
globalNumber: false
Globalize: false
IS_ELECTRON: false
IS_PRODUCTION: false
IS_DEVELOPMENT: false
IS_TEST: false
IS_STORYBOOK: false
GetRandomPort: false
UAT: false
logToMain: false
sendToMain: false
l: false
logger: false