|
1 | 1 | { |
2 | | - "extends": [ |
3 | | - "tslint:recommended", |
4 | | - "tslint-eslint-rules", |
5 | | - "tslint-config-prettier" |
6 | | - ], |
7 | | - "linterOptions": { |
8 | | - "exclude": ["./Content/tests/**/*.ts"] |
9 | | - }, |
10 | | - "rules": { |
11 | | - "align": false, |
12 | | - "ban": false, |
13 | | - "class-name": true, |
14 | | - "comment-format": [true, "check-space"], |
15 | | - "curly": false, |
16 | | - "eofline": false, |
17 | | - "forin": true, |
18 | | - "indent": false, |
19 | | - "no-reference": true, |
20 | | - "interface-name": true, |
21 | | - "jsdoc-format": true, |
22 | | - "label-position": true, |
23 | | - "max-line-length": [true, 140], |
24 | | - "ordered-imports": [false], |
25 | | - "no-any": false, |
26 | | - "no-arg": true, |
27 | | - "no-bitwise": false, |
28 | | - "no-console": [true, "debug", "info", "time", "timeEnd", "trace"], |
29 | | - "no-consecutive-blank-lines": [true, 2], |
30 | | - "no-construct": true, |
31 | | - "no-constructor-vars": false, |
32 | | - "no-debugger": true, |
33 | | - "no-shadowed-variable": true, |
34 | | - "no-duplicate-variable": true, |
35 | | - "no-empty": true, |
36 | | - "no-eval": true, |
37 | | - "no-internal-module": true, |
38 | | - "no-require-imports": true, |
39 | | - "no-string-literal": true, |
40 | | - "no-switch-case-fall-through": true, |
41 | | - "trailing-comma": true, |
42 | | - "no-this-assignment": [ |
43 | | - true, |
44 | | - { |
45 | | - "allow-destructuring": true |
46 | | - } |
47 | | - ], |
48 | | - "prefer-const": true, |
49 | | - "member-ordering": [false], |
50 | | - "object-literal-sort-keys": false, |
51 | | - "no-trailing-whitespace": true, |
52 | | - "no-unused-expression": true, |
53 | | - "no-var-keyword": true, |
54 | | - "no-var-requires": false, |
55 | | - "no-namespace": [true, "allow-declarations"], |
56 | | - "one-line": [ |
57 | | - true, |
58 | | - "check-open-brace", |
59 | | - "check-catch", |
60 | | - "check-else", |
61 | | - "check-whitespace" |
62 | | - ], |
63 | | - "quotemark": [true, "single"], |
64 | | - "radix": true, |
65 | | - "semicolon": false, |
66 | | - "switch-default": true, |
67 | | - "triple-equals": [true, "allow-null-check"], |
68 | | - "typedef": [ |
69 | | - false, |
70 | | - "call-signature", |
71 | | - "parameter", |
72 | | - "property-declaration", |
73 | | - "member-variable-declaration" |
74 | | - ], |
75 | | - "typedef-whitespace": [ |
76 | | - true, |
77 | | - { |
78 | | - "call-signature": "nospace", |
79 | | - "index-signature": "nospace", |
80 | | - "parameter": "nospace", |
81 | | - "property-declaration": "nospace", |
82 | | - "variable-declaration": "nospace" |
83 | | - } |
84 | | - ], |
85 | | - "variable-name": [true, "ban-keywords"], |
86 | | - "whitespace": [ |
87 | | - true, |
88 | | - "check-branch", |
89 | | - "check-decl", |
90 | | - "check-operator", |
91 | | - "check-separator", |
92 | | - "check-type", |
93 | | - "check-preblock" |
94 | | - ], |
95 | | - "ter-newline-after-var": true |
96 | | - }, |
97 | | - "jsRules": { |
98 | | - "max-line-length": { |
99 | | - "options": [120] |
| 2 | + "extends": [ |
| 3 | + "tslint:recommended", |
| 4 | + "tslint-eslint-rules", |
| 5 | + "tslint-config-prettier" |
| 6 | + ], |
| 7 | + "linterOptions": { |
| 8 | + "exclude": ["./Content/tests/**/*.ts"] |
| 9 | + }, |
| 10 | + "rules": { |
| 11 | + "align": false, |
| 12 | + "ban": false, |
| 13 | + "class-name": true, |
| 14 | + "comment-format": [true, "check-space"], |
| 15 | + "curly": false, |
| 16 | + "eofline": false, |
| 17 | + "forin": true, |
| 18 | + "indent": false, |
| 19 | + "no-reference": true, |
| 20 | + "interface-name": true, |
| 21 | + "jsdoc-format": true, |
| 22 | + "label-position": true, |
| 23 | + "max-line-length": [true, 140], |
| 24 | + "ordered-imports": [false], |
| 25 | + "no-any": false, |
| 26 | + "no-arg": true, |
| 27 | + "no-bitwise": false, |
| 28 | + "no-console": [true, "debug", "info", "time", "timeEnd", "trace"], |
| 29 | + "no-consecutive-blank-lines": [true, 2], |
| 30 | + "no-construct": true, |
| 31 | + "no-constructor-vars": false, |
| 32 | + "no-debugger": true, |
| 33 | + "no-shadowed-variable": true, |
| 34 | + "no-duplicate-variable": true, |
| 35 | + "no-empty": true, |
| 36 | + "no-eval": true, |
| 37 | + "no-internal-module": true, |
| 38 | + "no-require-imports": true, |
| 39 | + "no-string-literal": true, |
| 40 | + "no-switch-case-fall-through": true, |
| 41 | + "trailing-comma": true, |
| 42 | + "no-this-assignment": [ |
| 43 | + true, |
| 44 | + { |
| 45 | + "allow-destructuring": true |
100 | 46 | } |
101 | | - } |
| 47 | + ], |
| 48 | + "prefer-const": true, |
| 49 | + "member-ordering": [false], |
| 50 | + "object-literal-sort-keys": false, |
| 51 | + "no-trailing-whitespace": true, |
| 52 | + "no-unused-expression": true, |
| 53 | + "no-var-keyword": true, |
| 54 | + "no-var-requires": false, |
| 55 | + "no-namespace": [true, "allow-declarations"], |
| 56 | + "one-line": [ |
| 57 | + true, |
| 58 | + "check-open-brace", |
| 59 | + "check-catch", |
| 60 | + "check-else", |
| 61 | + "check-whitespace" |
| 62 | + ], |
| 63 | + "quotemark": [true, "single"], |
| 64 | + "radix": true, |
| 65 | + "semicolon": false, |
| 66 | + "switch-default": true, |
| 67 | + "triple-equals": [true, "allow-null-check"], |
| 68 | + "typedef": [ |
| 69 | + false, |
| 70 | + "call-signature", |
| 71 | + "parameter", |
| 72 | + "property-declaration", |
| 73 | + "member-variable-declaration" |
| 74 | + ], |
| 75 | + "typedef-whitespace": [ |
| 76 | + true, |
| 77 | + { |
| 78 | + "call-signature": "nospace", |
| 79 | + "index-signature": "nospace", |
| 80 | + "parameter": "nospace", |
| 81 | + "property-declaration": "nospace", |
| 82 | + "variable-declaration": "nospace" |
| 83 | + } |
| 84 | + ], |
| 85 | + "variable-name": [true, "ban-keywords"], |
| 86 | + "whitespace": [ |
| 87 | + true, |
| 88 | + "check-branch", |
| 89 | + "check-decl", |
| 90 | + "check-operator", |
| 91 | + "check-separator", |
| 92 | + "check-type", |
| 93 | + "check-preblock" |
| 94 | + ], |
| 95 | + "ter-newline-after-var": true |
| 96 | + }, |
| 97 | + "jsRules": { |
| 98 | + "max-line-length": { |
| 99 | + "options": [120] |
| 100 | + } |
| 101 | + } |
102 | 102 | } |
0 commit comments