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

fix(rule-finder): Support scoped packages with dashes #305

Merged
merged 3 commits into from
Aug 31, 2019

Conversation

chrisblossom
Copy link
Contributor

Use eslint's internal functions to support shorthand eslint plugin naming.

fix #303

src/lib/eslint-naming.js Outdated Show resolved Hide resolved
src/lib/eslint-naming.js Outdated Show resolved Hide resolved
src/lib/eslint-naming.js Outdated Show resolved Hide resolved
@chrisblossom chrisblossom force-pushed the fix-scope-with-dash branch 2 times, most recently from 8312b20 to 2c12490 Compare July 2, 2019 18:15
src/lib/rule-finder.js Outdated Show resolved Hide resolved
@chrisblossom chrisblossom force-pushed the fix-scope-with-dash branch 2 times, most recently from 04c7f9f to 0512480 Compare July 2, 2019 23:25
@chrisblossom
Copy link
Contributor Author

Are there any other requested changes to get this PR moving along?

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks, i like the improvements

@ljharb
Copy link
Collaborator

ljharb commented Aug 9, 2019

@chrisblossom I'm afraid that now that this is rebased on top of eslint 6 support, the eslint 6 tests are failing.

@chrisblossom
Copy link
Contributor Author

chrisblossom commented Aug 9, 2019

I'm afraid that now that this is rebased on top of eslint 6 support, the eslint 6 tests are failing.

I’ll look into this soon.

@chrisblossom
Copy link
Contributor Author

chrisblossom commented Aug 13, 2019

Looks like one of the issues is that eslint moved the naming file in 6.1.0.

v6.0.1: lib/cli-engine/naming.js
v6.1.0: lib/shared/naming.js

@ljharb
Copy link
Collaborator

ljharb commented Aug 13, 2019

Sigh. Let’s do another try/catch require on that then.

@chrisblossom
Copy link
Contributor Author

chrisblossom commented Aug 13, 2019

Tests pass now. Also increased the mocha timeout in test/lib/rule-finder.js because tests would randomly fail.

...
     no specifiedFile - all available rules including deprecated
    1) specifiedFile (relative path) - unused rules
     specifiedFile (relative path) - unused rules including deprecated (1756ms)
     specifiedFile (relative path) - current rules (1697ms)
     specifiedFile (relative path) - current rule config (1722ms)
     specifiedFile (relative path) - plugin rules (1717ms)

...

  64 passing (39s)
  1 failing

  1) rule-finder specifiedFile (relative path) - unused rules:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
      at processImmediate (internal/timers.js:439:21)

@chrisblossom chrisblossom mentioned this pull request Aug 13, 2019
@chrisblossom
Copy link
Contributor Author

Who else needs to review this PR to get it merged and released? I'd like to be able to start using this with my typescript eslint config.

@ljharb ljharb merged commit f99a00e into sarbbottam:master Aug 31, 2019
@chrisblossom chrisblossom deleted the fix-scope-with-dash branch September 9, 2019 17:30
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.

Scoped plugin error
3 participants