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

Centralize tooling configs in monorepo #4138

Open
wants to merge 343 commits into
base: master
Choose a base branch
from

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Creates dedicated repos housing shareable config files for ESLint, Prettier, TypeScript and Vitest.

Copy link

codesandbox bot commented Jan 29, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

netlify bot commented Jan 29, 2024

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 4a4a666
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/663c38cf518404000702b48b
😎 Deploy Preview https://deploy-preview-4138--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codesandbox-ci bot commented Jan 29, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4a4a666:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

  - This was done so that we won't have to import `helpers.tsx` anywhere we use `toHaveConsoleOutput`
@aryaemami59 aryaemami59 marked this pull request as ready for review February 8, 2024 13:45
packages/toolkit/src/createAsyncThunk.ts Outdated Show resolved Hide resolved
packages/toolkit/src/combineSlices.ts Outdated Show resolved Hide resolved
packages/toolkit/src/tests/createSlice.test.ts Outdated Show resolved Hide resolved
@markerikson
Copy link
Collaborator

Okay, what I think I'm seeing here is:

  • Added the configs
  • A lot of lint fixes, mostly around auto-sorting of imports and forcing type imports
  • Extracting some reusable TS types like AnyObject

Can I get a summary of what lint rules changed?

Also it looks like there's some commented out lint rules in the ESLint config

@aryaemami59
Copy link
Contributor Author

@markerikson

Sure, so mostly what I did was, add 2 configs:

  • plugin:@typescript-eslint/recommended
  • plugin:@typescript-eslint/stylistic

Along with prettier which turns off ESLint rules that conflict with Prettier.
Then I fixed all the lint issues, and the ones that were not worth fixing (or were too time consuming) I disabled.
As for the commented out rules, I will probably put up another PR after this one, with those rules and configs enabled and make adjustments and fixes as needed. I just did not want to do it all in one PR because this PR is already way too large as it is.

@EskiMojo14
Copy link
Collaborator

could you add a "prepack": "yarn build" script to any of the packages with a build step? it means we can use our existing publish action with them

@aryaemami59
Copy link
Contributor Author

could you add a "prepack": "yarn build" script to any of the packages with a build step? it means we can use our existing publish action with them

Yeah sure!

  - This change was made because `@reduxjs/eslint-config` includes the `typescript-eslint` package as a direct dependency which includes `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` as direct dependencies so there is no need to manually install them anymore.
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.

None yet

3 participants