-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.js
63 lines (63 loc) · 1.49 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
62
63
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
},
plugins: [
'import',
'tsdoc',
],
extends: [
'@concepta/eslint-config/nest',
'plugin:jsdoc/recommended-typescript',
],
ignorePatterns: [
'packages/*/dist/**',
'**/node_modules/**',
'**/.eslintrc.js',
'**/.eslintrc.spec.js',
'**/tsconfig.json',
'**/tsconfig.eslint.json',
'**/commitlint.config.js',
],
settings: {
jsdoc: {
mode: 'typescript',
},
},
rules: {
'import/no-extraneous-dependencies': 'error',
'@darraghor/nestjs-typed/param-decorator-name-matches-route-param': 'off',
'jsdoc/tag-lines': ['error', 'any', { startLines: 1 }],
'tsdoc/syntax': 'error',
},
overrides: [
{
files: ['*.json'],
parser: 'jsonc-eslint-parser',
parserOptions: {
jsonSyntax: 'JSON',
},
},
{
files: ['*.ts'],
rules: {
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-returns': 'off',
},
},
{
files: ['*.spec.ts', '*.fixture.ts'],
rules: {
'@darraghor/nestjs-typed/controllers-should-supply-api-tags': 'off',
'@darraghor/nestjs-typed/api-method-should-specify-api-response': 'off',
'plugin:jsdoc/recommended-typescript': 'off',
'jsdoc/tag-lines': 'off',
'tsdoc/syntax': 'off',
},
},
],
};