{"id":14967625,"url":"https://github.com/ezhlobo/eslint-plugin-react-pug","last_synced_at":"2025-10-25T20:31:41.406Z","repository":{"id":25518207,"uuid":"104082398","full_name":"ezhlobo/eslint-plugin-react-pug","owner":"ezhlobo","description":"Add supporting of pugjs with react","archived":false,"fork":false,"pushed_at":"2022-02-11T21:47:09.000Z","size":281,"stargazers_count":20,"open_issues_count":18,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:25:38.682Z","etag":null,"topics":["babel","eslint","eslint-plugin","eslint-rules","eslintplugin","pug","pug-templates","pugjs","react"],"latest_commit_sha":null,"homepage":null,"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/ezhlobo.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":"2017-09-19T14:01:19.000Z","updated_at":"2023-09-01T00:14:54.000Z","dependencies_parsed_at":"2022-07-15T13:47:19.540Z","dependency_job_id":null,"html_url":"https://github.com/ezhlobo/eslint-plugin-react-pug","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezhlobo%2Feslint-plugin-react-pug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezhlobo%2Feslint-plugin-react-pug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezhlobo%2Feslint-plugin-react-pug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezhlobo%2Feslint-plugin-react-pug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezhlobo","download_url":"https://codeload.github.com/ezhlobo/eslint-plugin-react-pug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238207646,"owners_count":19434095,"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","eslint","eslint-plugin","eslint-rules","eslintplugin","pug","pug-templates","pugjs","react"],"created_at":"2024-09-24T13:38:22.516Z","updated_at":"2025-10-25T20:31:36.054Z","avatar_url":"https://github.com/ezhlobo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-react-pug\n\nAdd supporting of pugjs with react.\n\n[![npm version](https://img.shields.io/npm/v/eslint-plugin-react-pug.svg?longCache)](https://www.npmjs.com/package/eslint-plugin-react-pug) [![CI Status](https://img.shields.io/circleci/project/github/ezhlobo/eslint-plugin-react-pug/master.svg?longCache)](https://circleci.com/gh/ezhlobo/eslint-plugin-react-pug/tree/master)\n\nIt adds supporting of [babel-plugin-transform-react-pug](https://github.com/pugjs/babel-plugin-transform-react-pug).\n\n## Table of Contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [List of supported rules](#list-of-supported-rules)\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-pug`:\n\n```\n$ npm install eslint-plugin-react-pug --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-react-pug` globally.\n\n## Usage\n\nAdd `react-pug` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"react-pug\"\n    ]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"extends\": [\n        \"plugin:react-pug/all\"\n    ]\n}\n```\n\n## List of supported rules\n\n* [`react-pug/empty-lines`](./docs/rules/empty-lines.md): Manage empty lines in Pug\n* [`react-pug/eslint`](./docs/rules/eslint.md): Lint JavaScript code inside Pug\n* [`react-pug/indent`](./docs/rules/indent.md): Enforce consistent indentation\n* [`react-pug/no-broken-template`](./docs/rules/no-broken-template.md): Disallow broken template\n* [`react-pug/no-interpolation`](./docs/rules/no-interpolation.md): Disallow JavaScript interpolation\n* [`react-pug/no-undef`](./docs/rules/no-undef.md): Disallow undeclared variables in Pug\n* [`react-pug/prop-types`](./docs/rules/prop-types.md): Manage prop-types usage\n* [`react-pug/quotes`](./docs/rules/quotes.md): Manage quotes in Pug\n* [`react-pug/uses-react`](./docs/rules/uses-react.md): Prevent React to be marked as unused\n* [`react-pug/uses-vars`](./docs/rules/uses-vars.md): Prevent variables used in Pug to be marked as unused\n\nExperimental:\n\n* [`react-pug/pug-lint`](./docs/rules/pug-lint.md): Inherit pug-lint to validate pug\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezhlobo%2Feslint-plugin-react-pug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezhlobo%2Feslint-plugin-react-pug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezhlobo%2Feslint-plugin-react-pug/lists"}