@bfra.me/prettier-config 0.13.6 → 0.13.7

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,8 @@
1
+ import {Config} from 'prettier'
2
+
3
+ /**
4
+ * Shared Prettier configuration for bfra.me projects with `printWidth` set to 80 characters.
5
+ */
6
+ declare const $80ProofConfig: Config
7
+
8
+ export {$80ProofConfig as default}
@@ -0,0 +1,14 @@
1
+ var __defProp = Object.defineProperty
2
+ var __name = (target, value) => __defProp(target, 'name', {value, configurable: true})
3
+ import defaultConfig from './index.js'
4
+ const freeze = /* @__PURE__ */ __name(config => {
5
+ return Object.freeze(config)
6
+ }, 'freeze')
7
+ const $80ProofConfig = freeze({
8
+ ...defaultConfig,
9
+ printWidth: 80,
10
+ semi: new URL(import.meta.url).searchParams.has('semi', 'true') || defaultConfig.semi,
11
+ })
12
+ var proof_default = $80ProofConfig
13
+ export {proof_default as default}
14
+ //# sourceMappingURL=80-proof.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/prettier-config",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
4
4
  "description": "Shared Prettier configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -26,6 +26,7 @@
26
26
  "source": "./src/index.ts",
27
27
  "default": "./lib/index.js"
28
28
  },
29
+ "./80-proof": "./lib/80-proof.js",
29
30
  "./100-proof": "./lib/index.js",
30
31
  "./120-proof": "./lib/120-proof.js",
31
32
  "./semi/*": "./lib/*.js?semi=true",
@@ -50,8 +51,8 @@
50
51
  "devDependencies": {
51
52
  "prettier": "3.4.2",
52
53
  "tsup": "8.3.5",
53
- "@bfra.me/tsconfig": "0.9.5",
54
- "@bfra.me/prettier-config": "0.13.6"
54
+ "@bfra.me/tsconfig": "0.9.6",
55
+ "@bfra.me/prettier-config": "0.13.7"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "prettier": "^3.0.0"
@@ -0,0 +1,17 @@
1
+ import type {Config} from 'prettier'
2
+ import defaultConfig from './index.js'
3
+
4
+ const freeze = <C extends Config>(config: C): Readonly<C> => {
5
+ return Object.freeze(config)
6
+ }
7
+
8
+ /**
9
+ * Shared Prettier configuration for bfra.me projects with `printWidth` set to 80 characters.
10
+ */
11
+ const $80ProofConfig = freeze({
12
+ ...defaultConfig,
13
+ printWidth: 80,
14
+ semi: new URL(import.meta.url).searchParams.has('semi', 'true') || defaultConfig.semi,
15
+ } as Config) as Config
16
+
17
+ export default $80ProofConfig