-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (34 loc) · 1.18 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
34
35
36
37
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/no-use-before-define": "off",
// Redundant with TS compiler
"@typescript-eslint/no-unused-vars": "off",
"import/order": [
"error",
{
// Enforce newlines between import groups (and no newlines within groups)
"newlines-between": "always",
// Import builtins first, then external modules, then everything else as a final group
groups: ["builtin", "external", ["parent", "sibling", "index"]],
alphabetize: {
order: "asc",
},
},
],
eqeqeq: "error",
"no-return-await": "warn",
"no-single-line-block-comment": "off",
"no-throw-literal": "error",
"no-var": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "warn",
},
};