@pengzhanbo/prettier-config 0.2.7 → 0.2.9

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/dist/index.cjs ADDED
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ const index = {
4
+ printWidth: 80,
5
+ tabWidth: 2,
6
+ useTabs: false,
7
+ semi: false,
8
+ singleQuote: true,
9
+ quoteProps: "consistent",
10
+ jsxSingleQuote: false,
11
+ trailingComma: "es5",
12
+ bracketSpacing: true,
13
+ bracketSameLine: false,
14
+ arrowParens: "always",
15
+ rangeStart: 0,
16
+ rangeEnd: Infinity,
17
+ requirePragma: false,
18
+ insertPragma: false,
19
+ proseWrap: "preserve",
20
+ htmlWhitespaceSensitivity: "css",
21
+ vueIndentScriptAndStyle: false,
22
+ endOfLine: "lf",
23
+ embeddedLanguageFormatting: "auto",
24
+ singleAttributePerLine: false
25
+ };
26
+
27
+ module.exports = index;
@@ -0,0 +1,25 @@
1
+ var index = {
2
+ printWidth: 80,
3
+ tabWidth: 2,
4
+ useTabs: false,
5
+ semi: false,
6
+ singleQuote: true,
7
+ quoteProps: "consistent",
8
+ jsxSingleQuote: false,
9
+ trailingComma: "es5",
10
+ bracketSpacing: true,
11
+ bracketSameLine: false,
12
+ arrowParens: "always",
13
+ rangeStart: 0,
14
+ rangeEnd: Infinity,
15
+ requirePragma: false,
16
+ insertPragma: false,
17
+ proseWrap: "preserve",
18
+ htmlWhitespaceSensitivity: "css",
19
+ vueIndentScriptAndStyle: false,
20
+ endOfLine: "lf",
21
+ embeddedLanguageFormatting: "auto",
22
+ singleAttributePerLine: false
23
+ };
24
+
25
+ export { index as default };
package/dist/index.mjs ADDED
@@ -0,0 +1,25 @@
1
+ const index = {
2
+ printWidth: 80,
3
+ tabWidth: 2,
4
+ useTabs: false,
5
+ semi: false,
6
+ singleQuote: true,
7
+ quoteProps: "consistent",
8
+ jsxSingleQuote: false,
9
+ trailingComma: "es5",
10
+ bracketSpacing: true,
11
+ bracketSameLine: false,
12
+ arrowParens: "always",
13
+ rangeStart: 0,
14
+ rangeEnd: Infinity,
15
+ requirePragma: false,
16
+ insertPragma: false,
17
+ proseWrap: "preserve",
18
+ htmlWhitespaceSensitivity: "css",
19
+ vueIndentScriptAndStyle: false,
20
+ endOfLine: "lf",
21
+ embeddedLanguageFormatting: "auto",
22
+ singleAttributePerLine: false
23
+ };
24
+
25
+ export { index as default };
package/package.json CHANGED
@@ -1,22 +1,49 @@
1
1
  {
2
2
  "name": "@pengzhanbo/prettier-config",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
5
5
  "license": "MIT",
6
- "homepage": "https://github.com/pengzhanbo/configs",
6
+ "homepage": "https://github.com/pengzhanbo/configs#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git@github.com:pengzhanbo/configs.git",
10
- "directory": "packages/prettier"
10
+ "directory": "packages/prettier-config"
11
11
  },
12
12
  "keywords": [
13
13
  "prettier-config"
14
14
  ],
15
- "main": "index.js",
15
+ "type": "module",
16
+ "main": "dist/index.cjs",
17
+ "module": "dist/index.mjs",
18
+ "types": "dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "require": "./dist/index.cjs",
22
+ "import": "./dist/index.mjs"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
16
26
  "files": [
17
- "*.js"
27
+ "dist"
18
28
  ],
29
+ "unbuild": {
30
+ "entries": [
31
+ "./src/index"
32
+ ],
33
+ "declaration": true,
34
+ "clean": true,
35
+ "rollup": {
36
+ "emitCJS": true
37
+ }
38
+ },
19
39
  "peerDependencies": {
20
40
  "prettier": "^2.7.1"
41
+ },
42
+ "devDependencies": {
43
+ "unbuild": "^0.8.11"
44
+ },
45
+ "scripts": {
46
+ "build": "unbuild",
47
+ "stub": "unbuild --stub"
21
48
  }
22
49
  }
package/index.js DELETED
@@ -1,68 +0,0 @@
1
- module.exports = {
2
- // Maximum line length
3
- printWidth: 80,
4
-
5
- // Specify the number of spaces per indentation-level
6
- tabWidth: 2,
7
-
8
- // Indent lines with tabs instead of spaces
9
- useTabs: false,
10
-
11
- // Use semicolons or not
12
- semi: false,
13
-
14
- // Use single quotes instead of double quotes
15
- singleQuote: true,
16
-
17
- // Change when properties in objects are quoted
18
- quoteProps: 'consistent',
19
-
20
- // Use single quotes instead of double quotes in JSX
21
- jsxSingleQuote: false,
22
-
23
- // Print trailing commas wherever possible when multi-line
24
- trailingComma: 'es5',
25
-
26
- // Print spaces between brackets in object literals.
27
- bracketSpacing: true,
28
-
29
- // Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
30
- bracketSameLine: false,
31
-
32
- // Include parentheses around a sole arrow function parameter
33
- arrowParens: 'always',
34
-
35
- // Format only a segment of a file.
36
- rangeStart: 0,
37
- rangeEnd: Infinity,
38
-
39
- // Specify which parser to use.
40
- // parser: undefined,
41
-
42
- // Specify the file name to use to infer which parser to use.
43
- // filepath: undefined,
44
-
45
- // Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
46
- requirePragma: false,
47
-
48
- // Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
49
- insertPragma: false,
50
-
51
- // By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and BitBucket.
52
- proseWrap: 'preserve',
53
-
54
- // Specify the global whitespace sensitivity for HTML files
55
- htmlWhitespaceSensitivity: 'css',
56
-
57
- // Whether or not to indent the code inside <script> and <style> tags in Vue files
58
- vueIndentScriptAndStyle: false,
59
-
60
- // End of line
61
- endOfLine: 'lf',
62
-
63
- // Control whether Prettier formats quoted code embedded in the file
64
- embeddedLanguageFormatting: 'auto',
65
-
66
- // Enforce single attribute per line in HTML, Vue and JSX
67
- singleAttributePerLine: false,
68
- }