Skip to content

Commit

Permalink
Add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Aug 28, 2024
1 parent 73e92c1 commit 29525dc
Show file tree
Hide file tree
Showing 6 changed files with 1,227 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Check
on:
- pull_request
- push

permissions:
contents: read
pull-requests: write

jobs:
checks:
name: Check code quality
runs-on: ubuntu-22.04
steps:
- name: npm install
run: |
npm ci
- name: eslint
run: |
npm run lint
- name: prettier
run: |
npm run format:check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
3 changes: 3 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

extends: default

ignore-from-file:
- .gitignore

rules:
indentation:
spaces: 2
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import globals from "globals";
import pluginJs from "@eslint/js";

export default [
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
];
Loading

0 comments on commit 29525dc

Please sign in to comment.