You-Dont-Need-Lodash-Underscore
You-Dont-Need-Lodash-Underscore copied to clipboard
TypeScript: Examples and rules
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:
- make examples in README.md in typescript as well
- 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.
@stevemao any thoughts on this?
Sounds great!
@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?
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.
🤷