forked from willsoto/nestjs-objection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 815 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.lint.json",
},
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
],
env: {
node: true,
},
overrides: [
{
files: ["test/**/*.ts"],
env: {
mocha: true,
},
extends: ["plugin:mocha/recommended"],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"no-unused-expressions": "off",
"no-magic-numbers": "off",
"@typescript-eslint/unbound-method": "off",
},
},
],
};