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

Add eslint and code fixes after formatting #223

Merged
merged 6 commits into from
Feb 24, 2024

Conversation

massi-ang
Copy link
Contributor

@massi-ang massi-ang commented Feb 12, 2024

Resolves #221, #174 together with PR #222

NOTE: Merge only after #222 has been merged to see the actual code changes

This PR completes the changes required to implement issue #221 by adding esllint.

Choices for linting configuration is to use the recommended rules from the respective plugins (react, typescript) with some general exception such as camelCase variable naming convention which is not being enforced. Also, props typing for React components has been disabled for the time being.

Refer to chainfoge/react-server/.eslintrc.js for the current configuration.

Linting is run both on npm run build and npm run test.

@massi-ang massi-ang marked this pull request as draft February 12, 2024 15:01
@massi-ang
Copy link
Contributor Author

Converted to DRAFT while waiting for #222 to be merged

@massi-ang massi-ang marked this pull request as ready for review February 19, 2024 10:22
@massi-ang massi-ang changed the base branch from main to prettier February 19, 2024 10:22
@massi-ang
Copy link
Contributor Author

Rebased onto prettier branch and changed PR to be merged onto prettier so you can see the correct diff.

@ianarawjo ianarawjo merged commit 2006a2d into ianarawjo:prettier Feb 24, 2024
ianarawjo added a commit that referenced this pull request Feb 24, 2024
* Add and run prettier

* Add eslint and code fixes after formatting (#223)

* chore(formatting): config files and packages

* chore(formatting): package.json

* chore(formatting): applying formatting

changes obtained by applying the previous commit and running `npx prettier -w .`

* chore(formatting): added formatting and linting to react app

* chore(formatting): fixes

* chore(eslint): apply fixes to utils.ts

* rebuild

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>
ianarawjo added a commit that referenced this pull request Feb 24, 2024
* Add and run prettier

* Add eslint and code fixes after formatting (#223)

* chore(formatting): config files and packages

* chore(formatting): package.json

* chore(formatting): applying formatting

changes obtained by applying the previous commit and running `npx prettier -w .`

* chore(formatting): added formatting and linting to react app

* chore(formatting): fixes

* chore(eslint): apply fixes to utils.ts

* rebuild

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>

* Rebuild

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>
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.

Add formatting rules and linting to react-server code
2 participants