{"id":17389956,"url":"https://github.com/manuelpuyol/vscode-erb-linter","last_synced_at":"2025-09-10T13:32:25.683Z","repository":{"id":43654016,"uuid":"382396072","full_name":"manuelpuyol/vscode-erb-linter","owner":"manuelpuyol","description":"ERBLint extension for VSCode","archived":false,"fork":false,"pushed_at":"2025-07-08T16:52:29.000Z","size":16562,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T16:59:49.991Z","etag":null,"topics":["erb","linter","ruby"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=manuelpuyol.erb-linter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuelpuyol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-02T15:59:10.000Z","updated_at":"2025-07-08T16:52:33.000Z","dependencies_parsed_at":"2024-10-16T09:41:43.647Z","dependency_job_id":"f3a00b10-9d33-44b3-8078-39424599a47c","html_url":"https://github.com/manuelpuyol/vscode-erb-linter","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.019607843137254943","last_synced_commit":"e97006b911c6476d743ddf7757e033f6f02291d3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/manuelpuyol/vscode-erb-linter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelpuyol%2Fvscode-erb-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelpuyol%2Fvscode-erb-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelpuyol%2Fvscode-erb-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelpuyol%2Fvscode-erb-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelpuyol","download_url":"https://codeload.github.com/manuelpuyol/vscode-erb-linter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelpuyol%2Fvscode-erb-linter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274470375,"owners_count":25291604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erb","linter","ruby"],"created_at":"2024-10-16T09:41:36.771Z","updated_at":"2025-09-10T13:32:25.657Z","avatar_url":"https://github.com/manuelpuyol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ERB Linter for Visual Studio Code\n\n_This project is based on [ruby-rubocop](https://github.com/misogi/vscode-ruby-rubocop)_\n\nThis extensions provides interfaces to [erb-lint](https://github.com/Shopify/erb-lint) for vscode. **It requires version `\u003e= 0.1.0` to work.**\n\n![demo](./assets/demo.gif)\n\n## Features\n\n- Lint ERB files using `ERB Linter: lint with erb-lint` in the command palette.\n- Lint on save.\n- Autocorrect using `ERB Linter: autocorrect current file with erb-lint` in the command palette.\n- Format on save\n\n# Installation\n\nYou can configure rules and behaviors like explained in the [erb-lint docs](https://github.com/Shopify/erb-lint).\nTo install the gem, there are two methods.\n\n## Preferred\n\nAdd `erb_lint` to your project's Gemfile and install it with Bundler.\n\n## Global install\n\nInstall in globally using `gem install erb_lint`. If you want to use it globally, you must set the `executePath`.\n\n# Enabling format on save\n\nTo enable Format on Save for ERB files, you have to update your VSCode configs with:\n\n```json\n\"[erb]\": {\n  \"editor.defaultFormatter\": \"manuelpuyol.erb-linter\",\n  \"editor.formatOnSave\": true\n},\n```\n\n_Note: If you are using the [Rails](https://marketplace.visualstudio.com/items?itemName=bung87.rails) extension, you may need to set the same configuration for `html.erb`_\n\n# Options\n\n## erb.erb-lint.executePath\n\nDeclare an specific path to run `erb-lint`. This is untested and may have some issues loading your configuration file (see configFilePath to fix this).\nIf no path is provided, the extension will default to running `erb-lint` with `bundle`.\n\nThe extension expected the **executable** path, so instead of\n\n```\n$ gem which erb_lint\n~/.rvm/gems/ruby-3.1.0/gems/erb_lint-0.4.0/lib/erb_lint.rb\n```\n\nuse\n\n```\n~/.rvm/gems/ruby-3.1.0/gems/erb_lint-0.4.0/exe\n```\n\nIn case of a globally installed erblint, use\n\n```\n$ which erblint\n/opt/rubies/ruby-2.7.8/bin/erblint\n```\n\n## erb.erb-lint.cmd\n\nCommand to use when running `erb-lint`. The default is `erb_lint`, but older versions of the gem may need to use `erblint`.\n\n## erb.erb-lint.cache\n\nEnables `erb-lint` `--cache` argument. Defaults to `false`.\n\n## erb.erb-lint.configFilePath\n\nPath to the `erb-lint` configuration file. The extension will try to use your root `.erb-lint.yml` file.\n\n## erb.erb-lint.onSave\n\nWhether or not to run `erb-lint` in the current file on save. This defaults to `true`.\n\n## erb.erb-lint.suppressERBLintWarnings\n\nSuppress warnings from erb-lint and attempt to run regardless. Useful if you have random warnings in the `erb-lint` execution. This defaults to `true`.\n\n## erb.erb-lint.pathToBundler\n\nUses `bundle` by default, but can be modified in case you use a custom path.\n\n# TODOs\n\n- Add tests\n- Improve usability with global `erb-lint`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelpuyol%2Fvscode-erb-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelpuyol%2Fvscode-erb-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelpuyol%2Fvscode-erb-linter/lists"}