Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion config/eslintrc_typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ module.exports = {
// A class & interface should be PascalCased
'@typescript-eslint/class-name-casing': 'error',

// TODO: (#64) @typescript-eslint/explicit-function-return-type
// We should annotate the in/out type of functions because programms are built with a bunch of functions.
// It makes type safe world easy and we should express the type signature as documentation of their functions.
'@typescript-eslint/explicit-function-return-type': ['warn', {
// This rule is pretty tired for expressions because we use function expression
// as a callback. Let's disable its case.
'allowExpressions': true,
}],

// It's redundant to enforce to supply `public`.
'@typescript-eslint/explicit-member-accessibility': 'off',
Expand Down