Skip to content

Commit

Permalink
use biome
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMauroy committed Nov 4, 2024
1 parent 597eff6 commit 95c01f4
Show file tree
Hide file tree
Showing 20 changed files with 460 additions and 4,166 deletions.
49 changes: 0 additions & 49 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .eslintrc.json

This file was deleted.

13 changes: 0 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,10 @@ updates:
commit-message:
prefix: meta
groups:
format:
patterns:
- 'prettier'
- 'prettier-plugin-tailwindcss'
lint:
patterns:
- 'eslint'
- 'eslint-*'
- 'stylelint'
- 'stylelint-*'
exclude-patterns:
- 'eslint-plugin-storybook'
storybook:
patterns:
- 'storybook'
- '@storybook/*'
- 'eslint-plugin-storybook'
next-js:
patterns:
- 'next*'
Expand Down
131 changes: 7 additions & 124 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,91 +5,17 @@ on:
workflow_dispatch:

jobs:
lint-js:
name: Lint-js
quality:
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}-
restore-keys: cache-

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install NPM packages
run: npm ci

- name: Run Linting js
run: npx turbo lint:js

- name: Save Cache
uses: actions/cache/save@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}

lint-css:
name: Lint-css
runs-on: ubuntu-latest

steps:
- name: Git Checkout
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
fetch-depth: 2

- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}-
restore-keys: cache-

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install NPM packages
run: npm ci

- name: Run Linting css
run: npx turbo lint:css

- name: Save Cache
uses: actions/cache/save@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}
version: latest
- name: Run Biome
run: biome ci .

build:
name: Build
Expand Down Expand Up @@ -176,46 +102,3 @@ jobs:
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}

format:
name: Code Format
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}-
restore-keys: cache-

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install NPM packages
run: npm ci

- name: Run Format
run: npx turbo prettier:check

- name: Save Cache
uses: actions/cache/save@v4
with:
path: |
~/.npm
.next/cache
.turbo/cache
node_modules/.cache
key: cache-${{ hashFiles('package-lock.json') }}
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

# Cache
.eslintjscache
.stylelintcache
.prettiercache

# Turbo
.turbo

Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ npm run test

# Build the app
npx turbo build

6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ repos:
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.38.0
- repo: https://github.com/biomejs/pre-commit
rev: 0.1.0
hooks:
- id: eslint
- id: biome-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
49 changes: 0 additions & 49 deletions .prettierignore

This file was deleted.

13 changes: 0 additions & 13 deletions .prettierrc.json

This file was deleted.

Loading

0 comments on commit 95c01f4

Please sign in to comment.