Giter VIP home page Giter VIP logo

Comments (9)

Rokt33r avatar Rokt33r commented on May 26, 2024 1

Awesome! I'll make a pull request to fix this issue.

from hast-util-to-html.

Rokt33r avatar Rokt33r commented on May 26, 2024 1

@wooorm Hmm I think we can just close this issue now. I've checked the code again and I like the fix currently applied. We use Omit only once in this package so I don't think it is worth to configure the rule in package.json.

from hast-util-to-html.

wooorm avatar wooorm commented on May 26, 2024 1

OK! Thanks for looking into it & working on it!

from hast-util-to-html.

Rokt33r avatar Rokt33r commented on May 26, 2024

In my opinion, the rule can be ignored. Omit doesn't check the omitted props exist in StringifyEntitiesOptions. So if we replace it with Except from type-fest, it would be a little bit helpful for us to detect trivial typos when we rename the omitted props in StringifyEntitiesOptions. And I don't think we would like to rename them that often. So i think we can just disable banning usage of Omit rather than introducing more dev deps.

@ChristianMurphy How do you think?

from hast-util-to-html.

ChristianMurphy avatar ChristianMurphy commented on May 26, 2024

I'd agree, I think adding another devDependency would like cause more frustration than the benefit Except brings. We can probably safely disable this rule.

from hast-util-to-html.

Rokt33r avatar Rokt33r commented on May 26, 2024

@wooorm How can I reproduce the error message? Apparently we aren't using typescript-eslint rules for this repository.

from hast-util-to-html.

wooorm avatar wooorm commented on May 26, 2024

I think updating dtslint to 3 gave me that error.
Xo does have typescript-eslint internally I believe

from hast-util-to-html.

wooorm avatar wooorm commented on May 26, 2024

Ah, I turned them off while updating: 1b34d25

from hast-util-to-html.

Rokt33r avatar Rokt33r commented on May 26, 2024

I see. I'll discard the comment and try to fix it again.

from hast-util-to-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.