1.1.0 • Published 2 years ago
eslint-plugin-require-form-method v1.1.0
eslint-plugin-require-form-method
Disallow form tags without explicit method attribute
Prevents sensitive data appearing on URLs accidentally

Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-require-form-method:
npm
$ npm install eslint-plugin-require-form-method --save-devyarn
$ yarn add eslint-plugin-require-form-method --devUsage
Add require-form-method to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["require-form-method"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"require-form-method/require-form-method": "error"
}
}