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 43
/
.eslintrc.yml
88 lines (87 loc) · 2.44 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
# @Author: Guan Gui <guiguan>
# @Date: 2016-06-02T14:58:00+10:00
# @Email: [email protected]
# @Last modified by: guiguan
# @Last modified time: 2018-02-08T11:20:28+11:00
extends: [airbnb, plugin:flowtype/recommended]
parser: babel-eslint
env:
browser: true
node: true
jest: true
es6: true
rules:
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
no-underscore-dangle: off
prefer-const: [error, {ignoreReadBeforeAssign: true}]
max-len: off
prefer-template: off
object-curly-spacing: off
comma-dangle: 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 [email protected] 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
linebreak-style: off
react/jsx-closing-bracket-location: off
react/no-multi-comp: off
react/no-did-mount-set-state: off
no-unused-vars: [error, {argsIgnorePattern: ^_}]
no-restricted-syntax: off
no-unused-expressions: off
newline-per-chained-call: off
no-use-before-define: [error, {functions: false, classes: true}]
function-paren-newline: off
prefer-destructuring: warn
prefer-promise-reject-errors: warn
object-curly-newline: [off, {
ObjectExpression: { minProperties: 0, multiline: true },
ObjectPattern: { minProperties: 0, multiline: true }
}]
flowtype/no-types-missing-file-annotation: off
flowtype/generic-spacing: off
arrow-parens: off
no-lone-blocks: off
no-multi-assign: off
no-mixed-operators: off
plugins: [react, import, flowtype]
settings:
import/resolver:
node:
moduleDirectory:
- node_modules
- src
globals:
l: false
MODE: false
IS_PRODUCTION: false
printLogs: false
CONTROLLER_PORT: false
findAvailablePort: false