Skip to content

Commit

Permalink
feat(react): add some security linting (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
capitnflam authored Mar 15, 2024
1 parent ba41253 commit 4424b67
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
31 changes: 30 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-unsanitized": "4.0.2",
"eslint-plugin-react": "7.34.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-unicorn": "51.0.1"
"eslint-plugin-unicorn": "51.0.1",
"eslint-plugin-xss": "0.1.12"
},
"devDependencies": {
"@commitlint/cli": "19.2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const react: ESLintConfig = {
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:xss/recommended',
'plugin:no-unsanitized/DOM',
],
settings: {
react: {
Expand Down

0 comments on commit 4424b67

Please sign in to comment.