@mkobayashime/shared-config 1.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/workflows/ci.yaml +15 -0
- package/.github/workflows/release.yaml +24 -0
- package/Makefile +12 -0
- package/README.md +20 -0
- package/biome.json +4 -0
- package/biome.shared.json +27 -0
- package/bun.lockb +0 -0
- package/package.json +19 -0
- package/publish.md +9 -0
- package/tsconfig.json +27 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Publish Package to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
branches-ignore:
|
|
8
|
+
- "**"
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: "lts/*"
|
|
21
|
+
registry-url: "https://registry.npmjs.org"
|
|
22
|
+
- run: npm publish --provenance --access public
|
|
23
|
+
env:
|
|
24
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/Makefile
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @mkobayashime/shared-config
|
|
2
|
+
|
|
3
|
+
## Biome
|
|
4
|
+
|
|
5
|
+
[biome.shared.json](./biome.shared.json)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add -d @mkobayashime/shared-config
|
|
9
|
+
pnpm add -D @mkobayashime/shared-config
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
in `biome.json`
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"extends": [
|
|
17
|
+
"@mkobayashime/shared-config/biome"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
```
|
package/biome.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
3
|
+
"vcs": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"clientKind": "git",
|
|
6
|
+
"useIgnoreFile": true
|
|
7
|
+
},
|
|
8
|
+
"files": {
|
|
9
|
+
"ignoreUnknown": true
|
|
10
|
+
},
|
|
11
|
+
"linter": {
|
|
12
|
+
"rules": {
|
|
13
|
+
"a11y": {
|
|
14
|
+
"noSvgWithoutTitle": "info"
|
|
15
|
+
},
|
|
16
|
+
"complexity": {
|
|
17
|
+
"useLiteralKeys": "off"
|
|
18
|
+
},
|
|
19
|
+
"correctness": {
|
|
20
|
+
"noUndeclaredVariables": "error",
|
|
21
|
+
"noUnusedImports": "error",
|
|
22
|
+
"noUnusedVariables": "error",
|
|
23
|
+
"useHookAtTopLevel": "error"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/bun.lockb
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mkobayashime/shared-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/mkobayashime/shared-config"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
"./biome": "./biome.shared.json"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@biomejs/biome": "1.9.4",
|
|
14
|
+
"@types/bun": "latest"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"typescript": "^5.0.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/publish.md
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Enable latest features
|
|
4
|
+
"lib": ["ESNext", "DOM"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
|
|
11
|
+
// Bundler mode
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"verbatimModuleSyntax": true,
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
// Best practices
|
|
18
|
+
"strict": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
|
|
22
|
+
// Some stricter flags (disabled by default)
|
|
23
|
+
"noUnusedLocals": false,
|
|
24
|
+
"noUnusedParameters": false,
|
|
25
|
+
"noPropertyAccessFromIndexSignature": false
|
|
26
|
+
}
|
|
27
|
+
}
|