forked from callumalpass/tasknotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
50 lines (50 loc) · 1.41 KB
/
.eslintrc
File metadata and controls
50 lines (50 loc) · 1.41 KB
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
46
47
48
49
50
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"browser": true,
"es6": true
},
"plugins": [
"@typescript-eslint",
"obsidianmd"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:obsidianmd/recommended",
"prettier"
],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "varsIgnorePattern": "^_" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"obsidianmd/settings-tab": "off",
"obsidianmd/platform": "off",
"deprecation/deprecation": "off",
"import/no-nodejs-modules": "off",
"@microsoft/sdl/no-inner-html": "warn",
"no-constant-condition": "warn",
"no-case-declarations": "warn",
"no-undef": "warn",
"no-restricted-globals": "warn",
"@typescript-eslint/no-inferrable-types": "warn"
},
"overrides": [
{
"files": ["src/editor/**/*.ts"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}