diff --git a/apps/frontend-v3/tsconfig.json b/apps/frontend-v3/tsconfig.json index e25f90cb8..01c652e97 100644 --- a/apps/frontend-v3/tsconfig.json +++ b/apps/frontend-v3/tsconfig.json @@ -9,5 +9,6 @@ } ], "types": ["vitest/globals"] - } + }, + "include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts"] } diff --git a/packages/lib/.eslintrc.js b/packages/lib/.eslintrc.js new file mode 100644 index 000000000..1b9d57502 --- /dev/null +++ b/packages/lib/.eslintrc.js @@ -0,0 +1,9 @@ +/** @type {import("eslint").Linter.Config} */ +module.exports = { + root: true, + extends: ['@repo/eslint-config/library.js'], + parser: '@typescript-eslint/parser', + parserOptions: { + project: true, + }, +} diff --git a/packages/lib/package.json b/packages/lib/package.json index 95ba0bc9b..b45c449c5 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -7,8 +7,8 @@ "gen:theme-typings": "chakra-cli tokens ./shared/services/chakra/themes/bal/bal.theme.ts", "graphql:gen": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config -c ./shared/services/api/codegen.ts", "postinstall": "npm run gen:theme-typings", - "lint": "next lint", - "lint:fix": "next lint --fix", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "test": "pnpm test:unit & pnpm run test:integration", "test:integration": "vitest -c ./vitest.config.integration.ts", "test:unit": "vitest",