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

chore: enable more ESLint rules #4451

Merged
merged 13 commits into from
Dec 11, 2020
Merged

chore: enable more ESLint rules #4451

merged 13 commits into from
Dec 11, 2020

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Dec 10, 2020

PR summary

  • Disabled these TSLint rules
    • file-header
    • ordered-imports
    • all tslint-react-rules
      • jsx-boolean-value
      • jsx-key
      • jsx-no-bind
      • jsx-no-lambda
      • jsx-no-string-ref
      • jsx-self-close
  • Enabled these ESLint rules
    • header/header
    • jsdoc/newline-after-description
    • import/order
      • note: the config group named "internal" was a little confusing to me at first look, eventually I realized this could help specify where to put @blueprintjs/ package imports
    • @typescript-eslint/lines-between-class-members
    • @typescript-eslint/no-unncessary-type-constraint
    • eslint-plugin-react rules
      • all counterparts from tslint-react
      • plus some more new ones
  • Chose not to enable these rules

Most of the diff is adding newlines.

Remaining migration work

these rules do not have suitable replacements yet:

these rules need to be migrated to use equivalent eslint config:

  • variable-name

@blueprint-bot
Copy link

enable no-unnecessary-type-constraint

Previews: documentation | landing | table

@adidahiya adidahiya changed the title Enable more ESLint rules chore: enable more ESLint rules Dec 10, 2020
@blueprint-bot
Copy link

Enable react plugin lint rules

Previews: documentation | landing | table

@blueprint-bot
Copy link

Disable some new lint rules in docs-app

Previews: documentation | landing | table

@blueprint-bot
Copy link

Merge remote-tracking branch 'origin/develop' into ad/eslint-rules

Previews: documentation | landing | table

@blueprint-bot
Copy link

autofix all import ordering with new config

Previews: documentation | landing | table

@adidahiya adidahiya merged commit 9dac93e into develop Dec 11, 2020
@adidahiya adidahiya deleted the ad/eslint-rules branch December 11, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants