-
Notifications
You must be signed in to change notification settings - Fork 0
/
typescript-node-jest.js
37 lines (37 loc) · 1.01 KB
/
typescript-node-jest.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
module.exports = {
env: {
node: true,
es6: true,
jest: true,
jasmine: true
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2021,
project: "tsconfig.json",
sourceType: "module"
},
extends: [
"./rules/deprecation.js",
// "./rules/eslint.js", -> commented out since "typescript-eslint" rules inherit from this
"./rules/eslint-comments.js",
"./rules/import-typescript-node.js",
"./rules/jsdoc-typescript.js",
"./rules/prettier.js",
"./rules/typescript-eslint.js",
"./rules/unicorn.js"
].map(require.resolve),
rules: {},
overrides: [
// Overrides for test files
{
files: ["**/?(*.)+(spec).[jt]s?(x)"],
extends: ["./rules/jasmine.js", "./rules/jest.js"].map(
require.resolve
),
rules: {
"@typescript-eslint/unbound-method": "off"
}
}
]
};