{"id":22576076,"url":"https://github.com/Authing/eslint-plugin-authing-nestjs","last_synced_at":"2025-08-04T23:32:47.882Z","repository":{"id":37036250,"uuid":"453381331","full_name":"Authing/eslint-plugin-authing-nestjs","owner":"Authing","description":"ESLint rules for nestjs framework","archived":false,"fork":false,"pushed_at":"2022-06-18T13:49:00.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-03T17:34:30.899Z","etag":null,"topics":["eslint-plugin","eslint-plugin-nestjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Authing.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":"2022-01-29T11:43:28.000Z","updated_at":"2022-07-29T06:03:23.000Z","dependencies_parsed_at":"2022-06-25T12:04:14.984Z","dependency_job_id":null,"html_url":"https://github.com/Authing/eslint-plugin-authing-nestjs","commit_stats":null,"previous_names":["authing/eslint-plugin-nestjs"],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Feslint-plugin-authing-nestjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Feslint-plugin-authing-nestjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Feslint-plugin-authing-nestjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Feslint-plugin-authing-nestjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Authing","download_url":"https://codeload.github.com/Authing/eslint-plugin-authing-nestjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228686179,"owners_count":17957032,"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":["eslint-plugin","eslint-plugin-nestjs"],"created_at":"2024-12-08T04:05:57.882Z","updated_at":"2024-12-08T04:05:59.084Z","avatar_url":"https://github.com/Authing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-authing-nestjs\n\n\u003cdiv align=center\u003e\n  \u003cimg width=\"300\" src=\"https://files.authing.co/authing-console/authing-logo-new-20210924.svg\" alt=\"authing\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://badge.fury.io/js/eslint-plugin-authing-nestjs\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/eslint-plugin-authing-nestjs.svg\" alt=\"npm version\" height=\"18\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Authing/eslint-plugin-authing-nestjs/actions/workflows/ci.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/Authing/eslint-plugin-authing-nestjs/actions/workflows/ci.yml/badge.svg?branch=master\" alt=\"github ci\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Authing/eslint-plugin-authing-nestjs/actions/workflows/test.yml\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/test-passing-brightgreen\" alt=\"testing\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmcharts.com/compare/eslint-plugin-authing-nestjs\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/eslint-plugin-authing-nestjs\" alt=\"download\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Authing/eslint-plugin-authing-nestjs/pulls\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-orange\" alt=\"welcome pr\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen\" alt=\"license\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://forum.authing.cn/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/chat-forum-blue\" alt=\"forum\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/en/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/node-%3E=12-green.svg\" alt=\"nodejs\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv\u003e\n  \u003cspan\u003eeslint-plugin-authing-nestjs is an MIT-licensed open source project for\u003c/span\u003e\n  \u003ca target=\"_blank\" href=\"https://github.com/nestjs/nest\"\u003e nestjs \u003c/a\u003e\n  \u003cspan\u003eframework\u003c/span\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n## Install\n\n```shell\nnpm install --save-dev eslint-plugin-authing-nestjs\n```\n\nor\n\n```shell\nyarn add eslint-plugin-authing-nestjs -D\n```\n\n## Usage\n\nConfigure it in your [configuration file](https://eslint.org/docs/user-guide/configuring/):\n\n- Add to `plugins` section:\n\n- Add to `extends` or `rules` section:\n\n``` javascript\nmodule.exports = {\n  plugins: ['authing-nestjs'],\n  extends: [\n    'plugin:authing-nestjs/recommended'\n  ],\n  // *** Usage: refer to unit test documents for specific rules ***\n  rules: {\n    // It is forbidden to use parameters in the @Body, eg: @Body(\"name\")\n    'authing-nestjs/forbid_body_parameters': 'warn', // default 'error'\n\n    // It is forbidden to read body from Req, eg: req.body\n    'authing-nestjs/forbid_read_body_from_req': 'warn',\n\n    // The @Body type annotation in the function must be a class, eg: @Body() dto: ClassDto\n    'authing-nestjs/use_class_as_type_in_method_of_controller': 'warn',\n\n    // Each DTO field must have a class validator\n    // There must be at least 2 class validators for a DTO with IsOptional\n    // For nested DTO，Type and ValidateNested must appear at the same time\n    'authing-nestjs/use_class_validator_to_dto': 'warn',\n    \n    // ... more\n  }\n}\n```\n\n- [Configure rules](https://eslint.org/docs/user-guide/configuring/#configuring-rules)\n\n## Changelog\n\nDetailed changes for each release are documented in the [release notes](https://github.com/Authing/eslint-plugin-authing-nestjs/releases).\n## Contribution\n\n- Fork it\n- Create your feature branch (git checkout -b my-new-feature)\n- Commit your changes (git commit -am 'Add some feature')\n- Push to the branch (git push -u origin my-new-feature)\n- Create new Pull Request\n## Help\n\nJoin us on forum: [#authing-chat](https://forum.authing.cn/)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2022 Authing\n\n## Links\n\n- [AuthingMove](https://github.com/Authing/AuthingMove)\n- [authingmove-template](https://github.com/Authing/authingmove-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAuthing%2Feslint-plugin-authing-nestjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAuthing%2Feslint-plugin-authing-nestjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAuthing%2Feslint-plugin-authing-nestjs/lists"}