{"id":19412989,"url":"https://github.com/dielduarte/eslint-plugin-better-js-code","last_synced_at":"2026-06-12T18:32:40.149Z","repository":{"id":147877972,"uuid":"383307734","full_name":"dielduarte/eslint-plugin-better-js-code","owner":"dielduarte","description":"This is just an experimental eslint plugin, to test my knowledge on AST, parsers, and eslint plugins in general","archived":false,"fork":false,"pushed_at":"2021-12-30T22:33:11.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T02:44:42.637Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dielduarte.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-06T01:42:46.000Z","updated_at":"2023-03-08T04:33:10.000Z","dependencies_parsed_at":"2023-05-27T18:45:22.465Z","dependency_job_id":null,"html_url":"https://github.com/dielduarte/eslint-plugin-better-js-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dielduarte/eslint-plugin-better-js-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dielduarte%2Feslint-plugin-better-js-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dielduarte%2Feslint-plugin-better-js-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dielduarte%2Feslint-plugin-better-js-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dielduarte%2Feslint-plugin-better-js-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dielduarte","download_url":"https://codeload.github.com/dielduarte/eslint-plugin-better-js-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dielduarte%2Feslint-plugin-better-js-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34258366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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-11-10T12:29:50.777Z","updated_at":"2026-06-12T18:32:40.133Z","avatar_url":"https://github.com/dielduarte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-better-js-code (only for study purpose)\n\nThis is just an experimental eslint plugin, to test my knowledge on AST, parsers, and eslint plugins in general.\n\nit handles a few interesting challenges you can face when creating a plugin: \n\n- scope navigation (up/down the tree)\n- type comparison in JS\n- strict vs non strict mode\n\nCheck the tests file to understand the scenarios when the plugin would report an error.\n\nIf you are considering using a plugin like that, my advice would be to take a look at a type system.\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, clone this repository and create a local link\n\n```sh\nyarn link\n```\n\nand the following command in the project you would like to test it:\n\n```sh\n yarn link eslint-plugin-better-js-code\n```\n\n## Usage\n\nAdd `better-js-code` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"better-js-code\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"better-js-code/no-diff-variable-types\": 2\n    }\n}\n```\n\n## Supported Rules\n\n* Fill in provided rules here\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdielduarte%2Feslint-plugin-better-js-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdielduarte%2Feslint-plugin-better-js-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdielduarte%2Feslint-plugin-better-js-code/lists"}