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

Fix issue with outside rules and indent rule #15

Merged

Conversation

adrienne-deriv
Copy link
Contributor

Fixed an issue where some prettier rules are outside the rules attribute, and ident has invalid argument false

"jsx-quotes": ["error", "prefer-single"],
"no-confusing-arrow": ["error", { allowParens: false }],
"no-tabs": ["error", { allowIndentationTabs: true }],
indent: ["error", 4],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since these rules are based on migrating prettier to eslint: #12, assigned ident rule to have a tab width of 4 based on prettierrc
Screenshot 2024-03-01 at 12 08 47 PM

"error",
"single",
{ avoidEscape: true, allowTemplateLiterals: false },
],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The prettier rules were outside of the rules attribute:
Screenshot 2024-03-01 at 12 17 58 PM

Copy link
Member

Choose a reason for hiding this comment

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

good catch 👍

@@ -37,7 +37,7 @@
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-jest-dom": "^5.1.0",
"eslint-plugin-jest-playwright": "^0.9.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-prettier": "^5.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upgraded eslint-plugin-prettier to v5 to resolve error based on this issue

Screenshot 2024-03-01 at 12 36 36 PM

@ali-hosseini-deriv ali-hosseini-deriv merged commit 285f3cc into binary-com:main Mar 8, 2024
1 check passed
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.

4 participants