-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.js
68 lines (68 loc) · 1.7 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
64
65
66
67
68
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
},
plugins: [
'import',
// 'jsdoc',
],
extends: [
'@concepta/eslint-config/nest',
// 'plugin:jsdoc/recommended',
],
ignorePatterns: [
'packages/*/dist/**',
'**/node_modules/**',
'**/.eslintrc.js',
'**/.eslintrc.spec.js',
'**/tsconfig.json',
'**/tsconfig.eslint.json',
'**/commitlint.config.js',
'website/*',
],
settings: {
jsdoc: {
mode: 'typescript',
},
},
rules: {
'import/no-extraneous-dependencies': 'error',
'@darraghor/nestjs-typed/param-decorator-name-matches-route-param': 'off',
// 'jsdoc/require-jsdoc': [
// 'warn',
// {
// contexts: ['any', 'PropertyDefinition'],
// require: {
// ClassDeclaration: true,
// ClassExpression: true,
// MethodDefinition: true,
// FunctionDeclaration: true,
// FunctionExpression: true,
// },
// },
// ],
// 'jsdoc/require-description': ['warn', { contexts: ['any'] }],
// 'jsdoc/require-property-description': ['warn', { contexts: ['any'] }],
// 'jsdoc/require-param-type': 'off',
// 'jsdoc/require-returns': 'off',
},
overrides: [
{
files: ['*.json'],
parser: 'jsonc-eslint-parser',
parserOptions: {
jsonSyntax: 'JSON',
},
},
{
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',
},
},
],
};