@pengzhanbo/prettier-config 0.3.1 → 0.3.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/dist/index.cjs CHANGED
@@ -1,26 +1,50 @@
1
1
  'use strict';
2
2
 
3
3
  const index = {
4
+ // Maximum line length
4
5
  printWidth: 80,
6
+ // Specify the number of spaces per indentation-level
5
7
  tabWidth: 2,
8
+ // Indent lines with tabs instead of spaces
6
9
  useTabs: false,
10
+ // Use semicolons or not
7
11
  semi: false,
12
+ // Use single quotes instead of double quotes
8
13
  singleQuote: true,
14
+ // Change when properties in objects are quoted
9
15
  quoteProps: "consistent",
16
+ // Use single quotes instead of double quotes in JSX
10
17
  jsxSingleQuote: false,
18
+ // Print trailing commas wherever possible when multi-line
11
19
  trailingComma: "all",
20
+ // Print spaces between brackets in object literals.
12
21
  bracketSpacing: true,
22
+ // 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)
13
23
  bracketSameLine: false,
24
+ // Include parentheses around a sole arrow function parameter
14
25
  arrowParens: "always",
26
+ // Format only a segment of a file.
15
27
  rangeStart: 0,
16
28
  rangeEnd: Infinity,
29
+ // Specify which parser to use.
30
+ // parser: undefined,
31
+ // Specify the file name to use to infer which parser to use.
32
+ // filepath: undefined,
33
+ // Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
17
34
  requirePragma: false,
35
+ // Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
18
36
  insertPragma: false,
37
+ // By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and BitBucket.
19
38
  proseWrap: "preserve",
39
+ // Specify the global whitespace sensitivity for HTML files
20
40
  htmlWhitespaceSensitivity: "css",
41
+ // Whether or not to indent the code inside <script> and <style> tags in Vue files
21
42
  vueIndentScriptAndStyle: false,
43
+ // End of line
22
44
  endOfLine: "lf",
45
+ // Control whether Prettier formats quoted code embedded in the file
23
46
  embeddedLanguageFormatting: "auto",
47
+ // Enforce single attribute per line in HTML, Vue and JSX
24
48
  singleAttributePerLine: false
25
49
  };
26
50
 
package/dist/index.d.ts CHANGED
@@ -1,25 +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: "all",
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
1
+ declare const _default: {
2
+ printWidth: number;
3
+ tabWidth: number;
4
+ useTabs: boolean;
5
+ semi: boolean;
6
+ singleQuote: boolean;
7
+ quoteProps: string;
8
+ jsxSingleQuote: boolean;
9
+ trailingComma: string;
10
+ bracketSpacing: boolean;
11
+ bracketSameLine: boolean;
12
+ arrowParens: string;
13
+ rangeStart: number;
14
+ rangeEnd: number;
15
+ requirePragma: boolean;
16
+ insertPragma: boolean;
17
+ proseWrap: string;
18
+ htmlWhitespaceSensitivity: string;
19
+ vueIndentScriptAndStyle: boolean;
20
+ endOfLine: string;
21
+ embeddedLanguageFormatting: string;
22
+ singleAttributePerLine: boolean;
23
23
  };
24
24
 
25
- export { index as default };
25
+ export { _default as default };
package/dist/index.mjs CHANGED
@@ -1,24 +1,48 @@
1
1
  const index = {
2
+ // Maximum line length
2
3
  printWidth: 80,
4
+ // Specify the number of spaces per indentation-level
3
5
  tabWidth: 2,
6
+ // Indent lines with tabs instead of spaces
4
7
  useTabs: false,
8
+ // Use semicolons or not
5
9
  semi: false,
10
+ // Use single quotes instead of double quotes
6
11
  singleQuote: true,
12
+ // Change when properties in objects are quoted
7
13
  quoteProps: "consistent",
14
+ // Use single quotes instead of double quotes in JSX
8
15
  jsxSingleQuote: false,
16
+ // Print trailing commas wherever possible when multi-line
9
17
  trailingComma: "all",
18
+ // Print spaces between brackets in object literals.
10
19
  bracketSpacing: true,
20
+ // 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)
11
21
  bracketSameLine: false,
22
+ // Include parentheses around a sole arrow function parameter
12
23
  arrowParens: "always",
24
+ // Format only a segment of a file.
13
25
  rangeStart: 0,
14
26
  rangeEnd: Infinity,
27
+ // Specify which parser to use.
28
+ // parser: undefined,
29
+ // Specify the file name to use to infer which parser to use.
30
+ // filepath: undefined,
31
+ // Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
15
32
  requirePragma: false,
33
+ // Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier.
16
34
  insertPragma: false,
35
+ // By default, Prettier will wrap markdown text as-is since some services use a line-break-sensitive renderer, e.g. GitHub comment and BitBucket.
17
36
  proseWrap: "preserve",
37
+ // Specify the global whitespace sensitivity for HTML files
18
38
  htmlWhitespaceSensitivity: "css",
39
+ // Whether or not to indent the code inside <script> and <style> tags in Vue files
19
40
  vueIndentScriptAndStyle: false,
41
+ // End of line
20
42
  endOfLine: "lf",
43
+ // Control whether Prettier formats quoted code embedded in the file
21
44
  embeddedLanguageFormatting: "auto",
45
+ // Enforce single attribute per line in HTML, Vue and JSX
22
46
  singleAttributePerLine: false
23
47
  };
24
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pengzhanbo/prettier-config",
3
- "version": "0.3.1",
3
+ "version": "0.3.4",
4
4
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/pengzhanbo/configs#readme",
@@ -40,7 +40,7 @@
40
40
  "prettier": "^2.7.1"
41
41
  },
42
42
  "devDependencies": {
43
- "unbuild": "^0.8.11"
43
+ "unbuild": "^1.1.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "unbuild",