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

made changes to the conifg #1586

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

codewithsupra
Copy link

Replaced the outdated eslint-config-react-app with an appropriate configuration that works with Vite and TypeScript.
Installed and configured @typescript-eslint/parser and @typescript-eslint/eslint-plugin to ensure proper linting support for TypeScript.
Integrated Prettier and updated ESLint rules to avoid conflicts between Prettier and ESLint.
Encountered some TypeScript-related linting issues, which will need further refinement, but core functionality is working.
Project now runs with ts-node for backend TypeScript files and uses nodemon to automatically reload on changes.
Addressed some linting errors but remaining warnings and errors will be resolved in future updates.

@CLAassistant
Copy link

CLAassistant commented Oct 24, 2024

CLA assistant check
All committers have signed the CLA.

@cypress-app-bot
Copy link

@jennifer-shehane
Copy link
Member

@codewithsupra Thanks for the contribution! Could you please sign our CLA?

Copy link
Contributor

@MikeMcC399 MikeMcC399 left a comment

Choose a reason for hiding this comment

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

Unfortunately these changes are incomplete.

CI fails attempting to run yarn build:ci

$ yarn build:ci
yarn run v1.22.22
$ yarn predev:cognito:ci
$ yarn copy:mock:awsexports && yarn copy:mock:awsexportses5
$ ncp scripts/mock-aws-exports.js src/aws-exports.js
$ ncp scripts/mock-aws-exports-es5.js aws-exports-es5.js
$ cross-env CYPRESS_COVERAGE=true vite build
vite v4.5.5 building for production...
✓ 2 modules transformed.
✓ built in 209ms
[vite-plugin-eslint] Could not find config file.

Attempting to using yarn eslint fails:

$ yarn eslint .
yarn run v1.22.22

Oops! Something went wrong! :(

ESLint: 9.13.0

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

https://eslint.org/docs/latest/use/configure/migration-guide

If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This PR is related to issues

@MikeMcC399
Copy link
Contributor

See also ESLint v9 documentation Configuration Migration Guide

@MikeMcC399
Copy link
Contributor

@codewithsupra

Would you like to give some feedback on whether you can work to make this PR successful or whether it should be closed?

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.

5 participants