Skip to content

Commit 9e05f3f

Browse files
committed
fix: allow eslint warnings in the sitemap addon
1 parent 937eed6 commit 9e05f3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/addons/sitemap/admin/components/Info/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Info = () => {
4545
<Button
4646
onClick={() => {
4747
document.getElementById('tabs-2-tab').click();
48-
setTimeout(() => (document.querySelector('input[name="hostname"]') as HTMLInputElement).focus(), 0);
48+
setTimeout(() => (document.querySelector('input[name="hostname"]')).focus(), 0);
4949
}}
5050
variant="secondary"
5151
style={{ marginTop: '15px' }}

packages/addons/sitemap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"watch": "../../../node_modules/.bin/pack-up watch",
3939
"watch:link": "../../../node_modules/.bin/strapi-plugin watch:link",
4040
"develop:copy-files": "copyfiles -u 1 xsl/**/* ../../../playground/src/plugins/webtools-addon-sitemap/xsl/",
41-
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
41+
"eslint": "../../../node_modules/.bin/eslint './**/*.{js,jsx,ts,tsx}'",
4242
"eslint:fix": "../../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
4343
},
4444
"peerDependencies": {

0 commit comments

Comments
 (0)