Skip to content

Commit

Permalink
chore: format package.json like npm does (#3155)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Jun 10, 2024
1 parent 4cffa1a commit da6f180
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 49 deletions.
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"json": {
"formatter": {
"indentStyle": "space"
"indentStyle": "space",
"lineWidth": 1
}
},
"vcs": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"scripts": {
"check:apply": "cargo biome-cli-dev check --apply-unsafe .",
"check": "cargo biome-cli-dev check .",
"ci": "cargo biome-cli-dev ci ."
"check:apply": "cargo biome-cli-dev check --write --unsafe",
"check": "cargo biome-cli-dev check",
"ci": "cargo biome-cli-dev ci"
},
"keywords": [],
"author": "Biome Developers and Contributors",
Expand Down
10 changes: 8 additions & 2 deletions packages/@biomejs/backend-jsonrpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@
"homepage": "https://biomejs.dev",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "npm/backend-jsonrpc"
},
"author": "Biome Developers and Contributors",
"bugs": "https://github.com/biomejs/biome/issues",
"description": "Bindings to the JSON-RPC Workspace API of the Biome daemon",
"keywords": ["JavaScript", "TypeScript", "format", "lint", "toolchain"],
"keywords": [
"JavaScript",
"TypeScript",
"format",
"lint",
"toolchain"
],
"engines": {
"node": ">=14.21.3"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/@biomejs/biome/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "@biomejs/biome",
"version": "1.8.0",
"bin": "bin/biome",
"bin": {
"biome": "bin/biome"
},
"scripts": {
"postinstall": "node scripts/postinstall.js"
},
"homepage": "https://biomejs.dev",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"author": "Emanuele Stoppa",
Expand Down
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome/cli-darwin-arm64"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["darwin"],
"cpu": ["arm64"]
"os": [
"darwin"
],
"cpu": [
"arm64"
]
}
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome/cli-darwin-x64"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["darwin"],
"cpu": ["x64"]
"os": [
"darwin"
],
"cpu": [
"x64"
]
}
14 changes: 10 additions & 4 deletions packages/@biomejs/cli-linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["linux"],
"cpu": ["arm64"],
"libc": ["musl"]
"os": [
"linux"
],
"cpu": [
"arm64"
],
"libc": [
"musl"
]
}
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-linux-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["linux"],
"cpu": ["arm64"]
"os": [
"linux"
],
"cpu": [
"arm64"
]
}
14 changes: 10 additions & 4 deletions packages/@biomejs/cli-linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["linux"],
"cpu": ["x64"],
"libc": ["musl"]
"os": [
"linux"
],
"cpu": [
"x64"
],
"libc": [
"musl"
]
}
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-linux-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["linux"],
"cpu": ["x64"]
"os": [
"linux"
],
"cpu": [
"x64"
]
}
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-win32-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["win32"],
"cpu": ["arm64"]
"os": [
"win32"
],
"cpu": [
"arm64"
]
}
10 changes: 7 additions & 3 deletions packages/@biomejs/cli-win32-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/biome"
},
"engines": {
"node": ">=14.21.3"
},
"homepage": "https://biomejs.dev",
"os": ["win32"],
"cpu": ["x64"]
"os": [
"win32"
],
"cpu": [
"x64"
]
}
9 changes: 7 additions & 2 deletions packages/@biomejs/js-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"keywords": ["JavaScript", "bindings", "APIs", "biome"],
"keywords": [
"JavaScript",
"bindings",
"APIs",
"biome"
],
"license": "MIT OR Apache-2.0",
"homepage": "https://biomejs.dev",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome.git",
"url": "git+https://github.com/biomejs/biome.git",
"directory": "packages/@biomejs/js-api"
},
"author": "Biome Developers and Contributors",
Expand Down
13 changes: 10 additions & 3 deletions packages/@biomejs/js-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true /* Enable all strict type-checking options. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"lib": ["ES2021"]
"lib": [
"ES2021"
]
},
"exclude": ["./tests", "./dist"],
"include": ["./src"]
"exclude": [
"./tests",
"./dist"
],
"include": [
"./src"
]
}
4 changes: 2 additions & 2 deletions packages/@biomejs/wasm-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome"
"url": "git+https://github.com/biomejs/biome.git"
},
"files": [
"biome_wasm_bg.wasm",
Expand All @@ -29,4 +29,4 @@
"formatter",
"wasm"
]
}
}
4 changes: 2 additions & 2 deletions packages/@biomejs/wasm-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome"
"url": "git+https://github.com/biomejs/biome.git"
},
"files": [
"biome_wasm_bg.wasm",
Expand All @@ -23,4 +23,4 @@
"linter",
"formatter"
]
}
}
4 changes: 2 additions & 2 deletions packages/@biomejs/wasm-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biomejs/biome"
"url": "git+https://github.com/biomejs/biome.git"
},
"files": [
"biome_wasm_bg.wasm",
Expand All @@ -27,4 +27,4 @@
"formatter",
"wasm"
]
}
}
8 changes: 6 additions & 2 deletions packages/tailwindcss-config-analyzer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"lib": [
"ESNext"
],
"module": "NodeNext",
"target": "esnext",
"moduleResolution": "NodeNext",
Expand All @@ -14,5 +16,7 @@
"forceConsistentCasingInFileNames": true,
"allowJs": true
},
"include": ["src/**/*"]
"include": [
"src/**/*"
]
}
2 changes: 0 additions & 2 deletions shared/biome.json

This file was deleted.

0 comments on commit da6f180

Please sign in to comment.