generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.eslintrc.json
More file actions
59 lines (59 loc) · 1.43 KB
/
.eslintrc.json
File metadata and controls
59 lines (59 loc) · 1.43 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
51
52
53
54
55
56
57
58
59
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"standard"
],
"rules": {
"eqeqeq": "error",
"no-console": "warn",
"no-undef": "off",
"no-unused-vars": "off",
"no-implicit-coercion": "error"
},
"overrides": [
{
"files": [
"**/*.ts",
"**/*.tsx"
],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/restrict-plus-operands": "error",
"no-use-before-define": "off",
"space-before-function-paren": "off",
"dot-notation": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/semi": [
"error",
"never"
]
},
"parserOptions": {
"project": "./tsconfig.json"
}
}
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"ignorePatterns": [
"node_modules"
]
}