-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
26 lines (26 loc) · 887 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
extraFileExtensions: ['.json'],
},
plugins: ['@typescript-eslint', 'prettier', 'nestjs'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:nestjs/recommended'],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js', 'package.json', 'package-lock.json', '.vscode/settings.json'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'nestjs/use-dependency-injection': 'error',
'nestjs/use-validation-pipe': 'error',
'nestjs/parse-int-pipe': 'error',
'prettier/prettier': 'error',
},
}