@adamhl8/configs 0.1.0 → 0.2.1

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 CHANGED
@@ -26,7 +26,7 @@ bun add -D @adamhl8/configs
26
26
  ### prettier
27
27
 
28
28
  ```js
29
- import { prettierConfig } from "@adamhl8/configs/prettier"
29
+ import prettierConfig from "@adamhl8/configs/prettier"
30
30
 
31
31
  export default {
32
32
  ...prettierConfig,
@@ -1,5 +1,5 @@
1
1
  /** @type {import("prettier").Config} */
2
- const prettierConfig = {
2
+ export default {
3
3
  printWidth: 120,
4
4
  semi: false,
5
5
  plugins: [
@@ -26,5 +26,3 @@ const prettierConfig = {
26
26
  },
27
27
  ],
28
28
  }
29
-
30
- export { prettierConfig }
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ printWidth: number
3
+ semi: false
4
+ plugins: string[]
5
+ tailwindStylesheet: string
6
+ overrides: (
7
+ | {
8
+ files: string
9
+ options: {
10
+ trailingComma: "none"
11
+ parser?: never
12
+ }
13
+ }
14
+ | {
15
+ files: string
16
+ options: {
17
+ parser: "astro"
18
+ trailingComma?: never
19
+ }
20
+ }
21
+ )[]
22
+ }
23
+ export default _default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,14 +19,17 @@
19
19
  "exports": {
20
20
  "./tsconfig": "./configs/tsconfig.json",
21
21
  "./biome": "./configs/biome.jsonc",
22
- "./prettier": "./configs/prettier.js"
22
+ "./prettier": {
23
+ "import": "./configs/prettier.js",
24
+ "types": "./configs/types/prettier.d.ts"
25
+ }
23
26
  },
24
27
  "files": [
25
28
  "configs/"
26
29
  ],
27
30
  "scripts": {
28
- "prepublish": "bun lint",
29
- "lint": "biome check --write"
31
+ "prepublishOnly": "bun lint",
32
+ "lint": "bun tsc && biome check --write"
30
33
  },
31
34
  "dependencies": {
32
35
  "@prettier/plugin-xml": "^3.4.1",