1 | {
|
2 | "extends": ["tslint:latest", "tslint-react", "tslint-eslint-rules"],
|
3 | "rules": {
|
4 | "adjacent-overload-signatures": true,
|
5 | "arrow-parens": [true, "ban-single-arg-parens"],
|
6 | "arrow-return-shorthand": true,
|
7 | "async-suffix": true,
|
8 | "await-promise": true,
|
9 | "binary-expression-operand-order": true,
|
10 | "boolean-naming": true,
|
11 | "callable-types": true,
|
12 | "class-name": true,
|
13 | "completed-docs": [
|
14 | true,
|
15 | {
|
16 | "functions": {
|
17 | "visibilities": ["exported"]
|
18 | },
|
19 | "methods": {
|
20 | "locations": "instance",
|
21 | "privacies": ["public", "protected"]
|
22 | }
|
23 | }
|
24 | ],
|
25 | "curly": true,
|
26 | "custom-no-magic-numbers": [true, 0, 1, 2, 3, -1],
|
27 | "encoding": true,
|
28 | "enum-naming": true,
|
29 | "eofline": true,
|
30 | "import-spacing": true,
|
31 | "indent": [true, "spaces", 4],
|
32 | "interface-name": false,
|
33 | "interface-over-type-literal": true,
|
34 | "jsx-alignment": true,
|
35 | "jsx-boolean-value": true,
|
36 | "jsx-curly-spacing": [true, "never"],
|
37 | "jsx-no-bind": false,
|
38 | "jsx-no-lambda": true,
|
39 | "jsx-no-multiline-js": false,
|
40 | "jsx-no-string-ref": true,
|
41 | "jsx-self-close": true,
|
42 | "jsx-wrap-multiline": false,
|
43 | "linebreak-style": [true, "LF"],
|
44 | "max-classes-per-file": [true, 1],
|
45 | "max-file-line-count": [true, 500],
|
46 | "max-line-length": false,
|
47 | "member-access": true,
|
48 | "member-ordering": [true, "public-before-private", "static-before-instance", "variables-before-functions"],
|
49 | "new-parens": true,
|
50 | "newline-before-return": false,
|
51 | "no-angle-bracket-type-assertion": true,
|
52 | "no-boolean-literal-compare": true,
|
53 | "no-debugger": true,
|
54 | "no-default-export": true,
|
55 | "no-duplicate-super": true,
|
56 | "no-duplicate-switch-case": true,
|
57 | "no-duplicate-variable": true,
|
58 | "no-empty-interface": false,
|
59 | "no-eval": true,
|
60 | "no-floating-promises": true,
|
61 | "no-implicit-dependencies": [true, "dev"],
|
62 | "no-inferred-empty-object-type": true,
|
63 | "no-invalid-template-strings": true,
|
64 | "no-invalid-this": true,
|
65 | "no-lodash-isnull": true,
|
66 | "no-lodash-isundefined": true,
|
67 | "no-misused-new": true,
|
68 | "no-non-null-assertion": false,
|
69 | "no-parameter-reassignment": true,
|
70 | "no-redundant-jsdoc": true,
|
71 | "no-return-await": true,
|
72 | "no-shadowed-variable": true,
|
73 | "no-sparse-arrays": true,
|
74 | "no-string-literal": true,
|
75 | "no-string-throw": true,
|
76 | "no-submodule-imports": false,
|
77 | "no-switch-case-fall-through": true,
|
78 | "no-this-assignment": false,
|
79 | "no-unbound-method": true,
|
80 | "no-unnecessary-class": true,
|
81 | "no-unnecessary-type-assertion": true,
|
82 | "no-unused-variable": true,
|
83 | "no-unsafe-finally": true,
|
84 | "number-literal-format": true,
|
85 | "object-literal-key-quotes": false,
|
86 | "object-literal-sort-keys": false,
|
87 | "ordered-imports": [
|
88 | true,
|
89 | {
|
90 | "grouped-imports": true
|
91 | }
|
92 | ],
|
93 | "prefer-const": true,
|
94 | "prefer-for-of": true,
|
95 | "prefer-function-over-method": true,
|
96 | "prefer-object-spread": true,
|
97 | "prefer-readonly": true,
|
98 | "prefer-template": true,
|
99 | "promise-function-async": true,
|
100 | "quotemark": [true, "single", "avoid-escape", "jsx-double"],
|
101 | "restrict-plus-operands": true,
|
102 | "semicolon": [true, "always"],
|
103 | "space-before-function-paren": [
|
104 | true,
|
105 | {
|
106 | "anonymous": "never",
|
107 | "asyncArrow": "always",
|
108 | "constructor": "never",
|
109 | "method": "never",
|
110 | "named": "never"
|
111 | }
|
112 | ],
|
113 | "space-within-parens": false,
|
114 | "switch-default": true,
|
115 | "type-literal-delimiter": true,
|
116 | "typedef": [true, "call-signature", "parameter", "property-declaration"],
|
117 | "underscore-private-and-protected": true,
|
118 | "variable-name": [true, "ban-keywords", "allow-pascal-case"],
|
119 | "whitespace": [
|
120 | true,
|
121 | "check-branch",
|
122 | "check-decl",
|
123 | "check-operator",
|
124 | "check-separator",
|
125 | "check-rest-spread",
|
126 | "check-type",
|
127 | "check-typecast",
|
128 | "check-preblock"
|
129 | ]
|
130 | },
|
131 | "rulesDirectory": "lib/rules"
|
132 | }
|