-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy path.eslintrc.js
51 lines (50 loc) · 1.31 KB
/
.eslintrc.js
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
const { overrides } = require('@netlify/eslint-config-node')
module.exports = {
extends: '@netlify/eslint-config-node',
rules: {
'max-depth': 0,
complexity: 0,
'fp/no-let': 0,
'fp/no-loops': 0,
'fp/no-mutation': 0,
'fp/no-mutating-methods': 0,
'id-length': 0,
'max-statements': 0,
'no-await-in-loop': 0,
'node/exports-style': 0,
'node/global-require': 0,
'node/prefer-global/process': 0,
// Allow a single word inline so that it can do language tags for syntax highlighting
// ['error', { ignorePattern: /^ (\w+) $/ }],
'no-inline-comments': 0,
'no-magic-numbers': 0,
'no-param-reassign': 0,
'no-promise-executor-return': 0,
'no-prototype-builtins': 0,
'no-unused-vars': 0,
'prefer-regex-literals': 0,
'promise/prefer-await-to-callbacks': 0,
'unicorn/consistent-function-scoping': 0,
'unicorn/filename-case': 0,
'unicorn/no-array-push-push': 0,
'unicorn/numeric-separators-style': 0,
},
parserOptions: {
sourceType: 'module',
},
env: {
jest: true,
},
overrides: [
...overrides,
{
files: ['cypress/**/*.spec.ts'],
rules: {
'max-nested-callbacks': 0,
'promise/prefer-await-to-then': 0,
'promise/always-return': 0,
'promise/catch-or-return': 0,
},
},
],
}