@bfra.me/prettier-config 0.16.10 → 0.16.13
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/license.md +20 -0
- package/package.json +3 -3
- package/lib/100-proof.js.map +0 -1
- package/lib/120-proof.js.map +0 -1
- package/lib/80-proof.js.map +0 -1
- package/lib/default.js.map +0 -1
- package/lib/define-config.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/semi.js.map +0 -1
package/license.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Marcus R. Brown <git@mrbro.dev>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bfra.me/prettier-config",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.13",
|
|
4
4
|
"description": "Shared Prettier configuration for bfra.me",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bfra.me",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"src"
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
49
|
+
"@bfra.me/works": "0.0.0-development",
|
|
50
|
+
"prettier": "3.9.9"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"prettier": "^3.0.0"
|
package/lib/100-proof.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/100-proof.ts"],"sourcesContent":["import {defaultConfig as $100ProofConfig} from './default.js'\n\nexport {$100ProofConfig}\nexport default $100ProofConfig\n"],"mappings":"AAAA,SAAQ,iBAAiB,uBAAsB;AAG/C,IAAO,gBAAQ;","names":[]}
|
package/lib/120-proof.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/120-proof.ts"],"sourcesContent":["import {defaultConfig} from './default.js'\nimport {defineConfig} from './define-config.js'\n\nexport const $120ProofConfig = defineConfig({\n ...defaultConfig,\n printWidth: 120,\n})\n\nexport default $120ProofConfig\n"],"mappings":"AAAA,SAAQ,qBAAoB;AAC5B,SAAQ,oBAAmB;AAEpB,MAAM,kBAAkB,aAAa;AAAA,EAC1C,GAAG;AAAA,EACH,YAAY;AACd,CAAC;AAED,IAAO,gBAAQ;","names":[]}
|
package/lib/80-proof.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/80-proof.ts"],"sourcesContent":["import {defaultConfig} from './default.js'\nimport {defineConfig} from './define-config.js'\n\nexport const $80ProofConfig = defineConfig({\n ...defaultConfig,\n printWidth: 80,\n})\n\nexport default $80ProofConfig\n"],"mappings":"AAAA,SAAQ,qBAAoB;AAC5B,SAAQ,oBAAmB;AAEpB,MAAM,iBAAiB,aAAa;AAAA,EACzC,GAAG;AAAA,EACH,YAAY;AACd,CAAC;AAED,IAAO,gBAAQ;","names":[]}
|
package/lib/default.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/default.ts"],"sourcesContent":["import type {Config} from 'prettier'\nimport {defineConfig} from './define-config.js'\n\ntype Override = NonNullable<Config['overrides']>[number]\n\n/**\n * Shared Prettier configuration for bfra.me projects.\n * @see https://prettier.io/docs/en/configuration.html\n */\nexport const defaultConfig = defineConfig({\n arrowParens: 'avoid',\n bracketSpacing: false,\n endOfLine: 'auto',\n printWidth: 100,\n semi: false,\n singleQuote: true,\n\n /** Provide a list of patterns to override prettier configuration. */\n overrides: [\n // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js.\n // Require a pragma for paths typically not under version control or written by build tools.\n {\n files: [\n '**/node_modules/**',\n '**/dist/**',\n '**/coverage/**',\n '**/out/**',\n '**/temp/**',\n '**/.idea/**',\n '**/.next/**',\n '**/.nuxt/**',\n '**/.output/**',\n '**/.tsup/**',\n '**/.vercel/**',\n '**/.vitepress/cache/**',\n '**/.vite-inspect/**',\n '**/__snapshots__/**',\n '**/test/fixtures/**',\n\n '**/auto-import?(s).d.ts',\n '**/.changeset/*.md',\n '**/CHANGELOG*.md',\n '**/changelog*.md',\n '**/components.d.ts',\n '**/devcontainer-lock.json',\n '**/LICENSE*',\n '**/license*',\n '**/*.min.*',\n '**/package-lock.json',\n '**/pnpm-lock.yaml',\n '**/typed-router.d.ts',\n '**/yarn.lock',\n ],\n options: {\n requirePragma: true,\n },\n },\n\n // VS Code configuration files:\n // Use 4 spaces for indentation to match the default VS Code settings.\n {\n files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],\n options: {\n tabWidth: 4,\n },\n },\n\n // Markdown:\n // - Disable single quotes for Markdown files.\n // - Disable `proseWrap` to avoid wrapping prose.\n {\n files: ['*.md'],\n options: {\n proseWrap: 'never',\n singleQuote: false,\n },\n },\n ] as Override[],\n})\n\nexport default defaultConfig\n"],"mappings":"AACA,SAAQ,oBAAmB;AAQpB,MAAM,gBAAgB,aAAa;AAAA,EACxC,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,aAAa;AAAA;AAAA,EAGb,WAAW;AAAA;AAAA;AAAA,IAGT;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,SAAS;AAAA,QACP,eAAe;AAAA,MACjB;AAAA,IACF;AAAA;AAAA;AAAA,IAIA;AAAA,MACE,OAAO,CAAC,kBAAkB,qCAAqC;AAAA,MAC/D,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IACF;AAAA;AAAA;AAAA;AAAA,IAKA;AAAA,MACE,OAAO,CAAC,MAAM;AAAA,MACd,SAAS;AAAA,QACP,WAAW;AAAA,QACX,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAED,IAAO,kBAAQ;","names":[]}
|
package/lib/define-config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define-config.ts"],"sourcesContent":["import type {Config} from 'prettier'\n\nconst properties = ['overrides']\n\nconst freeze = <C extends Config>(config: C): Readonly<C> => {\n for (const property of properties) {\n const value = config[property]\n if (typeof value !== 'object' || value === null) {\n continue\n }\n\n Object.freeze(value)\n\n if (property === 'overrides') {\n const overrides = value as NonNullable<Config['overrides']>\n for (const override of overrides) {\n const {files, excludeFiles = null, options} = override\n\n Object.freeze(files)\n if (excludeFiles != null) {\n Object.freeze(excludeFiles)\n }\n if (options) {\n Object.freeze(options)\n }\n }\n }\n }\n\n return Object.freeze(config)\n}\n\nexport const defineConfig = <C extends Config>(config: C): C => freeze(config)\n"],"mappings":"AAEA,MAAM,aAAa,CAAC,WAAW;AAE/B,MAAM,SAAS,CAAmB,WAA2B;AAC3D,aAAW,YAAY,YAAY;AACjC,UAAM,QAAQ,OAAO,QAAQ;AAC7B,QAAI,OAAO,UAAU,YAAY,UAAU,MAAM;AAC/C;AAAA,IACF;AAEA,WAAO,OAAO,KAAK;AAEnB,QAAI,aAAa,aAAa;AAC5B,YAAM,YAAY;AAClB,iBAAW,YAAY,WAAW;AAChC,cAAM,EAAC,OAAO,eAAe,MAAM,QAAO,IAAI;AAE9C,eAAO,OAAO,KAAK;AACnB,YAAI,gBAAgB,MAAM;AACxB,iBAAO,OAAO,YAAY;AAAA,QAC5B;AACA,YAAI,SAAS;AACX,iBAAO,OAAO,OAAO;AAAA,QACvB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,OAAO,OAAO,MAAM;AAC7B;AAEO,MAAM,eAAe,CAAmB,WAAiB,OAAO,MAAM;","names":[]}
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import {defaultConfig} from './default.js'\n\nexport default defaultConfig\n\nexport * from './80-proof.js'\nexport * from './100-proof.js'\nexport * from './120-proof.js'\nexport * from './default.js'\nexport * from './define-config.js'\nexport * from './semi.js'\n"],"mappings":"AAAA,SAAQ,qBAAoB;AAE5B,IAAO,gBAAQ;AAEf,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/lib/semi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/semi.ts"],"sourcesContent":["import {defaultConfig} from './default.js'\nimport {defineConfig} from './define-config.js'\n\nexport const semi = defineConfig({\n ...defaultConfig,\n semi: true,\n})\n\nexport default semi\n"],"mappings":"AAAA,SAAQ,qBAAoB;AAC5B,SAAQ,oBAAmB;AAEpB,MAAM,OAAO,aAAa;AAAA,EAC/B,GAAG;AAAA,EACH,MAAM;AACR,CAAC;AAED,IAAO,eAAQ;","names":[]}
|