Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the strict typechecking #22

Closed
AndreyBelym opened this issue Feb 18, 2020 · 1 comment · Fixed by #26
Closed

Enable the strict typechecking #22

AndreyBelym opened this issue Feb 18, 2020 · 1 comment · Fixed by #26
Labels
enhancement New feature or request

Comments

@AndreyBelym
Copy link
Collaborator

Try to implement transpiling in #16 and enable the strict typechecking via the strict: true in another PR.

@AndreyBelym AndreyBelym added the enhancement New feature or request label Feb 18, 2020
@AndreyBelym
Copy link
Collaborator Author

AndreyBelym commented Feb 20, 2020

Note: to enabling linting TypeScript code, you'll need to add @typescript-eslint/eslint-plugin & @typescript-eslint/parser to your project and adjust .eslintrc:

{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "sourceType": "module"
  },
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended"
  ],
  // NOTE: remove original ESLint rules that will be covered by typescript-eslint rules
  "rules": {
     "@typescript-eslint/no-extra-parens": 2,
     "@typescript-eslint/no-use-before-define": [2, "nofunc"],
     "@typescript-eslint/no-var-requires": [0],
     "@typescript-eslint/explicit-function-return-type": [2, { "allowExpressions": true }],
     "@typescript-eslint/no-unused-vars": 2
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant