Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/backend-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: backend lint and format check

on:
pull_request:
branches: [main]
paths:
- 'app-backend/**'
- '.github/workflows/backend-lint.yml'
workflow_dispatch: {}

jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: app-backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: ESLint
run: npm run lint

- name: Prettier
run: npm run format:check
Binary file modified app-backend/.prettierrc
Binary file not shown.
14 changes: 11 additions & 3 deletions app-backend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import { defineConfig } from "eslint/config";


export default defineConfig([
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: {...globals.browser, ...globals.node} } },
]);
{
files: ["**/*.{js,mjs,cjs}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: {...globals.browser, ...globals.node} },
rules: {
"no-unused-vars": [
"error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
}
}
]);
Loading
Loading