Skip to content

Commit

Permalink
misc: replace eslint -> biome, pre-commit -> lefthook (#115)
Browse files Browse the repository at this point in the history
* fix: replace eslint -> biome, pre-commit -> lefthook

* fix: format all codes

* fix: format all codes

* Create warm-teachers-kneel.md
  • Loading branch information
mew-ton authored Jan 22, 2024
1 parent 4ca7fc4 commit 691dd55
Show file tree
Hide file tree
Showing 33 changed files with 572 additions and 1,595 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-teachers-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"json-origami": patch
---

misc: replace eslint -> biome, pre-commit -> lefthook
18 changes: 0 additions & 18 deletions .eslintignore

This file was deleted.

213 changes: 0 additions & 213 deletions .eslintrc.cjs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Lint Code Base (eslint)
name: Lint Code Base
run-name: "Lint code base (eslint) on \"${{ github.event.pull_request.title }}\" by ${{ github.actor }}"

permissions:
Expand All @@ -24,8 +24,10 @@ jobs:

- uses: ./.github/actions/init-node

- name: eslint
uses: reviewdog/action-eslint@v1
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
eslint_flags: '--cache --ext .ts,.tsx,.js,.jsx,.mdx,.vue .'
github_token: ${{ secrets.GITHUB_TOKEN }}
version: latest

- name: Run Biome
run: biome ci .
21 changes: 0 additions & 21 deletions .pre-commit-config.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .prettierignore

This file was deleted.

20 changes: 0 additions & 20 deletions .prettierrc.js

This file was deleted.

28 changes: 24 additions & 4 deletions .vscode/project.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,30 @@
"path": ".."
}
],
"settings": {
"typescript.tsdk": "node_modules/typescript/lib"
},
"extensions": {
"recommendations": ["zixuanchen.vitest-explorer"]
"recommendations": [
"zixuanchen.vitest-explorer",
"biomejs.biome"
]
},
"settings": {
"typescript.tsdk": "node_modules/typescript/lib",

"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},

"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},

"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},

"markdownlint.config": {
"no-duplicate-heading": false
}
}
}
6 changes: 5 additions & 1 deletion CONTRIBUTIONG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ We appreciate your interest in contributing to our project! To ensure a smooth c
1. Make sure you have the appropriate permissions to contribute to the repository.
1. Clone the repository to your local machine using `git clone https://github.com/hacomono-lib/type-assurer.git.`
1. Install the project dependencies by running yarn install.
1. (optional) Install [pre-commit}(https://pre-commit.com)
1. Install the following and enable pre-commit hook

- [actionlint](https://github.com/rhysd/actionlint/tree/main)
- [lefthook](https://github.com/evilmartians/lefthook/wiki/Comparison-with-other-solutions)
- Please run `lefthook install`

## Development Workflow

Expand Down
Loading

0 comments on commit 691dd55

Please sign in to comment.