{"id":15764673,"url":"https://github.com/ctf0/vscode-blade-linter","last_synced_at":"2025-03-31T10:23:37.485Z","repository":{"id":84058306,"uuid":"316565951","full_name":"ctf0/vscode-blade-linter","owner":"ctf0","description":"for personal use","archived":false,"fork":false,"pushed_at":"2023-01-03T22:57:09.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T12:18:59.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ctf0"}},"created_at":"2020-11-27T17:46:30.000Z","updated_at":"2022-10-16T16:16:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b6ca9d1-876f-4645-81c0-15581095a7c9","html_url":"https://github.com/ctf0/vscode-blade-linter","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.33333333333333337","last_synced_commit":"db086ca54cc67d36f73d41b2be552e8d630461e5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-blade-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-blade-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-blade-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-blade-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/vscode-blade-linter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246451340,"owners_count":20779611,"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","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":[],"created_at":"2024-10-04T12:04:24.965Z","updated_at":"2025-03-31T10:23:37.466Z","avatar_url":"https://github.com/ctf0.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"# Blade Linter\n\nsimple linters rules for blade via regex.\n\n## Usage\n\n- open `blade` file and run `Blade Linter: Lint`\n\n## Rules\n\n- remove trailing `,` in array\n    \u003e `['one','two',]`\n\n- add space before directive round brace `@..(`\n    \u003e `@if (), @push (), ...`\n\n- add new line after directive end\n    \u003e `@endphp, @endif, ...`\n\n- add one space to each side of curly braces\n    \u003e `{!! $one !!}, {{ $one }}, {{-- $one --}}`\n\n- add space after `,`\n    \u003e `, ['one', $two]`\n\n- surround `||` / `\u0026\u0026` / `??` / `=\u003e` / `?:` with one space\n    \u003e `$one || $two, $one \u0026\u0026 $two, $one ?? $two, ['k' =\u003e 'v'], $one ?: $two`\n\n- surround `..?..:..` with one space\n    \u003e `isset($one) ? 'yes' : 'no'`\n\n- surround `--.--.--` with one space\n    \u003e `$one . '|' . $two`\n\n## Notes\n\n- rules works as expected for my own needs, if u had any issues plz open a ticket.\n- this is more of a search and replace, not a global formatter.\n- u can test with [the demo file](demo/index.blade.php)\n\n## Issues\n\n- inline styles/javascript or font declaration might break, so watch out.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-blade-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Fvscode-blade-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-blade-linter/lists"}