@bfra.me/prettier-config 0.15.7 → 0.16.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.
@@ -1,7 +1,5 @@
1
- var __defProp = Object.defineProperty
2
- var __name = (target, value) => __defProp(target, 'name', {value, configurable: true})
3
1
  const properties = ['overrides']
4
- const freeze = /* @__PURE__ */ __name(config => {
2
+ const freeze = config => {
5
3
  for (const property of properties) {
6
4
  const value = config[property]
7
5
  if (typeof value !== 'object' || value === null) {
@@ -11,9 +9,9 @@ const freeze = /* @__PURE__ */ __name(config => {
11
9
  if (property === 'overrides') {
12
10
  const overrides = value
13
11
  for (const override of overrides) {
14
- const {files, excludeFiles, options} = override
12
+ const {files, excludeFiles = null, options} = override
15
13
  Object.freeze(files)
16
- if (excludeFiles) {
14
+ if (excludeFiles != null) {
17
15
  Object.freeze(excludeFiles)
18
16
  }
19
17
  if (options) {
@@ -23,7 +21,7 @@ const freeze = /* @__PURE__ */ __name(config => {
23
21
  }
24
22
  }
25
23
  return Object.freeze(config)
26
- }, 'freeze')
27
- const defineConfig = /* @__PURE__ */ __name(config => freeze(config), 'defineConfig')
24
+ }
25
+ const defineConfig = config => freeze(config)
28
26
  export {defineConfig}
29
27
  //# sourceMappingURL=define-config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/prettier-config",
3
- "version": "0.15.7",
3
+ "version": "0.16.1",
4
4
  "description": "Shared Prettier configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -48,8 +48,8 @@
48
48
  "devDependencies": {
49
49
  "prettier": "3.6.2",
50
50
  "tsup": "8.5.0",
51
- "@bfra.me/tsconfig": "0.10.0",
52
- "@bfra.me/prettier-config": "0.15.7"
51
+ "@bfra.me/prettier-config": "0.16.1",
52
+ "@bfra.me/tsconfig": "0.12.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "prettier": "^3.0.0"
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty;var n=(e,t)=>f(e,"name",{value:t,configurable:!0});var s=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>{for(var o in t)f(e,o,{get:t[o],enumerable:!0})};var r=s(()=>{"use strict"});var h,x,d,a=s(()=>{"use strict";r();h=["overrides"],x=n(e=>{for(let t of h){let o=e[t];if(!(typeof o!="object"||o===null)&&(Object.freeze(o),t==="overrides")){let v=o;for(let g of v){let{files:j,excludeFiles:i,options:c}=g;Object.freeze(j),i&&Object.freeze(i),c&&Object.freeze(c)}}}return Object.freeze(e)},"freeze"),d=n(e=>x(e),"defineConfig")});var u={};b(u,{default:()=>O,defaultConfig:()=>l});var l,O,m=s(()=>{"use strict";r();a();l=d({arrowParens:"avoid",bracketSpacing:!1,endOfLine:"auto",printWidth:100,semi:!1,singleQuote:!0,overrides:[{files:["**/node_modules/**","**/dist/**","**/coverage/**","**/out/**","**/temp/**","**/.idea/**","**/.next/**","**/.nuxt/**","**/.output/**","**/.tsup/**","**/.vercel/**","**/.vitepress/cache/**","**/.vite-inspect/**","**/__snapshots__/**","**/test/fixtures/**","**/auto-import?(s).d.ts","**/.changeset/*.md","**/CHANGELOG*.md","**/changelog*.md","**/components.d.ts","**/devcontainer-lock.json","**/LICENSE*","**/license*","**/*.min.*","**/package-lock.json","**/pnpm-lock.yaml","**/typed-router.d.ts","**/yarn.lock"],options:{requirePragma:!0}},{files:[".vscode/*.json",".devcontainer/**/devcontainer*.json"],options:{tabWidth:4}},{files:["*.md"],options:{proseWrap:"never",singleQuote:!1}}]}),O=l});r();module.exports=Promise.resolve().then(()=>(m(),u)).then(({defaultConfig:e})=>e);
1
+ "use strict";var g=Object.defineProperty;var n=(e,t)=>()=>(e&&(t=e(e=0)),t);var C=(e,t)=>{for(var o in t)g(e,o,{get:t[o],enumerable:!0})};var r=n(()=>{"use strict"});var b,j,f,p=n(()=>{"use strict";r();b=["overrides"],j=e=>{for(let t of b){let o=e[t];if(!(typeof o!="object"||o===null)&&(Object.freeze(o),t==="overrides")){let u=o;for(let m of u){let{files:v,excludeFiles:i=null,options:s}=m;Object.freeze(v),i!=null&&Object.freeze(i),s&&Object.freeze(s)}}}return Object.freeze(e)},f=e=>j(e)});var a={};C(a,{default:()=>x,defaultConfig:()=>d});var d,x,l=n(()=>{"use strict";r();p();d=f({arrowParens:"avoid",bracketSpacing:!1,endOfLine:"auto",printWidth:100,semi:!1,singleQuote:!0,overrides:[{files:["**/node_modules/**","**/dist/**","**/coverage/**","**/out/**","**/temp/**","**/.idea/**","**/.next/**","**/.nuxt/**","**/.output/**","**/.tsup/**","**/.vercel/**","**/.vitepress/cache/**","**/.vite-inspect/**","**/__snapshots__/**","**/test/fixtures/**","**/auto-import?(s).d.ts","**/.changeset/*.md","**/CHANGELOG*.md","**/changelog*.md","**/components.d.ts","**/devcontainer-lock.json","**/LICENSE*","**/license*","**/*.min.*","**/package-lock.json","**/pnpm-lock.yaml","**/typed-router.d.ts","**/yarn.lock"],options:{requirePragma:!0}},{files:[".vscode/*.json",".devcontainer/**/devcontainer*.json"],options:{tabWidth:4}},{files:["*.md"],options:{proseWrap:"never",singleQuote:!1}}]}),x=d});r();module.exports=Promise.resolve().then(()=>(l(),a)).then(({defaultConfig:e})=>e);
@@ -14,10 +14,10 @@ const freeze = <C extends Config>(config: C): Readonly<C> => {
14
14
  if (property === 'overrides') {
15
15
  const overrides = value as NonNullable<Config['overrides']>
16
16
  for (const override of overrides) {
17
- const {files, excludeFiles, options} = override
17
+ const {files, excludeFiles = null, options} = override
18
18
 
19
19
  Object.freeze(files)
20
- if (excludeFiles) {
20
+ if (excludeFiles != null) {
21
21
  Object.freeze(excludeFiles)
22
22
  }
23
23
  if (options) {