forked from pauldedecker/obsidian-timelines
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
34 lines (34 loc) · 1.11 KB
/
.eslintrc.json
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"arrow-body-style": ["error", "always"],
"block-spacing": ["error", "always"],
"brace-style": ["error"],
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"indent": ["error", 2],
"max-len": ["warn", {"code": 125, "tabWidth": 2}],
"no-nested-ternary": "error",
"no-sequences": ["error", { "allowInParentheses": false }],
"no-unneeded-ternary": "error",
"no-fallthrough": "off",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-const": ["error", { "destructuring": "all" }],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"space-in-parens": ["error", "always", { "exceptions": ["{}", "()"] }]
}
}