|
1 | 1 | { |
2 | | - "extends": "./test/tslint.json", |
3 | 2 | "rules": { |
4 | | - "arrow-parens": [true, "ban-single-arg-parens"], |
5 | | - "import-spacing": true, |
6 | | - "max-line-length": [true, 120], |
7 | | - "new-parens": true, |
8 | | - "no-trailing-whitespace": true, |
9 | | - "semicolon": [true, "always", "ignore-bound-class-methods"], |
10 | | - "trailing-comma": [ |
| 3 | + "array-type": [true, "array-simple"], |
| 4 | + "arrow-return-shorthand": true, |
| 5 | + "ban": [ |
11 | 6 | true, |
12 | | - { |
13 | | - "multiline": { |
14 | | - "objects": "always", |
15 | | - "arrays": "always", |
16 | | - "functions": "never", |
17 | | - "typeLiterals": "always" |
18 | | - }, |
19 | | - "esSpecCompliant": true |
20 | | - } |
| 7 | + { "name": "parseInt", "message": "tsstyle#type-coercion" }, |
| 8 | + { "name": "parseFloat", "message": "tsstyle#type-coercion" }, |
| 9 | + { "name": "Array", "message": "tsstyle#array-constructor" } |
21 | 10 | ], |
22 | | - "whitespace": [ |
| 11 | + "ban-types": [ |
23 | 12 | true, |
24 | | - "check-type-operator", |
25 | | - "check-decl", |
26 | | - "check-rest-spread", |
27 | | - "check-typecast" |
28 | | - ] |
| 13 | + ["Object", "Use {} instead."], |
| 14 | + ["String", "Use 'string' instead."], |
| 15 | + ["Number", "Use 'number' instead."], |
| 16 | + ["Boolean", "Use 'boolean' instead."] |
| 17 | + ], |
| 18 | + "class-name": true, |
| 19 | + "curly": [true, "ignore-same-line"], |
| 20 | + "deprecation": true, |
| 21 | + "forin": false, |
| 22 | + "interface-name": [true, "never-prefix"], |
| 23 | + "jsdoc-format": true, |
| 24 | + "label-position": true, |
| 25 | + "max-classes-per-file": [true, 1], |
| 26 | + "member-access": true, |
| 27 | + "no-angle-bracket-type-assertion": true, |
| 28 | + "no-any": false, |
| 29 | + "no-arg": true, |
| 30 | + "no-conditional-assignment": true, |
| 31 | + "no-construct": true, |
| 32 | + "no-debugger": true, |
| 33 | + "no-default-export": true, |
| 34 | + "no-duplicate-switch-case": true, |
| 35 | + "no-duplicate-variable": true, |
| 36 | + "no-inferrable-types": true, |
| 37 | + "no-namespace": [true, "allow-declarations"], |
| 38 | + "no-null-keyword": true, |
| 39 | + "no-reference": true, |
| 40 | + "no-string-throw": true, |
| 41 | + "no-unused-expression": true, |
| 42 | + "no-var-keyword": true, |
| 43 | + "object-literal-shorthand": true, |
| 44 | + "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"], |
| 45 | + "prefer-const": [true, { "destructuring": "all" }], |
| 46 | + "radix": true, |
| 47 | + "switch-default": false, |
| 48 | + "triple-equals": [true, "allow-null-check"], |
| 49 | + "typedef": [true, "call-signature", "property-declaration"], |
| 50 | + "use-isnan": true, |
| 51 | + "variable-name": [true, "check-format", "ban-keywords", "allow-leading-underscore", "allow-pascal-case"] |
29 | 52 | } |
30 | 53 | } |
0 commit comments