{"id":22553923,"url":"https://github.com/aleksandarivezic/javascript-linters","last_synced_at":"2025-08-31T19:42:26.724Z","repository":{"id":51388074,"uuid":"365191514","full_name":"AleksandarIvezic/JavaScript-Linters","owner":"AleksandarIvezic","description":"This repo contains JavaScript-Linters built with Ruby ","archived":false,"fork":false,"pushed_at":"2021-05-12T12:45:01.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-28T10:33:18.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AleksandarIvezic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-07T10:03:51.000Z","updated_at":"2021-05-13T11:01:52.000Z","dependencies_parsed_at":"2022-09-02T06:44:23.801Z","dependency_job_id":null,"html_url":"https://github.com/AleksandarIvezic/JavaScript-Linters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"AleksandarIvezic/Ruby-linter","purl":"pkg:github/AleksandarIvezic/JavaScript-Linters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksandarIvezic%2FJavaScript-Linters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksandarIvezic%2FJavaScript-Linters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksandarIvezic%2FJavaScript-Linters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksandarIvezic%2FJavaScript-Linters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleksandarIvezic","download_url":"https://codeload.github.com/AleksandarIvezic/JavaScript-Linters/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksandarIvezic%2FJavaScript-Linters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032931,"owners_count":25034067,"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-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-12-07T18:11:39.697Z","updated_at":"2025-08-31T19:42:26.683Z","avatar_url":"https://github.com/AleksandarIvezic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Microverse-blueviolet)\n\n# JavaScript Linters\n\n\u003e The main goal of this project is to create a linters that can check JavaScript files and provide feedback about errors. The project was built completely by using Ruby.\n\nIn this project we are looking for the following errors:\n\n   - Wrong indentation\n   - Trailing spaces   \n   - New line errors\n   - Missing tags - (), [], and {}\n   - Multiple variable declaration\n\n## Built With\n\n- Ruby\n- RSpec for Ruby Testing\n\n## Getting Started\n\n### Prerequisites\n   - Installed Ruby\n \n### Download the repo\n\nTo get a local copy of the repository please run the following commands on your terminal:\n\n     cd \u003cfolder\u003e\n\n     git clone https://github.com/ShinobiWarior/JavaScript-Linters.git\n\nTo check for errors on a file:\n\n     ruby ./bin/main js_test.js\n\n### Install RSpec\nTo instal RSpec for testing please run the following command on your terminal:\n    \n    gem install rspec\n\n### Run tests\n\nTo test the code, run  `rspec`  from root of the folder using terminal.\n- Please keep in mind that modifying the js_test.js file will affect the test results.\n\n##  Good and bad code examples\n    \n### Wrong indentation\n~~~javascript\n//Good Code\n\nconst person = {\n  firstName: \"john\",\n  lastName: \"doe\",\n  age: 30,\n  hobbies: [\"music\", \"movies\", \"sports\"],\n  address: {\n    street: \"50 main st\",\n    city: \"boston\",\n    state: \"ma\"\n  }\n}\n\n//Bad code\n\nconst person = {\n    firstName: \"john\",\n    lastName: \"doe\",\n    age: 30,\n    hobbies: [\"music\", \"movies\", \"sports\"],\n    address: {\n        street: \"50 main st\",\n        city: \"boston\",\n        state: \"ma\"\n    }\n}\n\n~~~\n\n### Trailing spaces (Pipe `|` stands instead of cursor)\n~~~javascript\n//Good Code\n\nconst score = 10;|\n\n//Bad code\n\nconst score = 10; |\n\n~~~\n\n### New line errors\n~~~javascript\n//Good Code\n\nconst score = 10;\n\nconst person = {\n  firstName: \"john\",\n  lastName: \"doe\",\n  age: 30,\n  hobbies: [\"music\", \"movies\", \"sports\"],\n  address: {\n    street: \"50 main st\",\n    city: \"boston\",\n    state: \"ma\"\n  }\n}\n\n//Bad code\n\nconst score = 10;\n\n\nconst person = {\n  firstName: \"john\",\n  lastName: \"doe\",\n  age: 30,\n  hobbies: [\"music\", \"movies\", \"sports\"],\n  address: {\n      street: \"50 main st\",\n      city: \"boston\",\n      state: \"ma\"\n  }\n}\n\n~~~\n\n### Missing tags - (), [], and {}\n~~~javascript\n//Good Code\n\nconst person = {\n  firstName: \"john\",\n  lastName: \"doe\",\n  age: 30,\n  hobbies: [\"music\", \"movies\", \"sports\"],\n  address: {\n    street: \"50 main st\",\n    city: \"boston\",\n    state: \"ma\"\n  }\n}\n\n//Bad code\n\nconst person = {\n  firstName: \"john\",\n  lastName: \"doe\",\n  age: 30,\n  hobbies: \"music\", \"movies\", \"sports\"],\n  address: {\n      street: \"50 main st\",\n      city: \"boston\",\n      state: \"ma\"\n    \n}\n\n~~~\n\n### Multiple variable declaration\n~~~javascript\n//Good Code\n\nlet age = 30;\nconst old = 31;\nconst score = 10; \n\n//Bad code\n\nlet age = 30;\nconst age = 31;\nconst score = 10; \n~~~\n\n## Author\n\n👤 **Aleksandar Ivezic**\n\n- Twitter: [@AIvezic](https://twitter.com/AIvezic/)\n- LinkedIn: [Aleksandar Ivezic](https://www.linkedin.com/in/aleksandar-ivezi%C4%87-1a6b0391/)\n- GitHub: [@ShinobiWarior](https://github.com/ShinobiWarior/)\n\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/ShinobiWarior/JavaScript-Linters/issues).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- Project is inspired by [Microverse](https://www.microverse.org/?grsf=w9rx3c)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandarivezic%2Fjavascript-linters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksandarivezic%2Fjavascript-linters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandarivezic%2Fjavascript-linters/lists"}