biome-config-pixel 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +7 -0
- package/.github/workflows/lint.yml +18 -0
- package/.github/workflows/publish.yml +20 -0
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/biome.jsonc +65 -0
- package/package.json +34 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
lint:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- name: Checkout
|
|
10
|
+
uses: actions/checkout@v4
|
|
11
|
+
|
|
12
|
+
- name: Setup Biome
|
|
13
|
+
uses: biomejs/setup-biome@v2
|
|
14
|
+
with:
|
|
15
|
+
version: 1.9.4
|
|
16
|
+
|
|
17
|
+
- name: Run Biome
|
|
18
|
+
run: biome ci .
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Publish Package to NPM
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
id-token: write
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
# Setup .npmrc file to publish to npm
|
|
14
|
+
- uses: actions/setup-node@v4
|
|
15
|
+
with:
|
|
16
|
+
node-version: '20.x'
|
|
17
|
+
registry-url: 'https://registry.npmjs.org'
|
|
18
|
+
- run: npm publish --provenance --access public
|
|
19
|
+
env:
|
|
20
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Biome Config Pixel - Pixel Perfect Agency
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Biome Config Pixel
|
|
2
|
+
|
|
3
|
+
Strict Biome configuration maintained by Pixel Perfect Agency.
|
|
4
|
+
|
|
5
|
+
## Rationale
|
|
6
|
+
|
|
7
|
+
This package is designed for usage with [Next.js](https://nextjs.org/), [React](https://reactjs.org/), [TypeScript](https://www.typescriptlang.org/) and [Prettier](https://prettier.io/).
|
|
8
|
+
|
|
9
|
+
We want to have a strict Biome configuration that is consistent across projects. This package implements the configuration we use in our projects.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add -D biome-config-pixel
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Add this to your `biome.json` file:
|
|
20
|
+
|
|
21
|
+
### `biome.json`
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"extends": "biome-config-pixel"
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Contributing
|
|
30
|
+
|
|
31
|
+
Contributions are always welcome! Please understand that this package is maintained by Pixel Perfect Agency and we will only accept contributions that we feel are in line with our vision for this package.
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT © [Pixel Perfect Agency](./LICENSE) 2025
|
package/biome.jsonc
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
3
|
+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
|
|
4
|
+
"files": {
|
|
5
|
+
"ignoreUnknown": false,
|
|
6
|
+
"ignore": [
|
|
7
|
+
"**/.git",
|
|
8
|
+
"**/node_modules",
|
|
9
|
+
"**/vendor",
|
|
10
|
+
"**/.next",
|
|
11
|
+
"**/.dist",
|
|
12
|
+
"apps/api/**/*",
|
|
13
|
+
"**/generated"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"organizeImports": { "enabled": true },
|
|
17
|
+
"formatter": {
|
|
18
|
+
"enabled": true,
|
|
19
|
+
"useEditorconfig": true,
|
|
20
|
+
"formatWithErrors": false,
|
|
21
|
+
"indentStyle": "space",
|
|
22
|
+
"indentWidth": 4,
|
|
23
|
+
"lineEnding": "lf",
|
|
24
|
+
"lineWidth": 100,
|
|
25
|
+
"attributePosition": "auto",
|
|
26
|
+
"bracketSpacing": true,
|
|
27
|
+
"ignore": []
|
|
28
|
+
},
|
|
29
|
+
"linter": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"rules": {
|
|
32
|
+
"recommended": true,
|
|
33
|
+
"correctness": {
|
|
34
|
+
"noUnusedImports": "error",
|
|
35
|
+
"noUnknownFunction": "off"
|
|
36
|
+
},
|
|
37
|
+
"a11y": {
|
|
38
|
+
"useKeyWithClickEvents": "off"
|
|
39
|
+
},
|
|
40
|
+
"nursery": {
|
|
41
|
+
"useSortedClasses": {
|
|
42
|
+
"level": "error",
|
|
43
|
+
"fix": "safe",
|
|
44
|
+
"options": {
|
|
45
|
+
"attributes": ["className"],
|
|
46
|
+
"functions": ["cn"]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"javascript": {
|
|
53
|
+
"formatter": {
|
|
54
|
+
"quoteStyle": "single",
|
|
55
|
+
"jsxQuoteStyle": "double",
|
|
56
|
+
"quoteProperties": "preserve",
|
|
57
|
+
"trailingCommas": "all",
|
|
58
|
+
"semicolons": "always",
|
|
59
|
+
"arrowParentheses": "asNeeded",
|
|
60
|
+
"bracketSameLine": false,
|
|
61
|
+
"attributePosition": "auto",
|
|
62
|
+
"bracketSpacing": true
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "biome-config-pixel",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Preconfigured Biome config for Next.js, Typescript, and Tailwind CSS",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"author": "Pixel Perfect Agency (https://pixelperfect.agency)",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"contributors": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Willem-Jaap",
|
|
11
|
+
"url": "https://github.com/Willem-Jaap"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/pixel-perfect-agency/biome-config-pixel.git"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./biome.jsonc"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@biomejs/biome": "^1.9.4"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"lint": "biome check",
|
|
26
|
+
"lint:fix": "biome check --write"
|
|
27
|
+
},
|
|
28
|
+
"keywords": ["biome", "formatter", "linter", "typescript", "nextjs", "tailwindcss"],
|
|
29
|
+
"packageManager": "pnpm@10.10.0",
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
}
|
|
34
|
+
}
|