diff --git a/.eslintrc.json b/.eslintrc.json index 006bfa7..580b14e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,13 +12,7 @@ "jsx-a11y", "react-refresh" ], - "ignorePatterns": [ - "node_modules/", - "dist/", - "server.js", - "*.d.ts", - "*.config.ts" - ], + "ignorePatterns": ["node_modules/", "dist/", "server.js", "*.d.ts"], "extends": [ // extends mean use config from devDependencies that community created or recommended @@ -58,7 +52,7 @@ "parserOptions": { "sourceType": "module", "ecmaVersion": "latest", - "project": "./tsconfig.json", + "project": ["./tsconfig.json", "./tsconfig.node.json"], "ecmaFeatures": { "jsx": true } @@ -129,7 +123,7 @@ }, "typescript": { "alwaysTryTypes": true, - "project": "./tsconfig.json" + "project": ["./tsconfig.json", "./tsconfig.node.json"] } } } diff --git a/.github/workflows/checkPR.yml b/.github/workflows/checkPR.yml index 5eb78cd..b3aeb05 100644 --- a/.github/workflows/checkPR.yml +++ b/.github/workflows/checkPR.yml @@ -21,18 +21,17 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-standalone - - uses: pnpm/action-setup@v4 - name: Install pnpm - # id: pnpmahihi + - name: Install pnpm + uses: pnpm/action-setup@v4 with: version: 9 run_install: false standalone: false - # - name: Install Node.js - # uses: actions/setup-node@v4 - # with: - # node-version: 20 + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 20 # - name: which pnpm # shell: bash @@ -56,8 +55,8 @@ jobs: # run: | # echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - name: Setup pnpm node_module cache + - name: Setup pnpm node_module cache + uses: actions/cache@v4 with: path: /home/runner/setup-pnpm/node_modules/.bin/store/v3 key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -68,4 +67,4 @@ jobs: run: pnpm install - name: Lint - run: prettier:check && pnpm run eslint:check-allow-warning && pnpm run check-types + run: pnpm run prettier:check && pnpm run eslint:check-allow-warning && pnpm run check-types diff --git a/package.json b/package.json index 741e279..e76090c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "name": "pied_nike", + "name": "naikila_fe_main", "private": true, "version": "1.0.0", "type": "module", diff --git a/tsconfig.node.json b/tsconfig.node.json index 7085671..e9e77de 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -12,7 +12,7 @@ "allowSyntheticDefaultImports": true, "strict": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "tailwind.config.ts"] } // why do we need this tsconfig.node.json??? because vite server run in node??? // or maybe need to convert .ts config file back to .js like tailwind.config.ts ??