-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.cjs
45 lines (44 loc) · 1.03 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
35
36
37
38
39
40
41
42
43
44
45
/** @type {import("eslint").Linter.Config} */
module.exports = {
$schema: "https://json.schemastore.org/eslintrc",
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
rules: {
"import/no-anonymous-default-export": "off",
"prettier/prettier": "error",
"linebreak-style": "off",
"no-prototype-builtins": "off",
"semi": "off",
"indent": "off",
"@typescript-eslint/semi": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}
]
},
overrides: [
{
extends: ["plugin:@typescript-eslint/disable-type-checked"],
files: ["./**/*.mjs", "*.js"]
}
],
ignorePatterns: [
"node_modules/",
"dist/",
"coverage/",
"docs/",
".eslintrc.cjs",
"package.json",
"tsconfig.json"
]
}