diff --git a/.prettierignore b/.prettierignore index 255bdcc5..a40e50c8 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,5 +10,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* /.next -/public/tmp +/public /src/helpers/Favicons.tsx diff --git a/package.json b/package.json index 0ad2472a..4e284ab5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "next", "lint": "eslint . --report-unused-disable-directives", - "lintfix": "prettier . --write && eslint . --report-unused-disable-directives --fix", + "lintfix": "prettier . --write && eslint ./src ./pages --report-unused-disable-directives --fix", "prettify": "prettier . --write", "build": "next build", "start": "next start", diff --git a/src/components/FeaturePanel/TagsTable.tsx b/src/components/FeaturePanel/TagsTable.tsx index 55b7279f..a8b82d8d 100644 --- a/src/components/FeaturePanel/TagsTable.tsx +++ b/src/components/FeaturePanel/TagsTable.tsx @@ -64,7 +64,6 @@ const isNetwork = (k) => k.match(/network/); const isBrand = (k) => k.match(/^brand/); const isPayment = (k) => k.match(/^payment/); -// eslint-disable-next-line @typescript-eslint/no-unused-vars const TagsGroup = ({ tags, label, value, hideArrow = false, onEdit }) => { const [isShown, toggle] = useToggleState(false); diff --git a/src/services/images/getMapillaryImage.ts b/src/services/images/getMapillaryImage.ts index 33ea3c61..77b047d9 100644 --- a/src/services/images/getMapillaryImage.ts +++ b/src/services/images/getMapillaryImage.ts @@ -27,7 +27,7 @@ export const getMapillaryImage = async (center: Position): Promise => { try { return await getMapillaryImageRaw(center); } catch (e) { - console.warn(e); + console.warn(e); // eslint-disable-line no-console return undefined; } }; diff --git a/tsconfig.json b/tsconfig.json index ca95ff8a..f87cf1f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,5 @@ "**/*.ts", "**/*.tsx" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "public"] }