{"id":22408992,"url":"https://github.com/shipsecure-labs/eslint-plugin-next","last_synced_at":"2025-04-05T22:08:24.223Z","repository":{"id":260944362,"uuid":"882785708","full_name":"ShipSecure-Labs/eslint-plugin-next","owner":"ShipSecure-Labs","description":"Secure your Next.js applications with @shipsecure/eslint-plugin-next, an ESLint plugin designed to detect and prevent common security vulnerabilities.","archived":false,"fork":false,"pushed_at":"2025-01-26T10:23:40.000Z","size":78,"stargazers_count":72,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T22:08:14.417Z","etag":null,"topics":["eslint","eslint-plugin","eslint-rules","security"],"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/ShipSecure-Labs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-03T18:51:31.000Z","updated_at":"2025-04-02T15:21:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"af3ef2f9-647c-467a-a388-bbcf1e03cee6","html_url":"https://github.com/ShipSecure-Labs/eslint-plugin-next","commit_stats":null,"previous_names":["shipsecure-labs/eslint-plugin-next"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShipSecure-Labs%2Feslint-plugin-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShipSecure-Labs%2Feslint-plugin-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShipSecure-Labs%2Feslint-plugin-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShipSecure-Labs%2Feslint-plugin-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShipSecure-Labs","download_url":"https://codeload.github.com/ShipSecure-Labs/eslint-plugin-next/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406091,"owners_count":20933803,"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","eslint-plugin","eslint-rules","security"],"created_at":"2024-12-05T12:06:13.280Z","updated_at":"2025-04-05T22:08:24.160Z","avatar_url":"https://github.com/ShipSecure-Labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @shipsecure/eslint-plugin-next\n\n## Overview\n\n`@shipsecure/eslint-plugin-next` is a custom ESLint plugin designed to enhance the security of Next.js applications by identifying potentially insecure patterns in code. This plugin offers a set of rules specifically tailored to prevent common security pitfalls in Next.js, encouraging best practices and securing your app's frontend and backend code.\n\n## Features\n\n- Rules for Secure Code: Detects usage of unsecure URLs, inline scripts, eval, and other potential security vulnerabilities.\n- Recommended Configurations: Provides a recommended set of rules for immediate security improvements.\n- Easy to Integrate: Seamlessly integrates with any Next.js project with simple installation and configuration.\n\n## Installation\n\n```bash\nnpm install @shipsecure/eslint-plugin-next --save-dev\n```\n\n## Usage\n\n### Flat config (requires eslint \u003e= v8.23.0)\n\nAdd the following to your `eslint.config.js` file:\n\n```javascript\nconst shipsecureNext = require(\"@shipsecure/eslint-plugin-next\");\n\nmodule.exports = [shipsecureNext.configs.recommended];\n```\n\n### eslintrc config (deprecated)\n\nAdd the following to your `.eslintrc` file:\n\n```javascript\nmodule.exports = {\n  extends: [\"plugin:@shipsecure/next/recommended-legacy\"],\n};\n```\n\n## Contributing\n\nContributions are welcome! If you'd like to add new rules, suggest enhancements, or report issues, please open a pull request or issue on our [GitHub repository](https://github.com/shipsecure-labs/eslint-plugin-next).\n\n### Steps to Contribute\n\n\u003col\u003e\n\u003cli\u003eFork the repository.\u003c/li\u003e\n\u003cli\u003eCreate a new branch for your feature (git checkout -b feature-name).\u003c/li\u003e\n\u003cli\u003eMake your changes and add tests.\u003c/li\u003e\n\u003cli\u003eRun tests to ensure everything works (npm test).\u003c/li\u003e\n\u003cli\u003ePush your branch and submit a pull request.\u003c/li\u003e\n\u003c/ol\u003e\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipsecure-labs%2Feslint-plugin-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshipsecure-labs%2Feslint-plugin-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipsecure-labs%2Feslint-plugin-next/lists"}