{"id":20881289,"url":"https://github.com/peakchen90/eslint-plugin-react-directives","last_synced_at":"2025-05-12T16:32:40.256Z","repository":{"id":57230164,"uuid":"213183371","full_name":"peakchen90/eslint-plugin-react-directives","owner":"peakchen90","description":"some rules for babel-plugin-react-directives.","archived":false,"fork":false,"pushed_at":"2022-03-18T15:33:58.000Z","size":21,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T21:48:28.264Z","etag":null,"topics":["directive","eslint","eslint-plugin","no-undef","no-unused-vars","react","react-directive","x-for"],"latest_commit_sha":null,"homepage":"https://npm.im/eslint-plugin-react-directives","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/peakchen90.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}},"created_at":"2019-10-06T14:29:46.000Z","updated_at":"2022-09-20T13:26:55.000Z","dependencies_parsed_at":"2022-09-11T06:51:44.922Z","dependency_job_id":null,"html_url":"https://github.com/peakchen90/eslint-plugin-react-directives","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakchen90%2Feslint-plugin-react-directives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakchen90%2Feslint-plugin-react-directives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakchen90%2Feslint-plugin-react-directives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakchen90%2Feslint-plugin-react-directives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peakchen90","download_url":"https://codeload.github.com/peakchen90/eslint-plugin-react-directives/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253777063,"owners_count":21962623,"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":["directive","eslint","eslint-plugin","no-undef","no-unused-vars","react","react-directive","x-for"],"created_at":"2024-11-18T07:24:21.194Z","updated_at":"2025-05-12T16:32:39.928Z","avatar_url":"https://github.com/peakchen90.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-react-directives\n\n[![Build Status](https://app.travis-ci.com/peakchen90/eslint-plugin-react-directives.svg?branch=master)](https://app.travis-ci.com/peakchen90/eslint-plugin-react-directives)\n![node](https://img.shields.io/node/v/eslint-plugin-react-directives.svg)\n![npm peer dependency version](https://img.shields.io/npm/dependency-version/eslint-plugin-react-directives/peer/eslint.svg)\n[![npm](https://img.shields.io/npm/v/eslint-plugin-react-directives.svg)](https://www.npmjs.com/package/eslint-plugin-react-directives)\n[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/peakchen90/eslint-plugin-react-directives/blob/master/LICENSE)\n\n\nsome rules for [babel-plugin-react-directives](https://github.com/peakchen90/babel-plugin-react-directives).\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-react-directives`:\n\n```\n$ npm install eslint-plugin-react-directives --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-react-directives` globally.\n\n## Usage\n\nThere are two ways to configure it via `.eslintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"react-directives\"\n  ],\n  \"rules\": {\n    \"no-undef\": \"off\",\n    \"react-directives/no-undef\": \"error\"\n  }\n}\n```\n\nor use the recommended rules:\n\n```json\n{\n  \"extends\": [\n    \"plugin:react-directives/recommended\"\n  ],\n  \"rules\": {\n    \"no-undef\": \"off\"\n  }\n}\n```\n\n## Settings\n\nIf you have configured some options in [`babel-plugin-react-directives`](https://github.com/peakchen90/babel-plugin-react-directives#plugin-options), add `settings` section to `.eslintrc` file.\n\n```json\n{\n  \"settings\": {\n    \"react-directives\": {\n      \"prefix\": \"x\"\n    }\n  }\n}\n```\n\n## List of supported rules\n\n* [react-directives/no-undef](./docs/rules/no-undef.md) Disallow Undeclared Variables.\n\n\n## Shareable configurations\n\n### Recommended\nThis plugin exports a recommended configuration.\n\nTo enable this configuration use the extends property in your .eslintrc config file:\n\n```json\n{\n  \"extends\": [\n    \"plugin:react-directives/recommended\"\n  ]\n}\n```\n\nThe rules enabled in this configuration are:\n\n* [react-directives/no-undef](./docs/rules/no-undef.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakchen90%2Feslint-plugin-react-directives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeakchen90%2Feslint-plugin-react-directives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakchen90%2Feslint-plugin-react-directives/lists"}