This package has been deprecated

Author message:

This project has been renamed to eslint-plugin-require-form-method. Please uninstall eslint-plugin-require-form-method-post and install eslint-plugin-require-form-method instead.

eslint-plugin-require-form-method-post

1.0.1 • Public • Published

eslint-plugin-require-form-method-post

Node.js CI

Disallow form tags without explicit method="post"

Prevents sensitive data appearing on URLs

Allow form tags with explicit method="get"

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-require-form-method-post:

npm

$ npm install eslint-plugin-require-form-method-post --save-dev

yarn

$ yarn add eslint-plugin-require-form-method-post --dev

Usage

Add require-form-method-post to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["require-form-method-post"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "require-form-method-post/require-form-method-post": "error"
  }
}

Package Sidebar

Install

npm i eslint-plugin-require-form-method-post

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

40.5 kB

Total Files

9

Last publish

Collaborators

  • darwintantuco