Skip to content

Commit e7f8c2e

Browse files
authored
feat: add eslint-plugin-security (#16)
1 parent 5bca4e1 commit e7f8c2e

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"eslint-plugin-no-unsanitized": "4.0.2",
2424
"eslint-plugin-react": "7.34.1",
2525
"eslint-plugin-react-hooks": "4.6.0",
26+
"eslint-plugin-security": "2.1.1",
2627
"eslint-plugin-sonarjs": "0.24.0",
2728
"eslint-plugin-unicorn": "51.0.1",
2829
"eslint-plugin-xss": "0.1.12"

src/configs/recommended.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const recommended: ESLintConfig = {
1010
'plugin:import/typescript',
1111
'plugin:unicorn/recommended',
1212
'plugin:sonarjs/recommended',
13+
'plugin:security/recommended-legacy',
1314
'prettier',
1415
],
1516
parser: '@typescript-eslint/parser',

0 commit comments

Comments
 (0)