-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.cjs
34 lines (31 loc) · 1.07 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
node: true,
},
ignorePatterns: ["dist", "build", "node_modules", "working-files", "**/*.js"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
},
plugins: ["@typescript-eslint", "unused-imports", "simple-import-sort"],
rules: {
"no-console": "off",
"no-restricted-imports": [
"error",
{
patterns: [".*"],
},
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-comment": "off",
"unused-imports/no-unused-imports": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
};