forked from FreeFeed/freefeed-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
121 lines (120 loc) · 3.53 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"plugins": [
"babel",
"import",
"lodash",
"promise",
"you-dont-need-lodash-underscore"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
},
"settings": {
"import/ignore": [
"node_modules"
]
},
"rules": {
"babel/array-bracket-spacing": [2, "never"],
"babel/arrow-parens": 2,
"arrow-spacing": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"consistent-return": 2,
"eol-last": 2,
"func-call-spacing": 2,
"import/default": 2,
"import/named": 2,
"import/namespace": 2,
"import/no-duplicates": 2,
"import/no-extraneous-dependencies": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/no-unresolved": 2,
"import/order": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"key-spacing": [2, { "align": "value" }],
"keyword-spacing": 2,
"linebreak-style": 2,
"babel/no-await-in-loop": 2,
"lodash/callback-binding": 2,
"lodash/collection-method-value": 2,
"lodash/collection-return": 2,
"lodash/no-double-unwrap": 2,
"lodash/no-extra-args": 2,
"lodash/prefer-compact": 2,
"lodash/prefer-filter": 2,
"lodash/prefer-map": 2,
"lodash/unwrap": 2,
"no-duplicate-imports": 2,
"no-else-return": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": 2,
"no-native-reassign": 2,
"no-nested-ternary": 2,
"no-restricted-properties": [
1,
{
"object": "_",
"property": "extend",
"message": "consider using [...arr] or { ...obj } instead"
}
],
"no-spaced-func": 2,
"no-tabs": 2,
"no-template-curly-in-string": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-unneeded-ternary": 2,
"no-unsafe-negation": 2,
"no-useless-computed-key": 2,
"no-var": 2,
"no-warning-comments": 1,
"object-curly-newline": [2, { "multiline": true }],
"babel/object-curly-spacing": [2, "always"],
"babel/object-shorthand": [2, "properties"],
"padded-blocks": [2, "never"],
"prefer-arrow-callback": [2, { "allowNamedFunctions": true }],
"prefer-const": 2,
"prefer-numeric-literals": 1,
"prefer-reflect": 1,
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 2,
"promise/param-names": 2,
"promise/catch-or-return": 2,
"promise/no-native": 0,
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"require-yield": 0,
"rest-spread-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always", { "exceptions": ["/"] }],
"strict": [2, "never"],
"template-curly-spacing": 2,
"unicode-bom": 2,
"you-dont-need-lodash-underscore/assign": 2,
"you-dont-need-lodash-underscore/concat": 2,
"you-dont-need-lodash-underscore/find": 2,
"you-dont-need-lodash-underscore/find-index": 2,
"you-dont-need-lodash-underscore/includes": 2,
"you-dont-need-lodash-underscore/keys": 2,
"you-dont-need-lodash-underscore/repeat": 2,
"you-dont-need-lodash-underscore/to-lower": 2,
"you-dont-need-lodash-underscore/to-upper": 2,
"you-dont-need-lodash-underscore/trim": 2
}
}