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

[REF] javascript-lint: Usability boost #185

Merged

Conversation

yajo
Copy link
Member

@yajo yajo commented Jan 17, 2018

@moylop260 moylop260 changed the title [IMP] Fail on unused JS variables [REF] javascript-lint: Enable check no-unused-vars Jan 17, 2018
@pedrobaeza
Copy link
Member

Why Travis error?

@yajo
Copy link
Member Author

yajo commented Jan 18, 2018

Because dangling variables are errors, as they are currently in python too.

@pedrobaeza
Copy link
Member

But then we should fix them...

@yajo
Copy link
Member Author

yajo commented Jan 18, 2018

Oh sorry I misunderstood you, you mean the ❌ in travis right now... It seems the problem is here.

@yajo yajo changed the title [REF] javascript-lint: Enable check no-unused-vars [REF] javascript-lint: Usability boost Jan 18, 2018
@yajo yajo force-pushed the master-eslint-fail_on_unused_variables branch from cc15403 to e9d6dc7 Compare January 18, 2018 11:45
@yajo
Copy link
Member Author

yajo commented Jan 18, 2018

OK, I have switched this PR's purpose.

After using this eslint configuration for polishing OCA/website#402, I have realised many settings are not very accurate. Since I guess that's one of the few big, well-structured JS addons we have, I'm updating the template here.

Last commit indicates the features introduced.

- Enable `no-unused-vars`
- Allow `continue` statements
- Disable `guard-for-in`
- Do not require `@returns` rules on methods that return nothing
- Set standards for JSDoc
@yajo yajo force-pushed the master-eslint-fail_on_unused_variables branch from e9d6dc7 to 98f0e3b Compare January 18, 2018 11:47
@moylop260 moylop260 merged commit 9dbcacb into OCA:master Jan 18, 2018
@yajo yajo deleted the master-eslint-fail_on_unused_variables branch January 19, 2018 08:20
This pull request was closed.
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.

3 participants