Skip to content

Commit

Permalink
add linter to backend and change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devserkan committed Sep 16, 2024
1 parent 9a350c2 commit bc24f69
Show file tree
Hide file tree
Showing 4 changed files with 1,071 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
# - uses: superfly/flyctl-actions/setup-flyctl@master
- name: Install dependencies for backend
run: npm ci
- name: Lint backend
run: npm run lint:backend
- name: Test backend
run: npm run test:backend
- name: Install dependencies for frontend
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
];
Loading

0 comments on commit bc24f69

Please sign in to comment.