Disallow jQuery functions with XSS potential.
npm install eslint-plugin-jquery-unsafeDisallow jQuery functions with XSS potential.
Copied directly from eslint-plugin-jquery.
Forking didn't seem appropriate as the intent of the plugin is different.
You'll first need to install ESLint:
```
$ npm install eslint --save-dev
Next, install eslint-plugin-jquery-unsafe:
``
$ npm install eslint-plugin-jquery-unsafe --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-jquery-unsafe globally.
Add jquery-unsafe to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"jquery-unsafe"
],
"rules": {
"jquery-unsafe/no-after": 2,
"jquery-unsafe/no-append": 2,
"jquery-unsafe/no-appendTo": 2,
"jquery-unsafe/no-before": 2,
"jquery-unsafe/no-html": 2,
"jquery-unsafe/no-prepend": 2,
"jquery-unsafe/no-prependTo": 2
}
}
```
npm install
npm test
Distributed under the MIT license. See LICENSE for details.