Skip to content

Commit

Permalink
feat: replace eslint and prettier by biome
Browse files Browse the repository at this point in the history
  • Loading branch information
bgatellier committed Jun 1, 2024
1 parent 645c15a commit 5e93776
Show file tree
Hide file tree
Showing 24 changed files with 125 additions and 2,367 deletions.
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Dependency directories
node_modules/

# Optional eslint cache
.eslintcache

# Coverage report
coverage

Expand All @@ -22,20 +19,16 @@ lib
# OS X temporary files
.DS_Store

# Rush temporary files
common/deploy/
common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Visual Studio Code
.vscode

# MikroORM temporary directory
modules/*/temp
test/temp

# moon
.moon/cache
.moon/docker

# TypeScript
*.tsbuildinfo
4 changes: 3 additions & 1 deletion .moon/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ tasks:
- ~:cleanup
cleanup:
command: rimraf lib
format:
command: pnpm biome format ./
lint:
command: eslint .
command: pnpm biome lint ./
test:
command: jest
env:
Expand Down
53 changes: 0 additions & 53 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
moon = "~1"
node = "~18"
pnpm = "~8"
moon = "~1.25"

[plugins]
moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
24 changes: 24 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"files": {
"include": [
"src/**/*.ts",
"tests/**/*.ts"
]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
}
}
10 changes: 0 additions & 10 deletions common/autoinstallers/rush-prettier/package.json

This file was deleted.

Loading

0 comments on commit 5e93776

Please sign in to comment.