@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.
@@ -0,0 +1,15 @@
1
+ on: push
2
+
3
+ name: CI
4
+
5
+ jobs:
6
+ ci:
7
+ name: CI
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: oven-sh/setup-bun@v2
12
+ with:
13
+ bun-version: latest
14
+ - run: make deps
15
+ - run: make lint
@@ -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
@@ -0,0 +1,12 @@
1
+ biome = bunx biome
2
+
3
+ deps: PHONY
4
+ bun install
5
+
6
+ lint: deps PHONY
7
+ $(biome) check .
8
+
9
+ lint.fix: deps PHONY
10
+ $(biome) check --write .
11
+
12
+ PHONY:
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,4 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3
+ "extends": ["./biome.shared.json"]
4
+ }
@@ -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
@@ -0,0 +1,9 @@
1
+ # How to publish
2
+
3
+ ```bash
4
+ git commit -m 'vX.X.X'
5
+ git push
6
+ ```
7
+
8
+ Create release via:
9
+ https://github.com/mkobayashime/shared-config/releases/new
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
+ }