-
Notifications
You must be signed in to change notification settings - Fork 941
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
Add eslint-plugin-erb to provide linting of .js.erb files #5559
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me - this is what I was looking for, i.e. the nontrivial things fixed and the plugin enabled.
I would like one of the other maintainers to double-check this too.
3d1bb7a
to
a8f1c58
Compare
266988e
to
7b421fa
Compare
* Add eslint-plugin-erb to provide linting of our .js.erb files * Lint osm.js.erb and API-ify OSM.params() --------- Co-authored-by: Andy Allan <[email protected]>
7b421fa
to
bc18e85
Compare
"eslint": "^9.0.0", | ||
"eslint-plugin-erb": "^2.1.0", | ||
"@stylistic/eslint-plugin-js": "^3.0.0", | ||
"eslint-formatter-compact": "^8.40.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should we sort the plugins?
Either a linter picks up on this, or it doesn't really matter. 😄
For comparison, we use Bundler/OrderedGems
for our Gemfile.
It's best to have this sort of thing linted, rather than manually maintained, because if we manually maintain it we need to keep remembering about it, discussing it, and asking new developers to learn the hard way about whatever the un-linted convention is.
Merged, thanks for your work on this! |
Nice, flattered that you use my plugin now at openstreetmap ;) If anything is not working, just open an issue. And feel free to leave a GitHub star should you like it 😊 |
Fixes #5523
Closes #5549
Includes gravitystorm#296