@fxhxyz/prettier-config 1.0.3 → 1.0.4

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/.editorconfig ADDED
@@ -0,0 +1,60 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ tab_width = 4
7
+ indent_size = 4
8
+ end_of_line = lf
9
+ max_line_length = 120
10
+ insert_final_newline = true
11
+ trim_trailing_whitespace = true
12
+
13
+ # Visual Studio Solution Files
14
+ [*.sln]
15
+ indent_style = tab
16
+
17
+ # Visual Studio XML Project Files
18
+ [*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
19
+ indent_size = 2
20
+
21
+ # XML Configuration Files
22
+ [*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
23
+ indent_size = 2
24
+
25
+ # JSON Files
26
+ [*.{json,json5,webmanifest}]
27
+ indent_size = 2
28
+
29
+ # YAML Files
30
+ [*.{yml,yaml}]
31
+ indent_size = 2
32
+
33
+ # Markdown
34
+ [*.{md,mdx}]
35
+ trim_trailing_whitespace = false
36
+
37
+ # JavaScript/TypeScript
38
+ [*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
39
+ indent_style = space
40
+ indent_size = 2
41
+
42
+ # Batch Files
43
+ [*.{cmd,bat}]
44
+ end_of_line = crlf
45
+
46
+ # Bash Files
47
+ [*.sh]
48
+ end_of_line = lf
49
+
50
+ # Makefiles
51
+ [Makefile]
52
+ indent_style = tab
53
+
54
+ # Ignore minified files
55
+ [*.min.*]
56
+ indent_style = ignore
57
+ trim_trailing_whitespace = false
58
+ insert_final_newline = ignore
59
+
60
+ # git config --global core.autocrlf input
package/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ # Misc
2
+ .DS_Store
3
+ text.txt
4
+ package-lock.*
5
+ yarn.*
6
+ *.LICENSE.*
7
+
8
+ # Logs
9
+ logs
10
+ *.log
11
+ npm-debug.log*
12
+ yarn-debug.log*
13
+ yarn-error.log*
14
+ lerna-debug.log*
15
+
16
+ # Dependency directories
17
+ node_modules/
18
+ jspm_packages/
19
+
20
+ # Optional npm cache directory
21
+ .npm
package/.npmignore ADDED
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ package-lock.json
3
+ release.sh
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var config = require('@fxhxyz/prettier-config');
6
+
7
+ /** @type {import("prettier").Config} */
8
+ var _prettierrc = {
9
+ ...config
10
+ };
11
+
12
+ exports.default = _prettierrc;
package/.prettierrc.js CHANGED
@@ -1,6 +1,8 @@
1
- import config from "@fxhxyz/prettier-config";
1
+ import config from '@fxhxyz/prettier-config';
2
2
 
3
3
  /** @type {import("prettier").Config} */
4
- export default {
4
+ var _prettierrc = {
5
5
  ...config
6
- }
6
+ };
7
+
8
+ export { _prettierrc as default };
package/.prettierrc.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/prettierrc",
3
- "tabWidth": 2,
4
- "useTabs": true,
3
+ "tabWidth": 4,
4
+ "useTabs": false,
5
5
  "printWidth": 120,
6
6
  "singleQuote": true,
7
7
  "jsxSingleQuote": true,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@fxhxyz/prettier-config",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "My professional prettier config",
6
- "main": "./.prettierrc.js",
6
+ "main": "./.prettierrc.json",
7
7
  "prettier": "./.prettierrc.json",
8
8
  "keywords": [
9
9
  "typescript",
@@ -16,11 +16,15 @@
16
16
  ".prettierignore",
17
17
  ".prettierrc.cjs",
18
18
  ".prettierrc.js",
19
- ".prettierrc.mjs",
20
- ".prettierrc.json"
19
+ ".prettierrc.json",
20
+ ".editorconfig",
21
+ "rollup.config.js",
22
+ ".gitignore",
23
+ ".npmignore"
21
24
  ],
22
25
  "scripts": {
23
- "format": "prettier --write ."
26
+ "format": "prettier --write .",
27
+ "build": "rollup -c"
24
28
  },
25
29
  "author": {
26
30
  "name": "fxhxyz4",
@@ -55,5 +59,8 @@
55
59
  },
56
60
  "engines": {
57
61
  "node": "20.x"
62
+ },
63
+ "dependencies": {
64
+ "rollup": "^4.34.9"
58
65
  }
59
66
  }
@@ -0,0 +1,19 @@
1
+ let config = {};
2
+
3
+ export default config = {
4
+ input: `./.prettierrc.js`,
5
+ output: [
6
+ {
7
+ file: `./.prettierrc.cjs`,
8
+ format: 'cjs',
9
+ exports: 'named',
10
+ sourcemap: false,
11
+ },
12
+ {
13
+ file: `./.prettierrc.js`,
14
+ format: 'esm',
15
+ exports: 'named',
16
+ sourcemap: false,
17
+ }
18
+ ]
19
+ }