Skip to content

Commit af8770b

Browse files
committed
Fix future type errors
1 parent 343bf30 commit af8770b

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

bun.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ import tseslint from "typescript-eslint";
1313

1414
export default defineConfig([
1515
{
16-
files: ["**/*.{js,ts,jsx,tsx}"],
16+
files: ["**/*.js"],
1717
plugins: { js },
1818
extends: ["js/recommended"],
1919
languageOptions: { globals: { ...globals.browser, ...globals.node } },
2020
},
2121
tseslint.configs.stylisticTypeChecked,
22+
{
23+
files: ["**/*.ts"],
24+
},
2225
{
2326
languageOptions: {
2427
parserOptions: {
@@ -39,7 +42,14 @@ export default defineConfig([
3942
"no-unused-vars": "off",
4043

4144
"@typescript-eslint/ban-ts-comment": "off",
42-
"@typescript-eslint/no-unused-vars": "error",
45+
"@typescript-eslint/no-unused-vars": [
46+
"error",
47+
{
48+
argsIgnorePattern: "^_",
49+
varsIgnorePattern: "^_",
50+
caughtErrorsIgnorePattern: "^_",
51+
},
52+
],
4353

4454
"react/prop-types": "off",
4555
"react/react-in-jsx-scope": "off",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "next build",
99
"dev": "next dev --turbo",
1010
"format": "prettier --write .",
11-
"lint": "eslint .",
11+
"lint": "eslint . && tsc",
1212
"lint:formatting": "prettier --check .",
1313
"prepare": "bun .husky/install.js",
1414
"preview": "next build && next start",
@@ -26,6 +26,7 @@
2626
"@fsouza/prettierd": "^0.26.1",
2727
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
2828
"@tailwindcss/postcss": "^4.1.16",
29+
"@types/bun": "^1.3.1",
2930
"@types/node": "^20.8.9",
3031
"@types/react": "19",
3132
"@typescript-eslint/eslint-plugin": "^6.9.0",

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"allowImportingTsExtensions": true,
55
"allowJs": true,
6+
"baseUrl": "src/",
67
"esModuleInterop": true,
78
"forceConsistentCasingInFileNames": true,
89
"incremental": true,
@@ -14,7 +15,7 @@
1415
"noEmit": true,
1516
"noImplicitAny": true,
1617
"paths": {
17-
"~/*": ["./src/*"]
18+
"~/*": ["./*"]
1819
},
1920
"plugins": [
2021
{
@@ -28,7 +29,7 @@
2829
},
2930
"exclude": ["node_modules/"],
3031
"include": [
31-
"src/**/*.{js,ts,jsx,tsx}",
32+
"src/",
3233
".husky/install.js",
3334
".next/types/**/*.ts",
3435
"index.d.ts",

0 commit comments

Comments
 (0)