-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.cjs
37 lines (35 loc) · 1005 Bytes
/
.eslintrc.cjs
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
'use strict'
const { overrides } = require('@netlify/eslint-config-node')
module.exports = {
extends: '@netlify/eslint-config-node',
ignorePatterns: ['deno/**/*', 'node/vendor/**', 'test/deno/**/*', 'test/fixtures/**/*'],
parserOptions: {
sourceType: 'module',
},
rules: {
complexity: 'off',
'import/extensions': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-statements': 'off',
'node/no-missing-import': 'off',
'no-magic-numbers': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
'unicorn/prefer-json-parse-buffer': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
},
overrides: [
...overrides,
{
files: ['node/**/*.test.ts', 'vitest.config.ts'],
rules: {
'max-lines-per-function': 'off',
'max-nested-callbacks': 'off',
'max-statements': 'off',
'no-magic-numbers': 'off',
},
},
],
}