Caution
This library is deprecated and should no longer be used. It has not been maintained for a long time and many of its dependencies are outdated. Please use the guidance below when configuring new projects.
Base settings
Prettier: https://github.com/ezcater/tapas/blob/main/prettier.config.mjsESLint: https://github.com/ezcater/tapas/blob/main/eslint.config.mjs
Additional packages you may need depending on your project
@eslint/js, the recommended JavaScript configuration from ESLinteslint-config-prettier, which turns off rules handled by Prettiereslint-plugin-importandeslint-plugin-simple-import-sortfor projects that need consistent import sorting. We have commonly used@/and~/as path aliases.eslint-plugin-reactandeslint-plugin-react-hooks, using the recommended configstypescript-eslintfor TypeScript projects, including both recommended and stylistic configseslint-plugin-storybookif your project uses Storybookeslint-plugin-testing-libraryif you use Testing Library utilities
A home for ezCater's JavaScript style rules, configuration, and tooling.
See /packages for our different JS linting packages and usage instructions.
After merging changes to the main branch:
-
Open a pull request with only the version change in the package's
package.jsonand in theCHANGELOG.mdfile copying the “Unreleased” section and pasting to a new section for the version. -
Merge the pull request.
-
Checkout the main branch and ensure you’re on the latest commit.
-
Tag the version (fill in the correct version number):
git tag package-name-here@X.X.X -m "package-name-here@X.X.X" -
Push:
git push --tags -
Publish:
yarn workspace package-name-here publish --new-version X.X.XThis will require access to the ezCater organization on NPM.
-
Create a new release and document the changes.