Skip to content

🎨 👕 Set up linting and formatting #2120

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

Merged
merged 30 commits into from
Aug 29, 2021
Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Aug 24, 2021

This PR

  • sets up Prettier and ESLint dependencies, configs and commands,
  • adjusts .editorconfig to remove rules delegated to Prettier,
  • upgrades all the packages to TypeScript 4.3.5, and
  • specifies recommended VSCode extensions.

Each package is processed separately:

Temporarily out of scope:

  • /editor-ui (widespread changes forthcoming)
  • /nodes-base (extremely large package)
  • Cleanup to remove TSLint and update GH actions

Note: Given the number of dependencies required by linting, deps are added only in the /workflow package for ease of maintenance, and to avoid cross-package versions becoming out of sync.

Based on #1566 but not a refactoring.

Copy link
Contributor

@BHesseldieck BHesseldieck left a comment

Choose a reason for hiding this comment

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

amazing work! 🎉

@BHesseldieck BHesseldieck requested a review from janober August 29, 2021 00:07
ivov added 4 commits August 29, 2021 12:38
* 🎨 Format /workflow package

* 👕 Lint /workflow package

* 🎨 Re-format /workflow package

* 👕 Re-lint /workflow package

* ✏️ Fix typo

* ⚡ Consolidate if-checks

* 🔥 Remove prefer-default-export exceptions

* 🔥 Remove no-plusplus exceptions

* 🔥 Remove class-methods-use-this exceptions
* 🎨 Format /node-dev package

* ⚡ Exclude templates from ESLint config

This keeps the templates consistent with the codebase while preventing lint exceptions from being made part of the templates.

* 👕 Lint /node-dev package

* 🔥 Remove prefer-default-export exceptions

* 🔥 Remove no-plusplus exceptions
* 🎨 Format /core package

* 👕 Lint /core package

* 🎨 Re-format /core package

* 👕 Re-lint /core package

* 🔥 Remove prefer-default-export exceptions

* 🔥 Remove no-plusplus exceptions

* 🔥 Remove class-methods-use-this exceptions
* 🎨 Format /cli package

* 👕 Exclude migrations from linting

* 👕 Lint /cli package

* 🎨 Re-format /cli package

* 👕 Re-lint /cli package

* 👕 Fix build

* 🔥 Remove prefer-default-export exceptions

* ⚡ Update exceptions in ActiveExecutions

* 🔥 Remove no-plusplus exceptions

* 🔥 Remove class-methods-use-this exceptions
@BHesseldieck BHesseldieck changed the title Set up linting and formatting 🎨 👕 Set up linting and formatting Aug 29, 2021
@janober janober merged commit 56c4c69 into master Aug 29, 2021
@janober janober deleted the linting-formatting-setup branch August 29, 2021 18:58
@janober
Copy link
Member

janober commented Aug 29, 2021

Thanks a lot. Got merged.

@janober
Copy link
Member

janober commented Aug 29, 2021

Got released with [email protected]

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.

3 participants