feat: migrate eslint and prettier to use biome in plugin-knowledeg-bases #2928
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #copied from https://github.com/pre-commit/action | |
| name: pre-commit | |
| on: | |
| pull_request: | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| cache: "pip" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: "npm" | |
| cache-dependency-path: "**/package-lock.json" | |
| # Install Biome for the local pre-commit hook | |
| - name: Install Biome | |
| run: npm install -g @biomejs/biome@2.3.13 | |
| - uses: pre-commit/action@v3.0.0 | |
| # this will push back fixes to the pull request branch. | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} |