You-Dont-Need-Lodash-Underscore icon indicating copy to clipboard operation
You-Dont-Need-Lodash-Underscore copied to clipboard

TypeScript: Examples and rules

Open casaper opened this issue 3 years ago • 4 comments

I hardly ever write plain JS any more nowadays, so I kind of have to type these very fine examples given here for myself all the time.

So how about this:

  1. make examples in README.md in typescript as well
  2. add a @typescript-eslint/you-dont-need-lodash

I'm willing to contribute to that effort, if there is some agreement amongst the original contributors.

casaper avatar Apr 23 '21 09:04 casaper

@stevemao any thoughts on this?

cht8687 avatar Jul 10 '21 02:07 cht8687

Sounds great!

stevemao avatar Oct 15 '21 10:10 stevemao

@stevemao

I may have a little time to contribute with this occasionally. I suggest I'll make small PR's that do this with one or two different examples at a time.

Does that sound all right to you?

casaper avatar Oct 18 '21 13:10 casaper

Until documentation is updated, any advice on getting the eslint plugin to work in a typescript project? Or is that not what this ticket is about?

I tried installing via npm using:

npm install --save-dev eslint-plugin-you-dont-need-lodash-underscore

then I added this to my .eslintrc.json:

"extends" : ["plugin:you-dont-need-lodash-underscore/compatible"]

and nothing changes. I tried restarting the IDE and that didn't help. I also tried adding this to .eslintrc.json:

"plugins": ["you-dont-need-lodash-underscore"]

also nothing.

🤷

ThickPropheT avatar Jan 19 '24 20:01 ThickPropheT