Skip to content

Commit

Permalink
feat: add linting and formatting checks (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad-Turner authored Oct 23, 2023
1 parent b3cdb6c commit 7b77121
Show file tree
Hide file tree
Showing 6 changed files with 858 additions and 112 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"]
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["node_modules", "dist", "docs"]
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
run: npm ci

- name: Lint
run: npm run lint --if-present
run: npm run lint

- name: Build project
run: npm run build --if-present
run: npm run build

- name: Test
run: npm run test --if-present
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 7b77121

Please sign in to comment.