@meteorlxy/prettier-config 6.2.0 → 6.6.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.
package/dist/index.cjs CHANGED
@@ -1,63 +1,42 @@
1
- 'use strict';
2
1
 
3
- const index = {
4
- // Maximum line length
5
- printWidth: 80,
6
- // Specify the number of spaces per indentation-level
7
- tabWidth: 2,
8
- // Indent lines with tabs instead of spaces
9
- useTabs: false,
10
- // Use semicolons or not
11
- semi: true,
12
- // Use single quotes instead of double quotes
13
- singleQuote: true,
14
- // Change when properties in objects are quoted
15
- quoteProps: "consistent",
16
- // Use single quotes instead of double quotes in JSX
17
- jsxSingleQuote: false,
18
- // Print trailing commas wherever possible when multi-line
19
- trailingComma: "all",
20
- // Print spaces between brackets in object literals.
21
- bracketSpacing: true,
22
- // Put the `>` of a multi-line HTML element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
23
- bracketSameLine: false,
24
- // Include parentheses around a sole arrow function parameter
25
- arrowParens: "always",
26
- // Format only a segment of a file.
27
- rangeStart: 0,
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.
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.
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.
38
- proseWrap: "preserve",
39
- // Specify the global whitespace sensitivity for HTML files
40
- htmlWhitespaceSensitivity: "css",
41
- // Whether or not to indent the code inside <script> and <style> tags in Vue files
42
- vueIndentScriptAndStyle: false,
43
- // End of line
44
- endOfLine: "lf",
45
- // Control whether Prettier formats quoted code embedded in the file
46
- embeddedLanguageFormatting: "auto",
47
- // Enforce single attribute per line in HTML, Vue and JSX
48
- singleAttributePerLine: false,
49
- overrides: [
50
- {
51
- files: [
52
- ".vscode/extensions.json",
53
- ".vscode/launch.json",
54
- ".vscode/settings.json"
55
- ],
56
- options: {
57
- parser: "jsonc"
58
- }
59
- }
60
- ]
2
+ //#region src/index.ts
3
+ /**
4
+ * Prettier Config
5
+ *
6
+ * @see https://prettier.io/docs/en/options
7
+ * @see https://prettier.io/docs/en/configuration
8
+ */
9
+ var src_default = {
10
+ printWidth: 80,
11
+ tabWidth: 2,
12
+ useTabs: false,
13
+ semi: true,
14
+ singleQuote: true,
15
+ quoteProps: "consistent",
16
+ jsxSingleQuote: false,
17
+ trailingComma: "all",
18
+ bracketSpacing: true,
19
+ bracketSameLine: false,
20
+ arrowParens: "always",
21
+ rangeStart: 0,
22
+ rangeEnd: Infinity,
23
+ requirePragma: false,
24
+ insertPragma: false,
25
+ proseWrap: "preserve",
26
+ htmlWhitespaceSensitivity: "css",
27
+ vueIndentScriptAndStyle: false,
28
+ endOfLine: "lf",
29
+ embeddedLanguageFormatting: "auto",
30
+ singleAttributePerLine: false,
31
+ overrides: [{
32
+ files: [
33
+ ".vscode/extensions.json",
34
+ ".vscode/launch.json",
35
+ ".vscode/settings.json"
36
+ ],
37
+ options: { parser: "jsonc" }
38
+ }]
61
39
  };
62
40
 
63
- module.exports = index;
41
+ //#endregion
42
+ module.exports = src_default;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ //#region src/index.d.ts
1
2
  /**
2
3
  * Prettier Config
3
4
  *
@@ -5,33 +6,32 @@
5
6
  * @see https://prettier.io/docs/en/configuration
6
7
  */
7
8
  declare const _default: {
8
- printWidth: number;
9
- tabWidth: number;
10
- useTabs: false;
11
- semi: true;
12
- singleQuote: true;
13
- quoteProps: "consistent";
14
- jsxSingleQuote: false;
15
- trailingComma: "all";
16
- bracketSpacing: true;
17
- bracketSameLine: false;
18
- arrowParens: "always";
19
- rangeStart: number;
20
- rangeEnd: number;
21
- requirePragma: false;
22
- insertPragma: false;
23
- proseWrap: "preserve";
24
- htmlWhitespaceSensitivity: "css";
25
- vueIndentScriptAndStyle: false;
26
- endOfLine: "lf";
27
- embeddedLanguageFormatting: "auto";
28
- singleAttributePerLine: false;
29
- overrides: {
30
- files: string[];
31
- options: {
32
- parser: "jsonc";
33
- };
34
- }[];
9
+ printWidth: number;
10
+ tabWidth: number;
11
+ useTabs: false;
12
+ semi: true;
13
+ singleQuote: true;
14
+ quoteProps: "consistent";
15
+ jsxSingleQuote: false;
16
+ trailingComma: "all";
17
+ bracketSpacing: true;
18
+ bracketSameLine: false;
19
+ arrowParens: "always";
20
+ rangeStart: number;
21
+ rangeEnd: number;
22
+ requirePragma: false;
23
+ insertPragma: false;
24
+ proseWrap: "preserve";
25
+ htmlWhitespaceSensitivity: "css";
26
+ vueIndentScriptAndStyle: false;
27
+ endOfLine: "lf";
28
+ embeddedLanguageFormatting: "auto";
29
+ singleAttributePerLine: false;
30
+ overrides: {
31
+ files: string[];
32
+ options: {
33
+ parser: "jsonc";
34
+ };
35
+ }[];
35
36
  };
36
-
37
- export = _default;
37
+ export = _default;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ //#region src/index.d.ts
1
2
  /**
2
3
  * Prettier Config
3
4
  *
@@ -5,33 +6,33 @@
5
6
  * @see https://prettier.io/docs/en/configuration
6
7
  */
7
8
  declare const _default: {
8
- printWidth: number;
9
- tabWidth: number;
10
- useTabs: false;
11
- semi: true;
12
- singleQuote: true;
13
- quoteProps: "consistent";
14
- jsxSingleQuote: false;
15
- trailingComma: "all";
16
- bracketSpacing: true;
17
- bracketSameLine: false;
18
- arrowParens: "always";
19
- rangeStart: number;
20
- rangeEnd: number;
21
- requirePragma: false;
22
- insertPragma: false;
23
- proseWrap: "preserve";
24
- htmlWhitespaceSensitivity: "css";
25
- vueIndentScriptAndStyle: false;
26
- endOfLine: "lf";
27
- embeddedLanguageFormatting: "auto";
28
- singleAttributePerLine: false;
29
- overrides: {
30
- files: string[];
31
- options: {
32
- parser: "jsonc";
33
- };
34
- }[];
9
+ printWidth: number;
10
+ tabWidth: number;
11
+ useTabs: false;
12
+ semi: true;
13
+ singleQuote: true;
14
+ quoteProps: "consistent";
15
+ jsxSingleQuote: false;
16
+ trailingComma: "all";
17
+ bracketSpacing: true;
18
+ bracketSameLine: false;
19
+ arrowParens: "always";
20
+ rangeStart: number;
21
+ rangeEnd: number;
22
+ requirePragma: false;
23
+ insertPragma: false;
24
+ proseWrap: "preserve";
25
+ htmlWhitespaceSensitivity: "css";
26
+ vueIndentScriptAndStyle: false;
27
+ endOfLine: "lf";
28
+ embeddedLanguageFormatting: "auto";
29
+ singleAttributePerLine: false;
30
+ overrides: {
31
+ files: string[];
32
+ options: {
33
+ parser: "jsonc";
34
+ };
35
+ }[];
35
36
  };
36
-
37
- export { _default as default };
37
+ //#endregion
38
+ export { _default as default };
package/dist/index.mjs CHANGED
@@ -1,61 +1,41 @@
1
- const index = {
2
- // Maximum line length
3
- printWidth: 80,
4
- // Specify the number of spaces per indentation-level
5
- tabWidth: 2,
6
- // Indent lines with tabs instead of spaces
7
- useTabs: false,
8
- // Use semicolons or not
9
- semi: true,
10
- // Use single quotes instead of double quotes
11
- singleQuote: true,
12
- // Change when properties in objects are quoted
13
- quoteProps: "consistent",
14
- // Use single quotes instead of double quotes in JSX
15
- jsxSingleQuote: false,
16
- // Print trailing commas wherever possible when multi-line
17
- trailingComma: "all",
18
- // Print spaces between brackets in object literals.
19
- bracketSpacing: true,
20
- // Put the `>` of a multi-line HTML element at the end of the last line instead of being alone on the next line (does not apply to self closing elements)
21
- bracketSameLine: false,
22
- // Include parentheses around a sole arrow function parameter
23
- arrowParens: "always",
24
- // Format only a segment of a file.
25
- rangeStart: 0,
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.
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.
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.
36
- proseWrap: "preserve",
37
- // Specify the global whitespace sensitivity for HTML files
38
- htmlWhitespaceSensitivity: "css",
39
- // Whether or not to indent the code inside <script> and <style> tags in Vue files
40
- vueIndentScriptAndStyle: false,
41
- // End of line
42
- endOfLine: "lf",
43
- // Control whether Prettier formats quoted code embedded in the file
44
- embeddedLanguageFormatting: "auto",
45
- // Enforce single attribute per line in HTML, Vue and JSX
46
- singleAttributePerLine: false,
47
- overrides: [
48
- {
49
- files: [
50
- ".vscode/extensions.json",
51
- ".vscode/launch.json",
52
- ".vscode/settings.json"
53
- ],
54
- options: {
55
- parser: "jsonc"
56
- }
57
- }
58
- ]
1
+ //#region src/index.ts
2
+ /**
3
+ * Prettier Config
4
+ *
5
+ * @see https://prettier.io/docs/en/options
6
+ * @see https://prettier.io/docs/en/configuration
7
+ */
8
+ var src_default = {
9
+ printWidth: 80,
10
+ tabWidth: 2,
11
+ useTabs: false,
12
+ semi: true,
13
+ singleQuote: true,
14
+ quoteProps: "consistent",
15
+ jsxSingleQuote: false,
16
+ trailingComma: "all",
17
+ bracketSpacing: true,
18
+ bracketSameLine: false,
19
+ arrowParens: "always",
20
+ rangeStart: 0,
21
+ rangeEnd: Infinity,
22
+ requirePragma: false,
23
+ insertPragma: false,
24
+ proseWrap: "preserve",
25
+ htmlWhitespaceSensitivity: "css",
26
+ vueIndentScriptAndStyle: false,
27
+ endOfLine: "lf",
28
+ embeddedLanguageFormatting: "auto",
29
+ singleAttributePerLine: false,
30
+ overrides: [{
31
+ files: [
32
+ ".vscode/extensions.json",
33
+ ".vscode/launch.json",
34
+ ".vscode/settings.json"
35
+ ],
36
+ options: { parser: "jsonc" }
37
+ }]
59
38
  };
60
39
 
61
- export { index as default };
40
+ //#endregion
41
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/prettier-config",
3
- "version": "6.2.0",
3
+ "version": "6.6.0",
4
4
  "description": "meteorlxy prettier config",
5
5
  "keywords": [
6
6
  "config",
@@ -10,7 +10,7 @@
10
10
  "homepage": "https://github.com/meteorlxy/configs",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/meteorlxy/configs.git"
13
+ "url": "git+https://github.com/meteorlxy/configs.git"
14
14
  },
15
15
  "license": "MIT",
16
16
  "author": "meteorlxy <meteor.lxy@foxmail.com>",
@@ -19,23 +19,28 @@
19
19
  ".": {
20
20
  "import": "./dist/index.mjs",
21
21
  "require": "./dist/index.cjs"
22
- }
22
+ },
23
+ "./package.json": "./package.json"
23
24
  },
