Skip to content

Commit

Permalink
🎨 eslint workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Jan 13, 2025
1 parent c84a48f commit 57ced92
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 25 additions & 1 deletion web/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
module.exports = {
extends: ['../.eslint.config.mjs'],
root: true,
env: {
browser: true,
node: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'next/core-web-vitals',
'prettier',
],
plugins: [],
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^React$',
},
],
// This rule was so noicy so let's turn it off and see how that works
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
},
}
4 changes: 1 addition & 3 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ ENV NEXT_PUBLIC_SANITY_PROJECT_ID ${ARG_SANITY_PROJECT_ID}
ENV NEXT_TELEMETRY_DISABLED=1

RUN \
if [ -f yarn.lock ]; then cd web && yarn run build; \
elif [ -f package-lock.json ]; then cd web && npm run build; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && cd web && pnpm run build; \
if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm web build; \
else echo "Lockfile not found." && exit 1; \
fi

Expand Down

0 comments on commit 57ced92

Please sign in to comment.