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
chore: Add ESLint-plugin-ejs-js #2492
Conversation
@peterbe think I'm running into a similar oddity that I hit with the flattening of the shell scripts. I can also just run the cleanups and submit them as a first step |
I have an love-hate relationship with this PR. There appears to be a bunch of useful fixes eslint uncovered. But I definitely don't like the added complexity of having to rely on patches and |
@peterbe I'm going to submit the fixes in separate PRs since it seems like they are OK. I did submit the hack upstream, but it seems like it's a plugin the author never ended up using. I'll also take a look if the whole parser can be vendored into this project and locally loaded by ESLint |
For the record, once a long time ago, before we could decide between ESLint or TypeScript for all the Node code, I didn't want to wait so I installed eslint locally (one-off) and applied a bunch of fixes. It got use 90% more "correct" but obviously not sustainable. |
Even for Typescript, the TSLint library ended up porting to a ESLint plugin+parser 😄 |
I split out some of the cleanups to separate PRs. After those land, I'll rebase this to do a bigger sweap of the unused variables and redefined variables as new PRs. |
@peterbe so apparently vendoring the plugin into the repo works 😆 |
40253a7
to
bd5e4bd
Compare
@peterbe I rebased out the template changes since they mostly got spun out to separate PRs |
25f4891
to
11d942a
Compare
@escattone fyi, this is the base that I've been using to find the EJS stuff |
Rebased and added in the |
Drive-by-comment; Is this helping? A lot of the code in the Also, vendoring in code is scary to me. Now it shows up when you search the code and I don't even know what it does to our licensing language when we have to mention that portions are different. |
@nschonni I'm sorry for the delay in getting to this. I'm sorry to say that I don't think this is worth adding. I'm sorry because you've done a lot of good work, and I have nothing but respect and admiration for that and your generousity! However, our goal this year is to remove, render-out, or replace all or nearly all of the macros, so I'd rather not invest any more effort and/or code down this path. With that said though, I don't mind that you're using this to create PR's for cleaning-up the current state of our macros (although those PR's will be considered low priority given everything else we have to do). I'm going to close this, but not without admiration for your work! |
Allow ESLinting of EJS files