diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5d12c71..4364ba5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,5 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: lint files - run: yarn install && yarn lint \ No newline at end of file + - uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'yarn' + - name: Install dependencies + run: yarn install + + - name: Lint files + run: yarn lint \ No newline at end of file diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml index 0053dae..3e0871f 100644 --- a/.github/workflows/nextjs_bundle_analysis.yml +++ b/.github/workflows/nextjs_bundle_analysis.yml @@ -5,12 +5,9 @@ name: 'Next.js Bundle Analysis' on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main - workflow_dispatch: + branches: [main] defaults: run: @@ -32,6 +29,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 + cache: 'yarn' - name: Install dependencies uses: bahmutov/npm-install@v1 diff --git a/apps/snakecode-webapp/tsconfig.json b/apps/snakecode-webapp/tsconfig.json index 4cdf37b..6cc77a7 100644 --- a/apps/snakecode-webapp/tsconfig.json +++ b/apps/snakecode-webapp/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -14,11 +18,29 @@ "jsx": "preserve", "incremental": true, "paths": { - "@/*": ["./src/*"], - "@public/*": ["./public/*"], - "@root/*": ["./*"] - } + "@/*": [ + "./src/*" + ], + "@public/*": [ + "./public/*" + ], + "@root/*": [ + "./*" + ] + }, + "plugins": [ + { + "name": "next" + } + ] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }