@bfra.me/prettier-config 0.16.0 → 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.
@@ -9,9 +9,9 @@ const freeze = config => {
9
9
  if (property === 'overrides') {
10
10
  const overrides = value
11
11
  for (const override of overrides) {
12
- const {files, excludeFiles, options} = override
12
+ const {files, excludeFiles = null, options} = override
13
13
  Object.freeze(files)
14
- if (excludeFiles) {
14
+ if (excludeFiles != null) {
15
15
  Object.freeze(excludeFiles)
16
16
  }
17
17
  if (options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/prettier-config",
3
- "version": "0.16.0",
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/prettier-config": "0.16.0",
52
- "@bfra.me/tsconfig": "0.11.0"
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 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,options:s}=m;Object.freeze(v),i&&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);
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) {