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

Add linters #5

Open
NicolasCARPi opened this issue Aug 15, 2020 · 0 comments
Open

Add linters #5

NicolasCARPi opened this issue Aug 15, 2020 · 0 comments

Comments

@NicolasCARPi
Copy link
Collaborator

A linter for JS like eslint will help you with the codebase. Example config: https://github.com/elabftw/elabftw/blob/master/.eslintrc.js

For instance, it can fix automatically when you use var instead of let/const (I've seen a mixed usage in the js files).

A linter for php like phpcs is of great help to format stuff automatically instead of spending time on trivial issues like where the curly braces go. Example config: https://github.com/elabftw/elabftw/blob/master/.php_cs.dist

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

No branches or pull requests

1 participant