Skip to content

Commit

Permalink
Update: Add eslint-plugin-no-unsanitized
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Nov 10, 2023
1 parent a1d6a40 commit 7a58538
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
"parserOptions": {
"sourceType": "module"
},
"plugins": ["tailwindcss", "unused-imports", "prettier", "simple-import-sort"],
"root": true,
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["tailwindcss", "unused-imports", "prettier", "simple-import-sort", "no-unsanitized"],
"rules": {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
Expand All @@ -25,13 +31,9 @@
{
"whitelist": ["rainbow\\-bg", "rainbow\\-text", "rainbow\\-bg\\-shadow", "rainbow\\-text\\-shadow"]
}
]
},
"root": true,
"settings": {
"react": {
"version": "detect"
}
],
"no-unsanitized/method": "warn",
"no-unsanitized/property": "warn"
},
"overrides": [
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"daisyui": "^3.9.4",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^10.0.0",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 7a58538

Please sign in to comment.