|
1 | 1 | { |
2 | 2 | "defaultSeverity": "error", |
3 | 3 | "extends": [ |
4 | | - "tslint:recommended", |
5 | 4 | "tslint-override" |
6 | 5 | ], |
7 | 6 | "jsRules": {}, |
8 | 7 | "rules": { |
9 | | - "align": [true, "parameters", "statements", "arguments", "members", "elements"], |
| 8 | + "array-type": [true, "array-simple"], |
10 | 9 | "arrow-parens": [true, "ban-single-arg-parens"], |
| 10 | + "arrow-return-shorthand": true, |
| 11 | + "ban": [true, |
| 12 | + {"name": "parseInt", "message": "tsstyle#type-coercion"}, |
| 13 | + {"name": "parseFloat", "message": "tsstyle#type-coercion"}, |
| 14 | + {"name": "Array", "message": "tsstyle#array-constructor"} |
| 15 | + ], |
| 16 | + "ban-types": [true, |
| 17 | + ["Object", "Use {} instead."], |
| 18 | + ["String", "Use 'string' instead."], |
| 19 | + ["Number", "Use 'number' instead."], |
| 20 | + ["Boolean", "Use 'boolean' instead."] |
| 21 | + ], |
11 | 22 | "class-name": true, |
12 | | - "forin": false, |
13 | | - "no-bitwise": false, |
14 | | - "indent": [true, "spaces", 4], |
| 23 | + "curly": [true, "ignore-same-line"], |
| 24 | + "deprecation": true, |
| 25 | + "forin": true, |
| 26 | + "interface-name": [true, "never-prefix"], |
| 27 | + "jsdoc-format": true, |
| 28 | + "label-position": true, |
15 | 29 | "max-classes-per-file": 1, |
16 | | - "max-line-length": [true, 120], |
17 | | - "no-console": [false], |
18 | | - "no-namespace": false, |
| 30 | + "member-access": [true, "no-public"], |
| 31 | + "new-parens": true, |
| 32 | + "no-angle-bracket-type-assertion": true, |
| 33 | + "no-any": true, |
| 34 | + "no-arg": true, |
| 35 | + "no-conditional-assignment": true, |
| 36 | + "no-construct": true, |
| 37 | + "no-debugger": true, |
| 38 | + "no-default-export": true, |
| 39 | + "no-duplicate-variable": true, |
| 40 | + "no-inferrable-types": true, |
| 41 | + "no-namespace": [true, "allow-declarations"], |
19 | 42 | "no-null-keyword": true, |
| 43 | + "no-reference": true, |
| 44 | + "no-string-throw": true, |
| 45 | + "no-unused-expression": true, |
| 46 | + "no-var-keyword": true, |
| 47 | + "object-literal-shorthand": true, |
| 48 | + "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"], |
| 49 | + "prefer-const": true, |
| 50 | + "radix": true, |
| 51 | + "semicolon": [true, "always", "ignore-bound-class-methods"], |
| 52 | + "switch-default": true, |
20 | 53 | "trailing-comma": [ |
21 | 54 | true, |
22 | 55 | { |
|
29 | 62 | "esSpecCompliant": true |
30 | 63 | } |
31 | 64 | ], |
32 | | - "interface-name": false, |
33 | | - "radix": false, |
| 65 | + "triple-equals": [true, "allow-null-check"], |
34 | 66 | "typedef": [ |
35 | 67 | true, |
36 | 68 | "call-signature", |
37 | 69 | "property-declaration" |
38 | | - ] |
| 70 | + ], |
| 71 | + "use-isnan": true, |
| 72 | + "variable-name": [ |
| 73 | + true, |
| 74 | + "check-format", |
| 75 | + "ban-keywords", |
| 76 | + "allow-leading-underscore", |
| 77 | + "allow-trailing-underscore" |
| 78 | + ], |
39 | 79 | }, |
40 | 80 | "rulesDirectory": [] |
41 | 81 | } |
0 commit comments