-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
36 lines (36 loc) · 848 Bytes
/
.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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['node', 'prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'],
env: {
node: true,
},
rules: {
'node/shebang': 'off',
'node/no-missing-import': 'off',
'node/no-unsupported-features/es-syntax': [
'error',
{
ignores: ['modules'],
},
],
},
overrides: [
{
env: { mocha: true },
files: '**/*-test.ts',
plugins: ['mocha'],
extends: ['plugin:mocha/recommended'],
rules: {
'node/no-unpublished-require': 'off',
'mocha/no-setup-in-describe': 'off',
'mocha/no-hooks-for-single-case': 'off',
},
},
],
};