24
25
  "main": "./dist/index.cjs",
25
- "types": "./dist/index.d.ts",
26
+ "module": "./dist/index.mjs",
27
+ "types": "./dist/index.d.cts",
26
28
  "files": [
27
29
  "./dist"
28
30
  ],
29
31
  "scripts": {
30
- "build": "unbuild",
32
+ "build": "tsdown",
31
33
  "clean": "rimraf ./dist"
32
34
  },
33
35
  "devDependencies": {
34
36
  "prettier": "^3.6.2",
35
- "unbuild": "^3.5.0"
37
+ "tsdown": "^0.14.0"
38
+ },
39
+ "engines": {
40
+ "node": ">=20.0.0"
36
41
  },
37
42
  "publishConfig": {
38
43
  "access": "public"
39
44
  },
40
- "gitHead": "faeb185a337ff245430e24fc78e765956af323eb"
45
+ "gitHead": "2453528483917062aab9aa036bd76b39563c11eb"
41
46
  }
package/dist/index.d.ts DELETED
@@ -1,37 +0,0 @@
1
- /**
2
- * Prettier Config
3
- *
4
- * @see https://prettier.io/docs/en/options
5
- * @see https://prettier.io/docs/en/configuration
6
- */
7
- declare const _default: {
8
- printWidth: number;
9
- tabWidth: number;
10
- useTabs: false;
11
- semi: true;
12
- singleQuote: true;
13
- quoteProps: "consistent";
14
- jsxSingleQuote: false;
15
- trailingComma: "all";
16
- bracketSpacing: true;
17
- bracketSameLine: false;
18
- arrowParens: "always";
19
- rangeStart: number;
20
- rangeEnd: number;
21
- requirePragma: false;
22
- insertPragma: false;
23
- proseWrap: "preserve";
24
- htmlWhitespaceSensitivity: "css";
25
- vueIndentScriptAndStyle: false;
26
- endOfLine: "lf";
27
- embeddedLanguageFormatting: "auto";
28
- singleAttributePerLine: false;
29
- overrides: {
30
- files: string[];
31
- options: {
32
- parser: "jsonc";
33
- };
34
- }[];
35
- };
36
-
37
- export = _default;