-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 1000 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
34
module.exports = {
root: true,
env: {
node: true,
es2021: true,
},
extends: [
// https://github.com/typescript-eslint/typescript-eslint/blob/055add01299eb91c87323677038b5f7d08b448d4/packages/eslint-plugin/src/configs/recommended.ts
"eslint:recommended",
// https://github.com/typescript-eslint/typescript-eslint/blob/055add01299eb91c87323677038b5f7d08b448d4/packages/eslint-plugin/src/configs/eslint-recommended.ts
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
],
overrides: [
{
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["jest", "@typescript-eslint"],
rules: {
"@typescript-eslint/no-inferrable-types": "off",
"prefer-const": "off",
"jest/no-identical-title": "off",
"@typescript-eslint/no-unused-vars": "off",
},
};