Skip to content
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

Merged
merged 6 commits into from
Aug 16, 2024
Merged

Adds ESLint #4

merged 6 commits into from
Aug 16, 2024

Conversation

marklundin
Copy link
Member

Adds ESLint to the repo, fixes relevant linting issues and adds a linting CI step on push/PR

@marklundin marklundin self-assigned this Aug 16, 2024
@kpal81xd
Copy link
Collaborator

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.

@marklundin
Copy link
Member Author

@kpal81xd valid. updated to eslint8 using @playcanvas/eslint-config

.eslintrc Outdated
],
"rules": {
"no-unused-expressions": "off",
"prefer-arrow-callback": "off",
Copy link
Collaborator

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

Copy link
Member Author

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

Copy link
Collaborator

@kpal81xd kpal81xd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@marklundin marklundin merged commit 041f174 into main Aug 16, 2024
1 check passed
@marklundin marklundin deleted the eslint branch August 16, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants