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

devdeps: leche has been deprecated #13287

Closed
aladdin-add opened this issue May 12, 2020 · 9 comments
Closed

devdeps: leche has been deprecated #13287

aladdin-add opened this issue May 12, 2020 · 9 comments
Assignees
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion help wanted The team would welcome a contribution from the community for this issue infrastructure Relates to the tools used in the ESLint development process

Comments

@aladdin-add
Copy link
Member

The version of ESLint you are using.
v7.0.0(latest)

The problem you want to solve.
https://github.com/box/leche#deprecated

Box has migrated to using Jest and no longer uses mocha or leche. We no longer support changes, pull requests, or upgrades to this package.

Your take on the correct solution to problem.
do we want to switch to jest, or just find an alternative?

Are you willing to submit a pull request to implement this change?
y

@aladdin-add aladdin-add added enhancement This change enhances an existing feature of ESLint infrastructure Relates to the tools used in the ESLint development process evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels May 12, 2020
@nzakas
Copy link
Member

nzakas commented May 12, 2020

Switching to Jest doesn't make sense just to update this small dependency. I'm not sure we need to change anything if our tests are still working, but if we do want to change something, I'd just keep it local to the tests using the dependency.

@kaicataldo
Copy link
Member

Agreed with @nzakas. We only use leche in a handful of places, and it looks like we use it for two purposes:

  1. Creating mocks
  2. Running the same test with multiple inputs/outputs

We should be able to replace it by:

  1. Use Sinon for mocking (which we already do in the majority of tests)
  2. Use native JS syntax

Example (based on these tests):

[
    ["let foo", true],
    ["let  foo", true],
    ["let /**/ foo", true],
    ["let/**/foo", false],
    ["let/*\n*/foo", false]
].forEach(([code, expected]) => {
    describe("when the first given is located before the second", () => {
        it(code, () => {
            const ast = espree.parse(code, DEFAULT_CONFIG),
                sourceCode = new SourceCode(code, ast);


            assert.strictEqual(
                sourceCode.isSpaceBetween(
                    sourceCode.ast.tokens[0],
                    sourceCode.ast.tokens[sourceCode.ast.tokens.length - 1]
                ),
                expected
            );
        });
    });
});

@eslint-deprecated eslint-deprecated bot added the auto closed The bot closed this issue label Jun 14, 2020
@eslint-deprecated
Copy link

Unfortunately, it looks like there wasn't enough interest from the team
or community to implement this change. While we wish we'd be able to
accommodate everyone's requests, we do need to prioritize. We've found
that issues failing to reach accepted status after 21 days tend to
never be accepted, and as such, we close those issues.
This doesn't mean the idea isn't interesting or useful, just that it's
not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

@aladdin-add aladdin-add removed the auto closed The bot closed this issue label Jun 14, 2020
@aladdin-add aladdin-add self-assigned this Jun 14, 2020
@aladdin-add aladdin-add reopened this Jun 14, 2020
@nzakas
Copy link
Member

nzakas commented Jun 16, 2020

To reopen this, we should have a plan for addressing it. If not, we should close it.

@aladdin-add
Copy link
Member Author

Anyway, it is discouraged to keep using unmaintained packages. And @kaicataldo 's comment seems like a good direction. thoughts?

@nzakas
Copy link
Member

nzakas commented Jun 18, 2020

I originally wrote leche, so I’m not very concerned about continuing to use it. @kaicataldo‘s suggestion is fine too. I just don’t want to leave this open without a plan.

@kaicataldo
Copy link
Member

@aladdin-add Do you want to work on this? This could also be a good opportunity for a community contribution :)

@aladdin-add aladdin-add added the help wanted The team would welcome a contribution from the community for this issue label Jun 27, 2020
@ghost
Copy link

ghost commented Jul 27, 2020

going to look into this

@nzakas
Copy link
Member

nzakas commented Jul 28, 2020

Thanks @peanutenthusiast!

moeriki added a commit to moeriki/eslint that referenced this issue Aug 9, 2020
…gnore-default-values

* upstream/master: (66 commits)
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  Chore: remove leche (fixes eslint#13287) (eslint#13533)
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  7.6.0
  Build: changelog update for 7.6.0
  Update: require `meta` for fixable rules in RuleTester (refs eslint#13349) (eslint#13489)
  Docs: fix broken links in developer guide (eslint#13518)
  Fix: Do not output `undefined` as line and column when it's unavailable (eslint#13519)
  Sponsors: Sync README with website
  Sponsors: Sync README with website
  Fix: Update the chatroom link to go directly to help channel (eslint#13536)
  Sponsors: Sync README with website
  Update: Change no-duplicate-case to comparing tokens (fixes eslint#13485) (eslint#13494)
  Docs: add ECMAScript 2020 to README (eslint#13510)
  7.5.0
  ...
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jan 30, 2021
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion help wanted The team would welcome a contribution from the community for this issue infrastructure Relates to the tools used in the ESLint development process
Projects
None yet
Development

No branches or pull requests

3 participants