Skip to content
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

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

hlfan
Copy link
Contributor

@hlfan hlfan commented Jan 26, 2025

Fixes #5523
Closes #5549
Includes gravitystorm#296

Copy link
Collaborator

@gravitystorm gravitystorm left a 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.

package.json Outdated Show resolved Hide resolved
@hlfan hlfan requested a review from AntonKhorev February 1, 2025 05:43
@hlfan hlfan closed this Feb 2, 2025
@hlfan hlfan deleted the eslint-plugin-erb branch February 2, 2025 14:15
@hlfan hlfan restored the eslint-plugin-erb branch February 2, 2025 14:15
@hlfan hlfan reopened this Feb 2, 2025
@hlfan hlfan force-pushed the eslint-plugin-erb branch 3 times, most recently from 3d1bb7a to a8f1c58 Compare February 3, 2025 16:58
@hlfan hlfan force-pushed the eslint-plugin-erb branch from 266988e to 7b421fa Compare February 4, 2025 17:31
@hlfan hlfan requested a review from AntonKhorev February 4, 2025 17:47
* 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 <git@gravitystorm.co.uk>
@hlfan hlfan force-pushed the eslint-plugin-erb branch from 7b421fa to bc18e85 Compare February 5, 2025 16:01
Comment on lines 12 to 15
"eslint": "^9.0.0",
"eslint-plugin-erb": "^2.1.0",
"@stylistic/eslint-plugin-js": "^3.0.0",
"eslint-formatter-compact": "^8.40.0"
Copy link
Collaborator

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.

@gravitystorm gravitystorm merged commit 6142d8b into openstreetmap:master Feb 5, 2025
22 checks passed
@gravitystorm
Copy link
Collaborator

Merged, thanks for your work on this!

@Splines
Copy link

Splines commented Feb 5, 2025

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 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add linting for .js.erb files
5 participants