@timbic/prettier-config 1.0.0

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,39 @@
1
+ node_modules
2
+
3
+ dist
4
+ build
5
+
6
+ lib-cov
7
+ coverage
8
+ .nyc_output
9
+
10
+ .gitattributes
11
+ .gitignore
12
+
13
+ LICENSE
14
+
15
+ .env
16
+
17
+ .npm
18
+ .npmrc
19
+ .yarn
20
+ .yarn-integrity
21
+ .yarnclean
22
+ *.tgz
23
+ npm-debug.log*
24
+ yarn-debug.log*
25
+ yarn-error.log*
26
+ yarn.lock
27
+ .pnpm
28
+ pnpm-lock.yaml
29
+
30
+ logs
31
+ *.log
32
+
33
+ .browserslistrc
34
+ .editorconfig
35
+ .eslintignore
36
+ .markdownlintignore
37
+ .prettierignore
38
+
39
+ CHANGELOG.md
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Timur Bikmuhametov <https://github.com/Timbic>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, 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,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @timbic/prettier-config
2
+
3
+ Extensible prettier configuration for the smart developers.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ pnpm add -D prettier @timbic/prettier-config
9
+ ```
10
+
11
+ ```mjs
12
+ import withTimbic from "@timbic/prettier-config";
13
+
14
+ export default withTimbic();
15
+
16
+ // or
17
+
18
+ export default withTimbic({
19
+ // your options
20
+ });
21
+ ```
22
+
23
+ Your options will override the defaults and extend the config.
24
+
25
+ ## Default options:
26
+
27
+ ```mjs
28
+ {
29
+ arrowParens: "always",
30
+ bracketSameLine: false,
31
+ bracketSpacing: true,
32
+ checkIgnorePragma: false,
33
+ embeddedLanguageFormatting: "auto",
34
+ endOfLine: "lf",
35
+ htmlWhitespaceSensitivity: "css",
36
+ insertPragma: false,
37
+ jsxSingleQuote: false,
38
+ objectWrap: "preserve",
39
+ printWidth: 140,
40
+ proseWrap: "always",
41
+ quoteProps: "consistent",
42
+ rangeEnd: Infinity,
43
+ rangeStart: 0,
44
+ requirePragma: false,
45
+ semi: true,
46
+ singleAttributePerLine: true,
47
+ singleQuote: false,
48
+ tabWidth: 4,
49
+ trailingComma: "all",
50
+ useTabs: true,
51
+ vueIndentScriptAndStyle: false,
52
+ }
53
+ ```
@@ -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 @@
1
+ const e={arrowParens:`always`,bracketSameLine:!1,bracketSpacing:!0,checkIgnorePragma:!1,embeddedLanguageFormatting:`auto`,endOfLine:`lf`,htmlWhitespaceSensitivity:`css`,insertPragma:!1,jsxSingleQuote:!1,objectWrap:`preserve`,printWidth:140,proseWrap:`always`,quoteProps:`consistent`,rangeEnd:1/0,rangeStart:0,requirePragma:!1,semi:!0,singleAttributePerLine:!0,singleQuote:!1,tabWidth:4,trailingComma:`all`,useTabs:!0,vueIndentScriptAndStyle:!1};function t(t){return{...e,...t}}export{t as default};
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@timbic/prettier-config",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "private": false,
6
+ "description": "Timbic's prettier configuration",
7
+ "author": "Timur Bikmuhametov <tim.bic22@gmail.com>",
8
+ "license": "MIT",
9
+ "keywords": [
10
+ "prettier",
11
+ "prettier-config"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/Timbic/prettier-config.git"
16
+ },
17
+ "exports": {
18
+ ".": "./dist/index.js"
19
+ },
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "files": [
23
+ ".prettierignore",
24
+ "dist"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "peerDependencies": {
30
+ "prettier": "^3.9.5"
31
+ },
32
+ "dependencies": {
33
+ "prettier": "3.9.5"
34
+ },
35
+ "devDependencies": {
36
+ "bumpp": "^11.1.0",
37
+ "publint": "0.3.21",
38
+ "tsdown": "^0.22.5",
39
+ "typescript": "^6.0.3"
40
+ },
41
+ "scripts": {
42
+ "build": "tsdown",
43
+ "format": "prettier --write .",
44
+ "format:check": "prettier --check .",
45
+ "typecheck": "tsc --noEmit",
46
+ "release": "bumpp && pnpm publish"
47
+ }
48
+ }