1.0.2 • Published 10 months ago

@shipsecure/eslint-plugin-next v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@shipsecure/eslint-plugin-next

Overview

@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.

Features

  • Rules for Secure Code: Detects usage of unsecure URLs, inline scripts, eval, and other potential security vulnerabilities.
  • Recommended Configurations: Provides a recommended set of rules for immediate security improvements.
  • Easy to Integrate: Seamlessly integrates with any Next.js project with simple installation and configuration.

Installation

npm install @shipsecure/eslint-plugin-next --save-dev

Usage

Flat config (requires eslint >= v8.23.0)

Add the following to your eslint.config.js file:

const shipsecureNext = require("@shipsecure/eslint-plugin-next");

module.exports = [shipsecureNext.configs.recommended];

eslintrc config (deprecated)

Add the following to your .eslintrc file:

module.exports = {
  extends: ["plugin:@shipsecure/next/recommended-legacy"],
};

Contributing

Contributions 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.

Steps to Contribute

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago