-
Notifications
You must be signed in to change notification settings - Fork 30
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
Configure code style #98
Conversation
`npm audit fix --force` note: possibly destructive, roll back if necessary 10 vulnerabilities remaining (3 moderate, 7 high)
…into configure-code-style
(Unsubscribing from this to prevent email noise on new commits — re-ping me if I need to look at it) |
-- What This rule (https://eslint.org/docs/latest/rules/no-param-reassign) specifies that you cannot reassign a variable that is passed into a function as a parameter (good, makes sense), but for some reason it also says that you cannot alter properties of an incoming variable if it's an object (bad, doesn't make sense). Updating the eslintrc file to account for this
Also updating the airbnb base linter config version
Also adding nvmrc for consistent node versioning
Seeing if this helps with websocket errors
-- What We do not need to specify the extensions in the command line for the eslint runner (if we need specific extensions only in the future, we can add these into the config file where they belong). Additionally, found a bad situation where eslint was reading from the site build directory if a local build it present, which resulted in tens of thousands of errors as a result of transpiled code from external libraries. Have added config values to ignore the build directory.
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.
Thank you both for your work on this! I have a few blocking questions about where dev dependencies are being loaded. Could we also add some written documentation about our linting strategy (why we're doing it, what rules we're using, when in the pipeline it runs, etc).
-- What Linter has identified that certain imports should be listed in dependencies rather than devDependencies
@echappen I think I've addressed each of your concerns. I've added some documentation about prettier, as well as our own template precommit hook. The linter forced me to move certain dependencies back to production, but I think that makes sense. Let me know if there's anything else that looks off. Thanks! |
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.
Looks great, thanks!
great work all! |
Changes proposed in this pull request:
security considerations
[Note the any security considerations here, or make note of why there are none]