forked from retorquere/zotero-better-bibtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
82 lines (82 loc) · 3.42 KB
/
tslint.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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"ban-types": {
"severity": "warning",
"options": [
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Function", "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"],
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
]
},
"no-module-exports": true,
"max-classes-per-file": [true, 4],
"new-parens": false,
"no-var-requires": false,
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"max-line-length": {
"severity": "warning",
"options": [240]
},
"ordered-imports": false,
"prefer-const": [true, {"destructuring": "all"}],
"member-ordering": [true, {
"order": [
"public-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-constructor",
"public-instance-method",
"protected-instance-method",
"private-constructor",
"private-instance-method"
]
}],
"no-magic-numbers": [true, -1, 0, 1, 2],
"prefer-for-of": true,
"no-duplicate-variable": true,
"no-string-throw": true,
"no-unused-variable": [true, {"ignore-pattern": "^_"}],
"no-use-before-declare": true,
"no-var-keyword": true,
"prefer-object-spread": true,
"triple-equals": [true, "allow-undefined-check", "allow-null-check"],
"typeof-compare": true,
"indent": [true, "spaces", 2],
"linebreak-style": [true, "LF"],
"eofline": true,
"trailing-comma": [true, {"singleline": "never", "multiline": {"objects": "always", "arrays": "always", "functions": "never", "typeLiterals": "ignore"}}],
"arrow-parens": [true, "ban-single-arg-parens"],
"arrow-return-shorthand": true,
"binary-expression-operand-order": true,
"class-name": true,
"no-irregular-whitespace": true,
"no-trailing-whitespace": [true, "ignore-jsdoc", "ignore-template-strings"],
"no-unnecessary-callback-wrapper": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace"],
"prefer-template": [true, "allow-single-concat"],
"semicolon": [true, "never"],
"space-before-function-paren": [true, {"anonymous": "never", "method": "never", "constructor": "never", "named": "never", "asyncArrow": "always"}],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-snake-case" ],
"curly": [true, "ignore-same-line"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"radix": false,
"object-literal-sort-keys": false,
"no-empty": [true, "allow-empty-catch"],
"no-conditional-assignment": false,
"one-variable-per-declaration": false
},
"rulesDirectory": [],
"doc": "https://palantir.github.io/tslint/rules/"
}