-
Notifications
You must be signed in to change notification settings - Fork 170
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
chore: improve lint setup #1281
Conversation
@@ -28,123 +32,50 @@ module.exports = { | |||
node: true, | |||
jest: true, | |||
}, | |||
reportUnusedDisableDirectives: true, |
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.
This config options makes eslint check for eslint-disable
statements which are outdated and autoremoves them like in e.g. https://github.com/ferdium/ferdium-app/pull/1281/files#diff-7db082e9f1255575e774bf5f2c4b23b7ed970cedaf3b8a4cf583ac46d19f96b6L71
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.
please raise the similar changes on the ferdium-recipes
repo as well. TIA
@@ -28,123 +32,50 @@ module.exports = { | |||
node: true, | |||
jest: true, | |||
}, | |||
reportUnusedDisableDirectives: true, |
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.
please raise the similar changes on the ferdium-recipes
repo as well. TIA
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.
Please remove the addition of the recipes
submodule from this PR. Then it can be merged.
@vraravam I can't seem to find a way to remove it from being tracked in the PR. I remember having the same issues back with Ferdi. |
- update eslint config - merged eslint rules for JS and TS to avoid duplicates - extended stricter lint ruleset from typescript-eslint - corrected wrong setup for certain eslint rulesets - opt in to reportUnusedDisableDirectives config option - fix or disable a lot of lint issues throughout codebase - remove trailingComma: all from prettier config which is default in prettier v3 - add volta configuration to package.json to autoload correct node and pnpm versions - upgrade all eslint and prettier related dependencies to latest - remove config options from settings.json which are default anyways - remove config options from settings.json which are outdated/unknown - set up prettier as default formatter in settings.json
c6026f8
to
3ec1dad
Compare
Pre-flight Checklist
Please ensure you've completed all of the following.
Description of Change
eslint
configeslint
rules for JS and TS to avoid duplicatestypescript-eslint
eslint
rulesetsreportUnusedDisableDirectives
config optiontrailingComma: all
fromprettier
config which is default inprettier
v3volta
configuration topackage.json
to autoload correctnode
andpnpm
versionseslint
andprettier
related dependencies to latestsettings.json
which are default anywayssettings.json
which are outdated/unknownprettier
as default formatter insettings.json
Motivation and Context
The lint setup should be up to date so that developers avoid creating bugs or mistakes in the codebase.
Screenshots
Checklist
pnpm prepare-code
)pnpm test
passesRelease Notes