forked from alveraboquet/redstone-oracles-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.01 KB
/
.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 = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:prettier/recommended",
"plugin:workspaces/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "workspaces"],
ignorePatterns: ["dist", "*.js"],
rules: {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"no-constant-condition": "off",
"no-return-await": "off",
"class-methods-use-this": "off",
"@typescript-eslint/class-methods-use-this": [
"error",
{
ignoreOverrideMethods: true,
},
],
"@typescript-eslint/return-await": ["error", "always"],
"workspaces/require-dependency": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"@typescript-eslint/unbound-method": ["error", { ignoreStatic: true }],
},
root: true,
};