-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
33 lines (33 loc) · 919 Bytes
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["simple-import-sort", "jest"],
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"node/no-unpublished-import": "off",
"node/no-missing-import": [
"error",
{
"tryExtensions": [".js", ".ts", ".d.ts"]
}
],
"node/no-unsupported-features/es-syntax": "off",
"jest/no-restricted-matchers": [
"warn",
{
"toThrow": "Use .toMatchError() instead of .toThrow()",
"toThrowError": "Use .toMatchError() instead of .toThrowError()"
}
],
"no-console": "error",
"no-duplicate-imports": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}