npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

eslint-plugin-risxss

0.0.5 • Public • Published

🛡RisXSS

Eradicate all XSS flaws of your React application using a single ESLint rule.

Install

$ yarn add eslint eslint-plugin-risxss --dev

Configuration

Configure it in .eslintrc.js.

module.exports = {
  env: {
    browser: true,
    es6: true
  },
  extends: "eslint:recommended",
  parserOptions: {
    ecmaFeatures: {
      jsx: true
    },
    ecmaVersion: 2018,
    sourceType: "module"
  },
  plugins: ["react", "risxss"],
  rules: {
    "risxss/potential-xss": "error"
  }
};
 

Rules

License

MIT

Keywords

none

install

npm i eslint-plugin-risxss

Downloadsweekly downloads

1

version

0.0.5

license

MIT*

last publish

collaborators

  • avatar
Report a vulnerability