-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
31 lines (31 loc) · 988 Bytes
/
.eslintrc.cjs
File metadata and controls
31 lines (31 loc) · 988 Bytes
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
/* eslint-env node */
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: { project: ["./tsconfig.cjs.json", "./tsconfig.esm.json", "./tsconfig.json"] },
plugins: ["@typescript-eslint"],
root: true,
env: { node: true, jest: true },
ignorePatterns: [
"lib",
"node_modules",
".eslintrc.cjs",
"**/*.spec.ts",
"expressots.config.ts",
"jest.config.ts",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unsafe-function-type": "error",
},
};