{"id":13608251,"url":"https://github.com/babel/eslint-plugin-babel","last_synced_at":"2025-10-02T23:35:34.004Z","repository":{"id":33961322,"uuid":"37693525","full_name":"babel/eslint-plugin-babel","owner":"babel","description":"An ESlint rule plugin companion to babel-eslint","archived":true,"fork":false,"pushed_at":"2020-07-31T17:01:40.000Z","size":180,"stargazers_count":389,"open_issues_count":0,"forks_count":62,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-30T02:32:03.215Z","etag":null,"topics":["babel","babel-eslint","eslint","eslint-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/babel/babel-eslint","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["babel"],"open_collective":"babel","custom":"https://gitcoin.co/grants/2906/babel-compiler-for-next-generation-javascript"}},"created_at":"2015-06-19T00:50:43.000Z","updated_at":"2024-09-02T06:32:52.000Z","dependencies_parsed_at":"2022-07-13T16:00:43.081Z","dependency_job_id":null,"html_url":"https://github.com/babel/eslint-plugin-babel","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Feslint-plugin-babel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Feslint-plugin-babel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Feslint-plugin-babel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Feslint-plugin-babel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel","download_url":"https://codeload.github.com/babel/eslint-plugin-babel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235051537,"owners_count":18928181,"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":["babel","babel-eslint","eslint","eslint-plugin"],"created_at":"2024-08-01T19:01:25.593Z","updated_at":"2025-10-02T23:35:28.731Z","avatar_url":"https://github.com/babel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/babel","https://opencollective.com/babel","https://gitcoin.co/grants/2906/babel-compiler-for-next-generation-javascript"],"categories":["JavaScript"],"sub_categories":[],"readme":"# eslint-plugin-babel\n\n## NOTE: eslint-plugin-babel is now `@babel/eslint-plugin` and has moved into the [Babel monorepo](https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin).\n\nAn `eslint` plugin companion to `babel-eslint`. `babel-eslint` does a great job at adapting `eslint`\nfor use with Babel, but it can't change the built in rules to support experimental features.\n`eslint-plugin-babel` re-implements problematic rules so they do not give false positives or negatives.\n\n\u003e Requires Node 4 or greater\n\n### Install\n\n```sh\nnpm install eslint-plugin-babel --save-dev\n```\n\nLoad the plugin in your `.eslintrc` file:\n\n```json\n{\n  \"plugins\": [\n    \"babel\"\n  ]\n}\n```\n\nFinally enable all the rules you would like to use (remember to disable the\noriginal ones as well!).\n\n```json\n{\n  \"rules\": {\n    \"babel/new-cap\": 1,\n    \"babel/camelcase\": 1,\n    \"babel/no-invalid-this\": 1,\n    \"babel/object-curly-spacing\": 1,\n    \"babel/quotes\": 1,\n    \"babel/semi\": 1,\n    \"babel/no-unused-expressions\": 1,\n    \"babel/valid-typeof\": 1\n  }\n}\n```\n### Rules\n\nEach rule corresponds to a core `eslint` rule, and has the same options.\n\n🛠: means it's autofixable with `--fix`.\n\n- `babel/new-cap`: Ignores capitalized decorators (`@Decorator`)\n- `babel/camelcase`: doesn't complain about optional chaining (`var foo = bar?.a_b;`)\n- `babel/no-invalid-this`: doesn't fail when inside class properties (`class A { a = this.b; }`)\n- `babel/object-curly-spacing`: doesn't complain about `export x from \"mod\";` or `export * as x from \"mod\";` (🛠)\n- `babel/quotes`: doesn't complain about JSX fragment shorthand syntax (`\u003c\u003efoo\u003c/\u003e;`)\n- `babel/semi`: doesn't fail when using `for await (let something of {})`. Includes class properties (🛠)\n- `babel/no-unused-expressions`: doesn't fail when using `do` expressions or [optional chaining](https://github.com/tc39/proposal-optional-chaining) (`a?.b()`).\n- `babel/valid-typeof`: doesn't complain when used with [BigInt](https://github.com/tc39/proposal-bigint) (`typeof BigInt(9007199254740991) === 'bigint'`).\n\n#### Deprecated\n\n| Rule                             | Notes                              |\n|:---------------------------------|:-----------------------------------|\n| `babel/generator-star-spacing`   | Use [`generator-star-spacing`](http://eslint.org/docs/rules/generator-star-spacing) since eslint@3.6.0 |\n| `babel/object-shorthand`         | Use [`object-shorthand`](http://eslint.org/docs/rules/object-shorthand) since eslint@0.20.0 |\n| `babel/arrow-parens`             | Use [`arrow-parens`](http://eslint.org/docs/rules/arrow-parens) since eslint@3.10.0 |\n| `babel/func-params-comma-dangle` | Use [`comma-dangle`](http://eslint.org/docs/rules/comma-dangle) since eslint@3.8.0 |\n| `babel/array-bracket-spacing`    | Use [`array-bracket-spacing`](http://eslint.org/docs/rules/array-bracket-spacing) since eslint@3.9.0 |\n| `babel/flow-object-type`         | Use [`flowtype/object-type-delimiter`](https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter) since eslint-plugin-flowtype@2.23.0 |\n| `babel/no-await-in-loop`         | Use [`no-await-in-loop`](http://eslint.org/docs/rules/no-await-in-loop) since eslint@3.12.0 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Feslint-plugin-babel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel%2Feslint-plugin-babel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Feslint-plugin-babel/lists"}