forked from Emurgo/yoroi-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
101 lines (101 loc) · 2.79 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
94
95
96
97
98
99
100
101
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true
}
},
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"func-names": "off",
"new-cap": "off",
"arrow-parens": ["off"],
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": ["error", { "ignore": ["electron"] }],
"import/no-extraneous-dependencies": "off",
"import/no-dynamic-require": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"import/order": "off",
"lines-between-class-members": "off",
"no-multi-spaces": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-return-await": "off",
"no-use-before-define": "off",
"object-curly-newline": "off",
"operator-linebreak": 0,
"prefer-destructuring": 0,
"promise/param-names": 2,
"promise/always-return": 2,
"promise/catch-or-return": 2,
"promise/no-native": 0,
"react/button-has-type": 1,
"react/destructuring-assignment": 0,
"react/no-array-index-key": 1,
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/jsx-closing-bracket-location": 1,
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/prefer-stateless-function": "off",
"react/no-unused-prop-types": "off",
"react/prop-types": 0,
"react/require-default-props": 1,
"react/sort-comp": 0,
"class-methods-use-this": 0,
"no-duplicate-imports": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-bitwise": 0,
"no-underscore-dangle": 0,
"no-console": 0,
"no-mixed-operators": 0,
"no-multi-assign": 0,
"no-unneeded-ternary": ["error", { "defaultAssignment": true }],
"prefer-template": 0,
"no-unused-vars": 1,
"no-trailing-spaces": 1,
"padded-blocks": 0,
"no-undef": 1,
"arrow-body-style": 1,
"key-spacing": 1,
"no-empty-function": 1,
"max-len": 1,
"no-useless-escape": 1,
"prefer-const": 1,
"object-curly-spacing": 1,
"spaced-comment": 1,
"quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"import/imports-first": 1,
"no-multiple-empty-lines": 1,
"react/jsx-indent": 1,
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"global-require": "off"
},
"plugins": [
"import",
"promise",
"react",
"flowtype"
],
"globals": {
"chrome": true,
"API": true,
"NETWORK": true,
"MOBX_DEV_TOOLS": true,
"CONFIG": true,
"yoroi": true
}
}