diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3670a6f5..1cba0d2a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,9 +27,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - - name: Install All Packages - run: npm run allinstall + - name: Install All Packages (Frontend) + working-directory: ./frontend + run: npm ci + - name: Install All Packages (Backend) + working-directory: ./backend + run: npm ci + - name: Run Eslint - run: npm run lint + run: npx eslint . - run: npm run build --if-present - run: npm test --if-present diff --git a/backend/tsconfig.json b/backend/tsconfig.json index a3b1a33b..84d5c2fa 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -1,17 +1,3 @@ -// { -// "compilerOptions": { -// "target": "es2016", -// "module": "commonjs", -// "esModuleInterop": true, -// "forceConsistentCasingInFileNames": true, -// "strict": true, -// "skipLibCheck": true -// }, -// "include": ["lib/**/*.ts"], -// "exclude": ["node_modules"], -// "files": ["./src/types/express.types.ts"] -// } - { "compilerOptions": { "target": "es6", @@ -25,6 +11,6 @@ "rootDir": "./src" }, "include": ["src/**/*"], - "exclude": ["node_modules"], + "exclude": ["node_modules", "dist"], "files": ["./src/types/express.types.ts"] } diff --git a/package-lock.json b/package-lock.json index 3c71b868..9a2d3efa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "react-activity": "^2.1.3" }, "devDependencies": { + "@eslint/js": "^9.13.0", "eslint": "^9.13.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", diff --git a/package.json b/package.json index 36977d5f..e579a48c 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,11 @@ "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "lint": "eslint .", + "lint": "npx eslint .", "backend": "cd backend && npm run dev", "frontend": "cd frontend && npm run dev", - "allinstall": "npm install && cd frontend && npm install && cd ../backend && npm install && cd ..", - "allupdate": "npm update && cd frontend && npm update && cd ../backend && npm update && cd .." + "allinstall": "npm install && cd frontend && npm install && cd ../backend && npm install", + "allupdate": "npm update && cd frontend && npm update && cd ../backend && npm update" }, "keywords": [], "author": "", @@ -20,6 +20,7 @@ }, "devDependencies": { "eslint": "^9.13.0", + "@eslint/js": "^9.13.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", "typescript-eslint": "^8.11.0"