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

Exclude JS files from PHP Code sniffer configuration #129

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

dcorb
Copy link
Contributor

@dcorb dcorb commented Sep 17, 2020

Because PHP Code sniffer is not up-to-date with ES6 standards:

PHP_CodeSniffer does not support modern JS syntax. All JS functionality will be removed in version 4 and no bugs will be fixed in version 3. I strongly suggest switching to a dedicated JS linting tool like eslint.
squizlabs/PHP_CodeSniffer#2785

and already has been disabled in other Wunder projects.

We have a better way of linting JS files, after we merge this #111

Copy link
Contributor

@guncha25 guncha25 left a comment

Choose a reason for hiding this comment

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

No issues with that.

@dcorb dcorb merged commit 30f5e14 into master Sep 17, 2020
@dcorb dcorb deleted the exclude-js-from-phpcs branch September 17, 2020 13:59
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