-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
75 lines (74 loc) · 1.89 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
# @Author: Guan Gui <guiguan>
# @Date: 2016-06-02T14:58:00+10:00
# @Email: [email protected]
# @Last modified by: guiguan
# @Last modified time: 2017-03-08T16:48:31+11:00
extends: airbnb
parser: babel-eslint
env:
browser: true
node: true
mocha: true
es6: true
rules:
arrow-body-style: 0
key-spacing: 0
object-property-newline: 0
no-cond-assign: [error, except-parens]
no-nested-ternary: 0
no-shadow: 0
eqeqeq: 0
array-callback-return: 0
no-plusplus: 0
prefer-destructuring: 0
no-param-reassign: 0
no-await-in-loop: 0
space-before-function-paren: 0
global-require: 0
consistent-return: 0
quote-props: 0
no-underscore-dangle: 0
prefer-const: [error, {ignoreReadBeforeAssign: true}]
max-len: 0
prefer-template: 0
object-curly-spacing: 0
comma-dangle: 0
indent: 0
no-console: 0
no-alert: 0
no-multiple-empty-lines: [2, {max: 3}]
func-names: 0
new-cap: [2, {capIsNew: false}]
import/default: 0
import/no-duplicates: 0
import/named: 0
import/namespace: 0
import/no-named-as-default: 2
# this requires [email protected] to be installed in order for import/resolver settings to work
import/no-unresolved: [2, {ignore: ["^[~]", "^[#]"]}]
import/prefer-default-export: 0
import/no-extraneous-dependencies: 0
import/extensions: 0
react/prefer-stateless-function: 0
react/jsx-space-before-closing: 0
react/jsx-first-prop-new-line: 0
react/jsx-closing-bracket-location: 0
react/no-multi-comp: 0
react/no-did-mount-set-state: 0
react/prop-types: 0
no-unused-vars: [warn, {argsIgnorePattern: ^_}]
no-restricted-syntax: 0
no-unused-expressions: 0
newline-per-chained-call: 0
no-undef: 0
class-methods-use-this: 0
no-use-before-define: [error, {functions: false, classes: true}]
plugins: [react, import]
settings:
import/resolver:
node:
moduleDirectory:
- node_modules
- src
globals:
l: false