-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: Implement new eslint-config-cozy-app (VO-541) #2104
Conversation
@@ -1,8 +1,9 @@ | |||
import React, { useEffect, useState } from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those 3 removal were the only manual error fixes
@@ -113,5 +111,8 @@ | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
} | |||
}, | |||
"resolutions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we force eslint resolution to 8 or else cozy-scripts could force a mismatch and yarn will use eslint 5 or 7 in the CLI, making the lint fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make a PR on cozy-script to avoid this resolution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make a PR on cozy-script to avoid this resolution
@cballevre that would be preferrable for sure but I'm not sure it would be very easy to update cozy-scripts to eslint 8
6cd1433
to
13bd5b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the change in the order of imports, I don't see much breaking change. It's nice not to have to re-import eslint and its plugins into the app 👍
.vscode/settings.json
Outdated
@@ -0,0 +1,3 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is it used for ? 🤔
@@ -113,5 +111,8 @@ | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
} | |||
}, | |||
"resolutions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make a PR on cozy-script to avoid this resolution
13bd5b9
to
0e050a2
Compare
0e050a2
to
5437fee
Compare
Closed because stale |
Related PRs: