-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
38 lines (37 loc) · 909 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
34
35
36
37
38
// .eslintrc.json
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "commonjs",
"ecmaVersion": 2020
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": [
"@typescript-eslint",
"prettier",
"unused-imports",
"simple-import-sort"
],
"ignorePatterns": [
"node_modules/",
"dist/",
"package.json",
"tsconfig.json",
".vscode/"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off", // We'll use the unused-imports plugin instead
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration",
"message": "Enums are forbidden."
}
],
"unused-imports/no-unused-imports": "error",
"require-await": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}