eslint-config-sec

1.0.0 • Public • Published

eslint-config-sec

Linting rules for safe and secure client code

Rules

Extends eslint-plugin-no-unsanitized (see docs)

  • no-eval - eval('evil code')
  • no-implied-eval - same as eval
  • radix - parseInt('12345', 10) without radix
  • no-debugger - disallow debugger; in code
  • no-new-func - new Function('evil code')

Usage

Add this to .eslintrc.js file:

"extends": [
  "eslint-config-sec"
]

Package Sidebar

Install

npm i eslint-config-sec

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.82 kB

Total Files

4

Last publish

Collaborators

  • relerin