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

Lint all JS #17924

Closed
XhmikosR opened this issue Oct 14, 2015 · 3 comments
Closed

Lint all JS #17924

XhmikosR opened this issue Oct 14, 2015 · 3 comments

Comments

@XhmikosR
Copy link
Member

Currently ESlint only lints /js/*.js; we should lint /grunt and docs.

@simonewebdesign
Copy link

No problem about the grunt folder, but docs seems to have many compiled files, as well as minified ones. I tried running the linter against ['js/src/*.js', 'grunt', 'docs'] and it took several minutes with a massive amount of errors:

>> 34671 code style errors found!
Warning: Task "jscs:core" failed. Use --force to continue.

Aborted due to warnings.


Execution Time (2015-10-14 11:00:17 UTC)
eslint:target         6.9s  ▇ 1%
jscs:core        11m 10.5s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 98%
Total 11m 27.4s

Maybe we should restrict the linter to run just on some specific directories under docs?

@XhmikosR
Copy link
Member Author

You got it wrong clearly. Docs JS src only.
On Oct 14, 2015 14:20, "Simone Vittori" [email protected] wrote:

No problem about the grunt folder, but docs seems to have many compiled
files, as well as minified ones. I tried running the linter against ['js/src/*.js',
'grunt', 'docs'] and it took several minutes with a massive amount of
errors:

34671 code style errors found!
Warning: Task "jscs:core" failed. Use --force to continue.

Aborted due to warnings.

Execution Time (2015-10-14 11:00:17 UTC)
eslint:target 6.9s ▇ 1%
jscs:core 11m 10.5s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 98%
Total 11m 27.4s

Maybe we should restrict the linter to run just on some specific
directories under docs?


Reply to this email directly or view it on GitHub
#17924 (comment).

@simonewebdesign
Copy link

Oh -- makes sense.

So if I understand correctly, the task is about copying the same configuration we have for grunt jscs into grunt eslint. So at the end we'll have the following commands available:

  • grunt eslint
  • grunt eslint:grunt
  • grunt eslint:core
  • grunt eslint:test
  • grunt eslint:assets

Is this correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants