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

Update tslint:latest config #1981

Merged
merged 2 commits into from
Jan 4, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/configs/latest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,32 @@
* 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"],
"unified-signatures": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compare-typeof too?

};
// tslint:enable object-literal-sort-keys

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