Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Update tslint:latest config (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored and nchen63 committed Jan 4, 2017
1 parent 9bd2bc0 commit eec73ef
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/configs/latest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,33 @@
* limitations under the License.
*/

// tslint:disable object-literal-sort-keys
export const rules = {
// added in v3.x
"no-invalid-this": true,
"no-angle-bracket-type-assertion": true,

// added in v4.1
"only-arrow-functions": [true,
"allow-declarations",
// the following option was added in 4.1
"allow-named-functions",
],
"prefer-const": true,

// added in v4.2
"callable-types": true,
"interface-over-type-literal": true,
"no-empty-interface": true,
"no-string-throw": true,

// added in v4.3
"import-spacing": true,
"space-before-function-paren": [true, "never"],
"typeof-compare": true,
"unified-signatures": true,
};
// tslint:enable object-literal-sort-keys

// work around "extends" being a keyword
const xtends = "tslint:recommended";
Expand Down

0 comments on commit eec73ef

Please sign in to comment.