@adamhl8/configs 0.4.2 → 0.5.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.
@@ -1,5 +1,4 @@
1
- /** @type {import("prettier").Config} */
2
- export default {
1
+ const config = {
3
2
  printWidth: 120,
4
3
  semi: false,
5
4
  plugins: [
@@ -26,3 +25,5 @@ export default {
26
25
  },
27
26
  ],
28
27
  }
28
+ export default config
29
+ //# sourceMappingURL=prettier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettier.js","sourceRoot":"","sources":["../configs/prettier.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAW;IACrB,UAAU,EAAE,GAAG;IACf,IAAI,EAAE,KAAK;IACX,OAAO,EAAE;QACP,2CAA2C;QAC3C,oBAAoB;QACpB,sBAAsB;QACtB,uBAAuB;QACvB,6BAA6B;KAC9B;IACD,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE;QACT;YACE,oDAAoD;YACpD,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE;gBACP,aAAa,EAAE,MAAM;aACtB;SACF;QACD;YACE,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE;gBACP,MAAM,EAAE,OAAO;aAChB;SACF;KACF;CACF,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -7,13 +7,19 @@
7
7
  "moduleResolution": "bundler",
8
8
  "moduleDetection": "force",
9
9
  "isolatedModules": true,
10
- "allowImportingTsExtensions": true,
10
+ "isolatedDeclarations": true,
11
11
  "verbatimModuleSyntax": true,
12
+ "allowImportingTsExtensions": true,
13
+ "rewriteRelativeImportExtensions": true,
12
14
  "resolveJsonModule": true,
13
- "noEmit": true,
14
- "allowJs": true,
15
- "checkJs": true,
15
+ // https://github.com/microsoft/TypeScript/issues/58262
16
+ // "allowJs": true,
17
+ // "checkJs": true,
16
18
  "skipLibCheck": true,
19
+ "declaration": true,
20
+ "sourceMap": true,
21
+ "outDir": "${configDir}/dist/",
22
+ "declarationDir": "${configDir}/dist/types",
17
23
 
18
24
  // Strictness
19
25
  "strict": true,
@@ -28,6 +34,10 @@
28
34
  "noUnusedLocals": true,
29
35
  "noUnusedParameters": true,
30
36
  "forceConsistentCasingInFileNames": true,
31
- "noUncheckedSideEffectImports": true
37
+ "noUncheckedSideEffectImports": true,
38
+
39
+ "paths": {
40
+ "@/*": ["${configDir}/src/*"]
41
+ }
32
42
  }
33
43
  }
@@ -0,0 +1,3 @@
1
+ import type { Config } from "prettier"
2
+ declare const config: Config
3
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,20 +17,19 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "exports": {
20
- "./tsconfig": "./configs/tsconfig.json",
21
- "./tsconfig-package": "./configs/tsconfig.package.json",
22
- "./biome": "./configs/biome.jsonc",
20
+ "./tsconfig": "./dist/tsconfig.json",
21
+ "./biome": "./dist/biome.jsonc",
23
22
  "./prettier": {
24
- "import": "./configs/prettier.js",
25
- "types": "./configs/types/prettier.d.ts"
23
+ "import": "./dist/prettier.js",
24
+ "types": "./dist/types/prettier.d.ts"
26
25
  }
27
26
  },
28
27
  "files": [
29
- "configs/"
28
+ "dist/"
30
29
  ],
31
30
  "scripts": {
32
31
  "prepublishOnly": "bun lint",
33
- "lint": "tsc && biome check --write"
32
+ "lint": "tsc && biome check --write && cp ./configs/*.{json,jsonc} ./dist/"
34
33
  },
35
34
  "dependencies": {
36
35
  "@prettier/plugin-xml": "^3.4.1",
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["${configDir}/dist/"],
4
- "compilerOptions": {
5
- "module": "NodeNext",
6
- "moduleResolution": "nodenext",
7
- "allowImportingTsExtensions": false,
8
- "noEmit": false,
9
- "declaration": true,
10
- "sourceMap": true,
11
- "outDir": "${configDir}/dist",
12
- "declarationDir": "${configDir}/dist/types"
13
- }
14
- }
@@ -1,23 +0,0 @@
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
File without changes