-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.16 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: [
"prettier/@typescript-eslint",
"prettier/prettier",
"plugin:promise/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
parser: "@typescript-eslint/parser",
sourceType: "module",
ecmaVersion: 12,
},
plugins: ["@typescript-eslint"],
rules: {
"prefer-const": "error",
semi: ["error", "always"],
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
// prefer to be able to be implicit sometimes
"@typescript-eslint/explicit-module-boundary-types": "off",
// allow `index.ts` files to aggregate exports
"import/export": "off",
// always prefer named exports
"import/prefer-default-export": "off",
// when you're running in parallel and waiting on Promise.all() this is problematic
"promise/always-return": "off",
// not helpful when destructuring an array
"@typescript-eslint/no-unused-vars": "off",
// note you must disable the base rule as it can report incorrect errors
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
},
};