-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Resolve all Warnings and Deprecated Messages with Default Configuration. #2536
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
Resolve all Warnings and Deprecated Messages with Default Configuration. #2536
Conversation
Allow because process.env is used throughout the project and set by gulp.
templates/app/.eslintrc
Outdated
@@ -82,7 +82,7 @@ | |||
"no-octal-escape": 0, //disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251"; | |||
"no-octal": 0, //disallow use of octal literals | |||
"no-param-reassign": 0, //disallow reassignment of function parameters | |||
"no-process-env": 1, //disallow use of process.env | |||
"no-process-env": 0, //allow use of process.env |
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.
the comments are for when the rules are enabled, so they shouldn't be changed
templates/app/client/app/app.js
Outdated
<%_ if(filters.auth) { _%> | ||
// eslint-disable-next-line no-unused-vars | ||
import ngValidationMatch from 'angular-validation-match'; |
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 should instead just be changed to
import 'angular-validation-match';
@@ -1,3 +1,4 @@ | |||
/*global _*/ |
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 should instead do this:
import _ from 'lodash';
Wasn't sure if I should have fixed the commits to the original commits, I pushed them for now... Let me know if I should do that, then I can forcepush again ;) |
Tested again, works. I noticed on very first run of
Any idea where |
I believe the |
Thanks! |
generator-angular-fullstack$ npm test
)This PR fixes all warnings and linter errors plus deprecated warnings with the default configuration when installing via yo.
Before:
After: