UNPKG

2.96 kBJSONView Raw
1{
2 "extends": ["tslint-immutable"],
3 "rules": {
4 "no-any": true,
5 "no-internal-module": true,
6 "no-namespace": true,
7 "no-reference": true,
8 // "no-var-requires": true,
9 "typedef": [true, "call-signature", "parameter", "property-declaration"],
10 "typedef-whitespace": [
11 true,
12 {
13 "call-signature": "nospace",
14 "index-signature": "nospace",
15 "parameter": "nospace",
16 "property-declaration": "nospace",
17 "variable-declaration": "nospace"
18 },
19 {
20 "call-signature": "onespace",
21 "index-signature": "onespace",
22 "parameter": "onespace",
23 "property-declaration": "onespace",
24 "variable-declaration": "onespace"
25 }
26 ],
27 "curly": true,
28 "forin": true,
29 "label-position": true,
30 "no-arg": true,
31 "no-bitwise": true,
32 "no-conditional-assignment": true,
33 // "no-console": [
34 // true,
35 // "log"
36 // ],
37 "no-construct": true,
38 "no-debugger": true,
39 "no-duplicate-variable": true,
40 "no-empty": true,
41 "no-eval": true,
42 "no-invalid-this": true,
43 // "no-null-keyword": true,
44 "no-shadowed-variable": true,
45 // "no-string-literal": true,
46 "no-switch-case-fall-through": true,
47 "no-unsafe-finally": true,
48 "no-unused-expression": true,
49 "no-var-keyword": true,
50 "radix": true,
51 "switch-default": true,
52 "triple-equals": true,
53 "use-isnan": true,
54 "eofline": true,
55 "indent": [true, "spaces"],
56 "max-file-line-count": [true, 800],
57 "max-line-length": [true, 160],
58 "no-default-export": true,
59 "no-mergeable-namespace": true,
60 // "no-require-imports": true,
61 // "align": [true, "statements"],
62 //"arrow-parens": true,
63 "class-name": true,
64 "jsdoc-format": true,
65 "new-parens": true,
66 "no-angle-bracket-type-assertion": true,
67 "no-consecutive-blank-lines": [true, 1],
68 "no-parameter-properties": true,
69 // "object-literal-key-quotes": [
70 // true,
71 // "as-needed"
72 // ],
73 "one-line": [
74 true,
75 "check-catch",
76 "check-finally",
77 "check-else",
78 "check-open-brace",
79 "check-whitespace"
80 ],
81 "one-variable-per-declaration": [true],
82 "quotemark": [true, "double", "avoid-escape"],
83 "semicolon": [true, "always", "ignore-interfaces"],
84 "variable-name": [
85 true,
86 "ban-keywords",
87 "check-format",
88 "allow-leading-underscore"
89 ],
90 "whitespace": [
91 true,
92 "check-branch",
93 "check-decl",
94 "check-operator",
95 "check-module",
96 "check-separator",
97 "check-type",
98 "check-typecast"
99 ]
100 // From tslint-immutable
101 // "readonly-keyword": [true, "ignore-local"],
102 // "readonly-array": [true, "ignore-local"]
103 // "no-class": true,
104 // "no-this": true,
105 // "no-mixed-interface": true,
106 },
107 "lint-staged": {
108 "*.{ts,tsx}": "tslint",
109 "*.{ts,tsx,json,css}": ["prettier --write", "git add"]
110 }
111}