https://github.com/darwintantuco/eslint-plugin-require-form-method
Disallow form tags without explicit method attribute
https://github.com/darwintantuco/eslint-plugin-require-form-method
eslint eslint-plugin eslintplugin security
Last synced: about 1 year ago
JSON representation
Disallow form tags without explicit method attribute
- Host: GitHub
- URL: https://github.com/darwintantuco/eslint-plugin-require-form-method
- Owner: darwintantuco
- License: mit
- Created: 2022-04-13T11:05:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T01:02:08.000Z (about 2 years ago)
- Last Synced: 2025-03-30T07:01:29.709Z (over 1 year ago)
- Topics: eslint, eslint-plugin, eslintplugin, security
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://eslint.org):
```
$ npm i eslint --save-dev
```
Next, install `eslint-plugin-require-form-method`:
### npm
```
$ npm install eslint-plugin-require-form-method --save-dev
```
### yarn
```
$ yarn add eslint-plugin-require-form-method --dev
```
## Usage
Add `require-form-method` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": ["require-form-method"]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"require-form-method/require-form-method": "error"
}
}
```