-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adds ESLint #4
Adds ESLint #4
Conversation
So this is using the new ESLint syntax I think it would be better to stick with our own @playcanvas/eslint-config which is eslint v8 for now until we decide to update everything to v9. |
@kpal81xd valid. updated to eslint8 using @playcanvas/eslint-config |
.eslintrc
Outdated
], | ||
"rules": { | ||
"no-unused-expressions": "off", | ||
"prefer-arrow-callback": "off", |
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 leave this on 😅 its better to encourage use of arrow callbacks so the context is clear when using this
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 is for mocha https://mochajs.org/#arrow-functions, have added exception for tests only
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.
Nice
Adds ESLint to the repo, fixes relevant linting issues and adds a linting CI step on push/PR