-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.cjs
42 lines (40 loc) · 1.1 KB
/
.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
38
39
40
41
42
'use strict'
const { overrides } = require('@netlify/eslint-config-node')
module.exports = {
extends: '@netlify/eslint-config-node',
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',
'import/no-unresolved': 'off',
'n/no-missing-import': 'off',
'no-magic-numbers': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
'unicorn/prefer-json-parse-buffer': 'off',
'unicorn/prefer-ternary': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'func-style': 'off',
},
overrides: [
...overrides,
{
files: ['src/**/*.test.ts', 'vitest.config.ts'],
rules: {
'max-lines-per-function': 'off',
'max-nested-callbacks': 'off',
'max-statements': 'off',
'no-magic-numbers': 'off',
'require-await': 'off',
'unicorn/consistent-function-scoping': 'off',
},
},
],
}