forked from netlify/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
61 lines (59 loc) · 1.62 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
52
53
54
55
56
57
58
59
60
61
const { overrides } = require('@netlify/eslint-config-node')
module.exports = {
extends: '@netlify/eslint-config-node',
rules: {
// Those rules from @netlify/eslint-config-node are currently disabled
// TODO: remove, so those rules are enabled
'class-methods-use-this': 0,
complexity: 0,
'max-depth': 0,
'max-lines': 0,
'max-lines-per-function': 0,
'max-nested-callbacks': 0,
'max-statements': 0,
'no-param-reassign': 0,
'no-process-exit': 0,
'fp/no-class': 0,
'fp/no-delete': 0,
'fp/no-get-set': 0,
'fp/no-let': 0,
'fp/no-loops': 0,
'fp/no-mutating-assign': 0,
'fp/no-mutating-methods': 0,
'fp/no-mutation': 0,
'fp/no-proxy': 0,
'fp/no-this': 0,
'import/max-dependencies': 0,
'node/no-sync': 0,
'promise/catch-or-return': 0,
'promise/no-callback-in-promise': 0,
'promise/no-nesting': 0,
'promise/no-return-wrap': 0,
'promise/prefer-await-to-callbacks': 0,
'promise/prefer-await-to-then': 0,
// TODO: harmonize with filename snake_case in other Netlify Dev projects
'unicorn/filename-case': [2, { case: 'kebabCase', ignore: ['.*.md'] }],
},
overrides: [
...overrides,
// Documentation site's browser JavaScript
{
files: ['site/src/**/*.js'],
parserOptions: {
sourceType: 'module',
},
rules: {
'node/no-unsupported-features/es-syntax': 0,
},
},
// Example functions
{
files: ['src/functions-templates/**/*.js'],
rules: {
'require-await': 0,
'import/no-unresolved': 0,
'node/no-missing-require': 0,
},
},
],
}