generated from anchan828/nest-lerna-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
25 lines (24 loc) · 865 Bytes
/
eslint.config.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
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const { includeIgnoreFile } = require("@eslint/compat");
const { resolve } = require("path");
module.exports = [
includeIgnoreFile(resolve(__dirname, ".gitignore")),
...tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, {
languageOptions: {
parserOptions: {
projectService: true,
},
},
rules: {
"no-unused-vars": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-explicit-any": "off",
"lines-between-class-members": ["error", "always"],
},
ignores: ["**/.prettierrc.js", "**/cli.js", "**/jest.config.js"],
}),
];