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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve eslint config #2042
Improve eslint config #2042
Conversation
- Add `.ts` extension - Update dependencies related to eslint - Disabled two problemtic ruls temporally
Codecov Report
@@ Coverage Diff @@
## canary #2042 +/- ##
=========================================
+ Coverage 4.39% 4.39% +<.01%
=========================================
Files 243 243
Lines 8694 8693 -1
Branches 904 904
=========================================
Hits 382 382
+ Misses 8295 8294 -1
Partials 17 17
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok. Let's get someone else to approve too 馃憤
Ping @leo @TooTallNate @javivelasco, could you help review this? 馃檹 |
- Get `.ts` files covered 馃帀 - Update eslint related dependencies - Add typescript-eslint [recommended rules](https://github.com/typescript-eslint/typescript-eslint/blob/3e26ab684ae5642e9c50940bedd155e32e189900/packages/eslint-plugin/src/configs/recommended.json), but only enabled ones we already followed, commented ones causing errors. Commented rules including: ```yaml # '@typescript-eslint/no-unused-vars': 1 # '@typescript-eslint/indent': ['error', 2] # '@typescript-eslint/array-type': error # '@typescript-eslint/ban-types': error # '@typescript-eslint/explicit-member-accessibility': error # '@typescript-eslint/member-delimiter-style': error # '@typescript-eslint/no-angle-bracket-type-assertion': error # '@typescript-eslint/no-explicit-any': warn # '@typescript-eslint/no-object-literal-type-assertion': error # '@typescript-eslint/no-use-before-define': error # '@typescript-eslint/no-var-requires': error # '@typescript-eslint/prefer-interface': error ``` ### TODO Go through these commented rules one by one, enable & fix for it or confirm it's disabled. Since enabling some rules would cause massive code change (like `'@typescript-eslint/indent': ['error', 2]`), which might conflict with our ongoing development, we better do this in separated PRs.
.ts
files covered 馃帀Commented rules including:
TODO
Go through these commented rules one by one, enable & fix for it or confirm it's disabled. Since enabling some rules would cause massive code change (like
'@typescript-eslint/indent': ['error', 2]
), which might conflict with our ongoing development, we better do this in separated PRs.