forked from napthedev/nettruyen-downloader-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
25 lines (25 loc) · 800 Bytes
/
.eslintrc.cjs
File metadata and controls
25 lines (25 loc) · 800 Bytes
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
module.exports = {
parser: "@typescript-eslint/parser",
env: {
browser: true,
node: true,
},
extends: ["eslint:recommended", "prettier"],
parserOptions: {
tsconfigRootDir: __dirname,
project: ["tsconfig.json", "tsconfig.eslint.json"],
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "simple-import-sort"],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { ignoreRestSiblings: true }],
"no-extra-boolean-cast": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
},
};