This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
forked from sisense/graphql2rest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
71 lines (71 loc) · 2.4 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"process": true
},
"plugins": ["unicorn", "simple-import-sort", "promise", "node"],
"extends": ["eslint:recommended", "airbnb-base"],
"rules": {
"comma-dangle": [1, "only-multiline"],
"constructor-super": 2,
"import/no-dynamic-require": "off",
"indent": [2, "tab", { "SwitchCase": 1 }],
"linebreak-style": [0, "unix"],
"no-class-assign": 2,
"no-confusing-arrow": 2,
"no-console": 0,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-dynamic-require": "off",
"no-dupe-class-members": 2,
"no-tabs":"off",
"no-template-curly-in-string": "error",
"no-this-before-super": 2,
"no-undef": 2,
"no-unused-expressions": 2,
"no-unused-vars": 2,
"node/exports-style": "error",
"node/prefer-global/buffer": "error",
"node/prefer-global/url": "error",
"object-shorthand": [2, "always"],
"prefer-spread": 1,
"prefer-template": 2,
"promise/always-return": "error",
"promise/avoid-new": "off",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-new-statics": "error",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/prefer-await-to-callbacks": "warn",
"promise/prefer-await-to-then": "warn",
"promise/valid-params": "warn",
"quotes": [2, "single"],
"require-yield": 2,
"semi": [2, "always"],
"simple-import-sort/sort": "error",
"unicorn/catch-error-name": ["error", {"name": "e"}],
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-array-instanceof": "error",
"unicorn/no-new-buffer": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"max-len": ["error", { "code": 130, "ignoreComments": true, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true }],
"object-curly-newline": ["error", {"consistent": true}],
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
"no-param-reassign": ["warn", { "props": true }],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"global-require": "off"
}
}