biome-config-pixel 0.0.0 → 2.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/README.md +1 -1
- package/biome.jsonc +30 -12
- package/package.json +13 -3
- package/.github/dependabot.yml +0 -7
- package/.github/workflows/lint.yml +0 -18
- package/.github/workflows/publish.yml +0 -20
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Strict Biome configuration maintained by Pixel Perfect Agency.
|
|
|
4
4
|
|
|
5
5
|
## Rationale
|
|
6
6
|
|
|
7
|
-
This package is designed for usage with [Next.js](https://nextjs.org/), [React](https://reactjs.org/), [TypeScript](https://www.typescriptlang.org/) and [
|
|
7
|
+
This package is designed for usage with [Next.js](https://nextjs.org/), [React](https://reactjs.org/), [TypeScript](https://www.typescriptlang.org/) and [Tailwind CSS](https://tailwindcss.com/).
|
|
8
8
|
|
|
9
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
10
|
|
package/biome.jsonc
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
|
|
3
3
|
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
|
|
4
4
|
"files": {
|
|
5
5
|
"ignoreUnknown": false,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
6
|
+
"includes": [
|
|
7
|
+
"**",
|
|
8
|
+
"!**/.git",
|
|
9
|
+
"!**/node_modules",
|
|
10
|
+
"!**/vendor",
|
|
11
|
+
"!**/.next",
|
|
12
|
+
"!**/.dist",
|
|
13
|
+
"!**/apps/api/**/*",
|
|
14
|
+
"!**/generated"
|
|
14
15
|
]
|
|
15
16
|
},
|
|
16
|
-
"
|
|
17
|
+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
17
18
|
"formatter": {
|
|
18
19
|
"enabled": true,
|
|
19
20
|
"useEditorconfig": true,
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"lineWidth": 100,
|
|
25
26
|
"attributePosition": "auto",
|
|
26
27
|
"bracketSpacing": true,
|
|
27
|
-
"
|
|
28
|
+
"includes": ["**"]
|
|
28
29
|
},
|
|
29
30
|
"linter": {
|
|
30
31
|
"enabled": true,
|
|
@@ -34,10 +35,15 @@
|
|
|
34
35
|
"noUnusedImports": "error",
|
|
35
36
|
"noUnknownFunction": "off"
|
|
36
37
|
},
|
|
38
|
+
"performance": {
|
|
39
|
+
"noImgElement": "off"
|
|
40
|
+
},
|
|
37
41
|
"a11y": {
|
|
38
|
-
"useKeyWithClickEvents": "off"
|
|
42
|
+
"useKeyWithClickEvents": "off",
|
|
43
|
+
"noStaticElementInteractions": "off"
|
|
39
44
|
},
|
|
40
45
|
"nursery": {
|
|
46
|
+
"useUniqueElementIds": "off",
|
|
41
47
|
"useSortedClasses": {
|
|
42
48
|
"level": "error",
|
|
43
49
|
"fix": "safe",
|
|
@@ -46,6 +52,18 @@
|
|
|
46
52
|
"functions": ["cn"]
|
|
47
53
|
}
|
|
48
54
|
}
|
|
55
|
+
},
|
|
56
|
+
"style": {
|
|
57
|
+
"noParameterAssign": "error",
|
|
58
|
+
"useAsConstAssertion": "error",
|
|
59
|
+
"useDefaultParameterLast": "error",
|
|
60
|
+
"useEnumInitializers": "error",
|
|
61
|
+
"useSelfClosingElements": "error",
|
|
62
|
+
"useSingleVarDeclarator": "error",
|
|
63
|
+
"noUnusedTemplateLiteral": "error",
|
|
64
|
+
"useNumberNamespace": "error",
|
|
65
|
+
"noInferrableTypes": "error",
|
|
66
|
+
"noUselessElse": "error"
|
|
49
67
|
}
|
|
50
68
|
}
|
|
51
69
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biome-config-pixel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Preconfigured Biome config for Next.js, Typescript, and Tailwind CSS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Pixel Perfect Agency (https://pixelperfect.agency)",
|
|
@@ -18,14 +18,24 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": "./biome.jsonc"
|
|
20
20
|
},
|
|
21
|
+
"files": [
|
|
22
|
+
"biome.jsonc"
|
|
23
|
+
],
|
|
21
24
|
"devDependencies": {
|
|
22
|
-
"@biomejs/biome": "^
|
|
25
|
+
"@biomejs/biome": "^2.0.4"
|
|
23
26
|
},
|
|
24
27
|
"scripts": {
|
|
25
28
|
"lint": "biome check",
|
|
26
29
|
"lint:fix": "biome check --write"
|
|
27
30
|
},
|
|
28
|
-
"keywords": [
|
|
31
|
+
"keywords": [
|
|
32
|
+
"biome",
|
|
33
|
+
"formatter",
|
|
34
|
+
"linter",
|
|
35
|
+
"typescript",
|
|
36
|
+
"nextjs",
|
|
37
|
+
"tailwindcss"
|
|
38
|
+
],
|
|
29
39
|
"packageManager": "pnpm@10.10.0",
|
|
30
40
|
"publishConfig": {
|
|
31
41
|
"access": "public",
|
package/.github/dependabot.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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 .
|
|
@@ -1,20 +0,0 @@
|
|
|
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 }}
|