@timbic/prettier-config 1.0.7 → 1.0.10

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,5 @@
1
+ import { Config } from "prettier";
2
+ //#region src/index.d.ts
3
+ declare function withTimbic(options?: Config): Config;
4
+ //#endregion
5
+ export { withTimbic as default };
package/dist/index.js ADDED
@@ -0,0 +1,34 @@
1
+ //#region src/index.ts
2
+ const DEFAULT_CONFIG = {
3
+ arrowParens: "always",
4
+ bracketSameLine: false,
5
+ bracketSpacing: true,
6
+ checkIgnorePragma: false,
7
+ embeddedLanguageFormatting: "auto",
8
+ endOfLine: "lf",
9
+ htmlWhitespaceSensitivity: "css",
10
+ insertPragma: false,
11
+ jsxSingleQuote: false,
12
+ objectWrap: "preserve",
13
+ printWidth: 140,
14
+ proseWrap: "always",
15
+ quoteProps: "consistent",
16
+ rangeEnd: Infinity,
17
+ rangeStart: 0,
18
+ requirePragma: false,
19
+ semi: true,
20
+ singleAttributePerLine: true,
21
+ singleQuote: false,
22
+ tabWidth: 4,
23
+ trailingComma: "all",
24
+ useTabs: true,
25
+ vueIndentScriptAndStyle: false
26
+ };
27
+ function withTimbic(options) {
28
+ return {
29
+ ...DEFAULT_CONFIG,
30
+ ...options
31
+ };
32
+ }
33
+ //#endregion
34
+ export { withTimbic as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timbic/prettier-config",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.10",
5
5
  "private": false,
6
6
  "description": "Timbic's prettier configuration",
7
7
  "author": "Timur Bikmuhametov <tim.bic22@gmail.com>",
@@ -42,6 +42,6 @@
42
42
  "format": "prettier --write .",
43
43
  "format:check": "prettier --check .",
44
44
  "typecheck": "tsc --noEmit",
45
- "release": "bumpp && pnpm publish"
45
+ "release": "bumpp"
46
46
  }
47
47
  }