@anolilab/prettier-config 4.1.3 β†’ 4.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ ## @anolilab/prettier-config [4.2.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/prettier-config@4.2.0...@anolilab/prettier-config@4.2.1) (2023-07-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Refactor async functions to use async/await and update tsconfig.json ([2a59d6e](https://github.com/anolilab/javascript-style-guide/commit/2a59d6e0d06a5a37c92b222961acbe9f17578f26))
7
+
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ * Reorganize Prettier config and update README examples ([cc2a4be](https://github.com/anolilab/javascript-style-guide/commit/cc2a4be9a223c722fcec370a8260028cc5f6fbd0))
12
+
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * **@anolilab/package-json-utils:** upgraded to 2.0.1
18
+ * **@anolilab/semantic-release-preset:** upgraded to 5.0.1
19
+
20
+ ## @anolilab/prettier-config [4.2.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/prettier-config@4.1.4...@anolilab/prettier-config@4.2.0) (2023-07-03)
21
+
22
+
23
+ ### Features
24
+
25
+ * Update dependencies version in pnpm-lock.yaml ([1f75f7b](https://github.com/anolilab/javascript-style-guide/commit/1f75f7bec8190da5ae6f2ba7e6ac249d802fabb4))
26
+
27
+
28
+ ### Styles
29
+
30
+ * "Rearrange order of task definitions and disable ESLint on non-literal fs filename" ([d48a8c0](https://github.com/anolilab/javascript-style-guide/commit/d48a8c0a0f87582e8a7389a4f9e025cdcbb113da))
31
+
32
+
33
+ ### Miscellaneous Chores
34
+
35
+ * removed "semantic-release-npm-deprecate" not working like expected ([a988c89](https://github.com/anolilab/javascript-style-guide/commit/a988c898ebe4941cc6534ee3f8e1ec7e7a85d929))
36
+ * Update deprecation versions in releaserc.json files ([b7b7ab7](https://github.com/anolilab/javascript-style-guide/commit/b7b7ab7c776ac5f2a0908259c5e677dc3f55de46))
37
+
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * **@anolilab/package-json-utils:** upgraded to 2.0.0
43
+ * **@anolilab/semantic-release-preset:** upgraded to 5.0.0
44
+
1
45
  ## @anolilab/prettier-config [4.1.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/prettier-config@4.1.2...@anolilab/prettier-config@4.1.3) (2023-06-29)
2
46
 
3
47
 
package/README.md CHANGED
@@ -46,44 +46,44 @@ If you don’t have a `.prettierrc.js` and `.prettierignore`, we will create the
46
46
  <summary>File content of the `.prettierrc.js`</summary>
47
47
 
48
48
  ```js
49
- {
49
+ module.exports = {
50
+ // brackets are required for arrow function parameter, even when there is only one parameter
51
+ arrowParens: "always",
52
+ // spaces are required at the beginning and end of the braces
53
+ bracketSpacing: true,
54
+ // formats quoted code embedded
55
+ embeddedLanguageFormatting: "auto",
56
+ // lf for newline
57
+ endOfLine: "lf",
58
+ // decide whether to break the html according to the display style
59
+ htmlWhitespaceSensitivity: "css",
60
+ // No need to automatically insert @prettier at the beginning of the file
61
+ insertPragma: false,
62
+ // use double quotes instead of single quotes in jsx
63
+ jsxSingleQuote: false,
50
64
  // max 160 characters per line
51
65
  printWidth: 160,
52
- // use 4 spaces for indentation
53
- tabWidth: 4,
54
- // use spaces instead of indentations
55
- useTabs: false,
56
- // semicolon at the end of the line
57
- semi: true,
58
- // use single quotes
59
- singleQuote: false,
66
+ // use default break criteria
67
+ proseWrap: "preserve",
60
68
  // object's key is quoted only when necessary
61
69
  quoteProps: "as-needed",
62
- // use double quotes instead of single quotes in jsx
63
- jsxSingleQuote: false,
64
- // all comma at the end
65
- trailingComma: "all",
66
- // spaces are required at the beginning and end of the braces
67
- bracketSpacing: true,
68
- // brackets are required for arrow function parameter, even when there is only one parameter
69
- arrowParens: "always",
70
+ rangeEnd: Number.POSITIVE_INFINITY,
70
71
  // format the entire contents of the file
71
72
  rangeStart: 0,
72
- rangeEnd: Number.POSITIVE_INFINITY,
73
73
  // no need to write the beginning @prettier of the file
74
74
  requirePragma: false,
75
- // No need to automatically insert @prettier at the beginning of the file
76
- insertPragma: false,
77
- // use default break criteria
78
- proseWrap: "preserve",
79
- // decide whether to break the html according to the display style
80
- htmlWhitespaceSensitivity: "css",
75
+ // semicolon at the end of the line
76
+ semi: true,
77
+ // use single quotes
78
+ singleQuote: false,
79
+ // use 4 spaces for indentation
80
+ tabWidth: 4,
81
+ // all comma at the end
82
+ trailingComma: "all",
83
+ // use spaces instead of indentations
84
+ useTabs: false,
81
85
  // vue files script and style tags indentation
82
86
  vueIndentScriptAndStyle: false,
83
- // lf for newline
84
- endOfLine: "lf",
85
- // formats quoted code embedded
86
- embeddedLanguageFormatting: "auto",
87
87
  }
88
88
  ```
89
89
  </details>
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var e={arrowParens:"always",bracketSpacing:!0,embeddedLanguageFormatting:"auto",endOfLine:"lf",htmlWhitespaceSensitivity:"css",insertPragma:!1,jsxSingleQuote:!1,overrides:[{files:".eslintrc",options:{parser:"json"}},{files:".prettierrc",options:{parser:"json"}},{files:".stylelintrc",options:{parser:"json"}},{files:"package*.json",options:{printWidth:1e3}},{files:"*.yml",options:{singleQuote:!1}},{files:"*.yaml",options:{singleQuote:!1}}],printWidth:160,proseWrap:"preserve",quoteProps:"as-needed",rangeEnd:Number.POSITIVE_INFINITY,rangeStart:0,requirePragma:!1,semi:!0,singleQuote:!1,tabWidth:4,trailingComma:"all",useTabs:!1,vueIndentScriptAndStyle:!1},s=e;
4
+
5
+ exports.a = s;
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-3OYUO3P4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["config","src_default"],"mappings":"AAEA,IAAMA,EAAiB,CAEnB,YAAa,SAEb,eAAgB,GAEhB,2BAA4B,OAE5B,UAAW,KAEX,0BAA2B,MAE3B,aAAc,GAEd,eAAgB,GAChB,UAAW,CACP,CAAE,MAAO,YAAa,QAAS,CAAE,OAAQ,MAAO,CAAE,EAClD,CAAE,MAAO,cAAe,QAAS,CAAE,OAAQ,MAAO,CAAE,EACpD,CAAE,MAAO,eAAgB,QAAS,CAAE,OAAQ,MAAO,CAAE,EACrD,CAAE,MAAO,gBAAiB,QAAS,CAAE,WAAY,GAAK,CAAE,EACxD,CAAE,MAAO,QAAS,QAAS,CAAE,YAAa,EAAM,CAAE,EAClD,CAAE,MAAO,SAAU,QAAS,CAAE,YAAa,EAAM,CAAE,CACvD,EAEA,WAAY,IAEZ,UAAW,WAEX,WAAY,YACZ,SAAU,OAAO,kBAEjB,WAAY,EAEZ,cAAe,GAEf,KAAM,GAEN,YAAa,GAEb,SAAU,EAEV,cAAe,MAEf,QAAS,GAET,wBAAyB,EAC7B,EAEOC,EAAQD","sourcesContent":["import type { Config } from \"prettier\";\n\nconst config: Config = {\n // brackets are required for arrow function parameter, even when there is only one parameter\n arrowParens: \"always\",\n // spaces are required at the beginning and end of the braces\n bracketSpacing: true,\n // formats quoted code embedded\n embeddedLanguageFormatting: \"auto\",\n // lf for newline\n endOfLine: \"lf\",\n // decide whether to break the html according to the display style\n htmlWhitespaceSensitivity: \"css\",\n // No need to automatically insert @prettier at the beginning of the file\n insertPragma: false,\n // use double quotes instead of single quotes in jsx\n jsxSingleQuote: false,\n overrides: [\n { files: \".eslintrc\", options: { parser: \"json\" } },\n { files: \".prettierrc\", options: { parser: \"json\" } },\n { files: \".stylelintrc\", options: { parser: \"json\" } },\n { files: \"package*.json\", options: { printWidth: 1000 } },\n { files: \"*.yml\", options: { singleQuote: false } },\n { files: \"*.yaml\", options: { singleQuote: false } },\n ],\n // max 160 characters per line\n printWidth: 160,\n // use default break criteria\n proseWrap: \"preserve\",\n // object's key is quoted only when necessary\n quoteProps: \"as-needed\",\n rangeEnd: Number.POSITIVE_INFINITY,\n // format the entire contents of the file\n rangeStart: 0,\n // no need to write the beginning @prettier of the file\n requirePragma: false,\n // semicolon at the end of the line\n semi: true,\n // use single quotes\n singleQuote: false,\n // use 4 spaces for indentation\n tabWidth: 4,\n // all comma at the end\n trailingComma: \"all\",\n // use spaces instead of indentations\n useTabs: false,\n // vue files script and style tags indentation\n vueIndentScriptAndStyle: false,\n};\n\nexport default config;\n"]}
@@ -0,0 +1,5 @@
1
+ var e={arrowParens:"always",bracketSpacing:!0,embeddedLanguageFormatting:"auto",endOfLine:"lf",htmlWhitespaceSensitivity:"css",insertPragma:!1,jsxSingleQuote:!1,overrides:[{files:".eslintrc",options:{parser:"json"}},{files:".prettierrc",options:{parser:"json"}},{files:".stylelintrc",options:{parser:"json"}},{files:"package*.json",options:{printWidth:1e3}},{files:"*.yml",options:{singleQuote:!1}},{files:"*.yaml",options:{singleQuote:!1}}],printWidth:160,proseWrap:"preserve",quoteProps:"as-needed",rangeEnd:Number.POSITIVE_INFINITY,rangeStart:0,requirePragma:!1,semi:!0,singleQuote:!1,tabWidth:4,trailingComma:"all",useTabs:!1,vueIndentScriptAndStyle:!1},s=e;
2
+
3
+ export { s as a };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chunk-WDFZ7A7B.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["config","src_default"],"mappings":"AAEA,IAAMA,EAAiB,CAEnB,YAAa,SAEb,eAAgB,GAEhB,2BAA4B,OAE5B,UAAW,KAEX,0BAA2B,MAE3B,aAAc,GAEd,eAAgB,GAChB,UAAW,CACP,CAAE,MAAO,YAAa,QAAS,CAAE,OAAQ,MAAO,CAAE,EAClD,CAAE,MAAO,cAAe,QAAS,CAAE,OAAQ,MAAO,CAAE,EACpD,CAAE,MAAO,eAAgB,QAAS,CAAE,OAAQ,MAAO,CAAE,EACrD,CAAE,MAAO,gBAAiB,QAAS,CAAE,WAAY,GAAK,CAAE,EACxD,CAAE,MAAO,QAAS,QAAS,CAAE,YAAa,EAAM,CAAE,EAClD,CAAE,MAAO,SAAU,QAAS,CAAE,YAAa,EAAM,CAAE,CACvD,EAEA,WAAY,IAEZ,UAAW,WAEX,WAAY,YACZ,SAAU,OAAO,kBAEjB,WAAY,EAEZ,cAAe,GAEf,KAAM,GAEN,YAAa,GAEb,SAAU,EAEV,cAAe,MAEf,QAAS,GAET,wBAAyB,EAC7B,EAEOC,EAAQD","sourcesContent":["import type { Config } from \"prettier\";\n\nconst config: Config = {\n // brackets are required for arrow function parameter, even when there is only one parameter\n arrowParens: \"always\",\n // spaces are required at the beginning and end of the braces\n bracketSpacing: true,\n // formats quoted code embedded\n embeddedLanguageFormatting: \"auto\",\n // lf for newline\n endOfLine: \"lf\",\n // decide whether to break the html according to the display style\n htmlWhitespaceSensitivity: \"css\",\n // No need to automatically insert @prettier at the beginning of the file\n insertPragma: false,\n // use double quotes instead of single quotes in jsx\n jsxSingleQuote: false,\n overrides: [\n { files: \".eslintrc\", options: { parser: \"json\" } },\n { files: \".prettierrc\", options: { parser: \"json\" } },\n { files: \".stylelintrc\", options: { parser: \"json\" } },\n { files: \"package*.json\", options: { printWidth: 1000 } },\n { files: \"*.yml\", options: { singleQuote: false } },\n { files: \"*.yaml\", options: { singleQuote: false } },\n ],\n // max 160 characters per line\n printWidth: 160,\n // use default break criteria\n proseWrap: \"preserve\",\n // object's key is quoted only when necessary\n quoteProps: \"as-needed\",\n rangeEnd: Number.POSITIVE_INFINITY,\n // format the entire contents of the file\n rangeStart: 0,\n // no need to write the beginning @prettier of the file\n requirePragma: false,\n // semicolon at the end of the line\n semi: true,\n // use single quotes\n singleQuote: false,\n // use 4 spaces for indentation\n tabWidth: 4,\n // all comma at the end\n trailingComma: \"all\",\n // use spaces instead of indentations\n useTabs: false,\n // vue files script and style tags indentation\n vueIndentScriptAndStyle: false,\n};\n\nexport default config;\n"]}
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkWCJNF4E4_js = require('./chunk-WCJNF4E4.js');
3
+ var chunk3OYUO3P4_js = require('./chunk-3OYUO3P4.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunkWCJNF4E4_js.a;
7
+ module.exports = chunk3OYUO3P4_js.a;
8
8
  //# sourceMappingURL=out.js.map
9
9
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { a as default } from './chunk-DIYGXZU5.mjs';
1
+ export { a as default } from './chunk-WDFZ7A7B.mjs';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkWCJNF4E4_js = require('./chunk-WCJNF4E4.js');
3
+ var chunk3OYUO3P4_js = require('./chunk-3OYUO3P4.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
  var fs = require('fs');
6
6
  var path = require('path');
7
7
  var util = require('util');
8
8
 
9
9
  process.env.CI&&process.exit(0);var l=util.promisify(fs.writeFile);console.log("Configuring @anolilab/prettier-config",packageJsonUtils.projectPath,`
10
- `);var e=".prettierrc",g=()=>{for(let i of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.json5`,`${e}.yaml`,`${e}.yml`,`${e}.toml`,"prettier.config.js","prettier.config.cjs"])if(fs.existsSync(path.join(packageJsonUtils.projectPath,i)))return console.warn(`\u26A0\uFE0F ${i} already exists;
10
+ `);var e=".prettierrc",g=async()=>{for(let i of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.json5`,`${e}.yaml`,`${e}.yml`,`${e}.toml`,"prettier.config.js","prettier.config.cjs"])if(fs.existsSync(path.join(packageJsonUtils.projectPath,i))){console.warn(`\u26A0\uFE0F ${i} already exists;
11
11
  Make sure that it includes the following for @anolilab/prettier-config to work as it should:
12
- ${JSON.stringify(chunkWCJNF4E4_js.a,void 0,4)}
13
- `),Promise.resolve();let r=path.join(packageJsonUtils.projectPath,".prettierrc.js");return l(r,`${packageJsonUtils.packageIsTypeModule?'import config from "@anolilab/prettier-config";':'var config = require("@anolilab/prettier-config");'}
12
+ ${JSON.stringify(chunk3OYUO3P4_js.a,void 0,4)}
13
+ `);return}let r=path.join(packageJsonUtils.projectPath,".prettierrc.js");await l(r,`${packageJsonUtils.packageIsTypeModule?'import config from "@anolilab/prettier-config";':'var config = require("@anolilab/prettier-config");'}
14
14
 
15
15
  ${packageJsonUtils.packageIsTypeModule?"export default":"module.exports ="} {
16
16
  ...config,
17
17
  }
18
- `,"utf8")},p=()=>{let r=path.join(packageJsonUtils.projectPath,".prettierignore");return fs.existsSync(r)?(console.warn("\u26A0\uFE0F .prettierignore already exists"),Promise.resolve()):l(r,`${["*.md","*.sh","*.yml","*.svg","*.gif","*.log",".DS_Store","CNAME","AUTHORS","LICENSE","es/","lib/","dist/","coverage/"].join(`
18
+ `,"utf8");},p=async()=>{let r=path.join(packageJsonUtils.projectPath,".prettierignore");if(fs.existsSync(r)){console.warn("\u26A0\uFE0F .prettierignore already exists");return}await l(r,`${["*.md","*.sh","*.yml","*.svg","*.gif","*.log",".DS_Store","CNAME","AUTHORS","LICENSE","es/","lib/","dist/","coverage/"].join(`
19
19
  `)}
20
- `,"utf8")};(async()=>{try{await Promise.all([g(),p()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(r){console.log("\u{1F62C} something went wrong:"),console.error(r),process.exit(1);}})();
20
+ `,"utf8");};(async()=>{try{await Promise.all([g(),p()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(r){console.log("\u{1F62C} something went wrong:"),console.error(r),process.exit(1);}})();
21
21
  //# sourceMappingURL=out.js.map
22
22
  //# sourceMappingURL=postinstall.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","configFile","writePrettierRc","filename","src_default","prettierPath","writePrettierIgnore","error"],"mappings":"wCAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAItB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,wCAAyCF,EAAa;AAAA,CAAI,EAEtE,IAAMM,EAAa,cAKbC,EAAkB,IAAM,CAE1B,QAAWC,IAAY,CACnBF,EACA,GAAGA,OACH,GAAGA,QACH,GAAGA,SACH,GAAGA,UACH,GAAGA,SACH,GAAGA,QACH,GAAGA,SACH,qBACA,qBACJ,EACI,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EACtC,eAAQ,KAAK,iBAAOA;AAAA;AAAA,EAE9B,KAAK,UAAUC,EAAS,OAAW,CAAC;AAAA,CAAK,EAExB,QAAQ,QAAQ,EAI/B,IAAMC,EAAeP,EAAKH,EAAa,gBAAgB,EAEvD,OAAOK,EACHK,EACA,GAAGX,EAAsB,kDAAoD;AAAA;AAAA,EAEnFA,EAAsB,iBAAmB;AAAA;AAAA;AAAA,EAInC,MACJ,CACJ,EAKMY,EAAsB,IAAM,CAC9B,IAAMD,EAAeP,EAAKH,EAAa,iBAAiB,EAExD,OAAIC,EAAWS,CAAY,GACvB,QAAQ,KAAK,8CAAoC,EAE1C,QAAQ,QAAQ,GAGpBL,EACHK,EACA,GAAG,CAAC,OAAQ,OAAQ,QAAS,QAAS,QAAS,QAAS,YAAa,QAAS,UAAW,UAAW,MAAO,OAAQ,QAAS,WAAW,EAAE,KAAK;AAAA,CAAI;AAAA,EAClJ,MACJ,CACJ,GAGC,SAAY,CACT,GAAI,CAEA,MAAM,QAAQ,IAAI,CAACH,EAAgB,EAAGI,EAAoB,CAAC,CAAC,EAE5D,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASC,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport content from \".\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/prettier-config\", projectPath, \"\\n\");\n\nconst configFile = \".prettierrc\";\n\n/**\n * Writes .prettierrc.${m|c}js if it doesn't exist. Warns if it exists.\n */\nconst writePrettierRc = () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [\n configFile,\n `${configFile}.js`,\n `${configFile}.cjs`,\n `${configFile}.json`,\n `${configFile}.json5`,\n `${configFile}.yaml`,\n `${configFile}.yml`,\n `${configFile}.toml`,\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n ]) {\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/prettier-config to work as it should:\n${JSON.stringify(content, undefined, 4)}\\n`);\n\n return Promise.resolve();\n }\n }\n\n const prettierPath = join(projectPath, \".prettierrc.js\");\n\n return writeFileAsync(\n prettierPath,\n `${packageIsTypeModule ? 'import config from \"@anolilab/prettier-config\";' : 'var config = require(\"@anolilab/prettier-config\");'}\n\n${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n ...config,\n}\n`,\n \"utf8\",\n );\n};\n\n/**\n * Writes .prettierignore if it doesn't exist. Warns if it exists.\n */\nconst writePrettierIgnore = () => {\n const prettierPath = join(projectPath, \".prettierignore\");\n\n if (existsSync(prettierPath)) {\n console.warn(\"⚠️ .prettierignore already exists\");\n\n return Promise.resolve();\n }\n\n return writeFileAsync(\n prettierPath,\n `${[\"*.md\", \"*.sh\", \"*.yml\", \"*.svg\", \"*.gif\", \"*.log\", \".DS_Store\", \"CNAME\", \"AUTHORS\", \"LICENSE\", \"es/\", \"lib/\", \"dist/\", \"coverage/\"].join(\"\\n\")}\\n`,\n \"utf8\",\n );\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writePrettierRc(), writePrettierIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
1
+ {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","configFile","writePrettierRc","filename","src_default","prettierPath","writePrettierIgnore","error"],"mappings":"wCAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAItB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,wCAAyCF,EAAa;AAAA,CAAI,EAEtE,IAAMM,EAAa,cAKbC,EAAkB,SAAY,CAEhC,QAAWC,IAAY,CACnBF,EACA,GAAGA,CAAU,MACb,GAAGA,CAAU,OACb,GAAGA,CAAU,QACb,GAAGA,CAAU,SACb,GAAGA,CAAU,QACb,GAAGA,CAAU,OACb,GAAGA,CAAU,QACb,qBACA,qBACJ,EAEI,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EAAG,CACzC,QAAQ,KAAK,iBAAOA,CAAQ;AAAA;AAAA,EAEtC,KAAK,UAAUC,EAAS,OAAW,CAAC,CAAC;AAAA,CAAI,EAE/B,MACJ,CAGJ,IAAMC,EAAeP,EAAKH,EAAa,gBAAgB,EAEvD,MAAMK,EACFK,EACA,GAAGX,EAAsB,kDAAoD,oDAAoD;AAAA;AAAA,EAEvIA,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA,EAIrD,MACJ,CACJ,EAKMY,EAAsB,SAAY,CACpC,IAAMD,EAAeP,EAAKH,EAAa,iBAAiB,EAGxD,GAAIC,EAAWS,CAAY,EAAG,CAC1B,QAAQ,KAAK,8CAAoC,EAEjD,MACJ,CAEA,MAAML,EACFK,EACA,GAAG,CAAC,OAAQ,OAAQ,QAAS,QAAS,QAAS,QAAS,YAAa,QAAS,UAAW,UAAW,MAAO,OAAQ,QAAS,WAAW,EAAE,KAAK;AAAA,CAAI,CAAC;AAAA,EACnJ,MACJ,CACJ,GAGC,SAAY,CACT,GAAI,CAEA,MAAM,QAAQ,IAAI,CAACH,EAAgB,EAAGI,EAAoB,CAAC,CAAC,EAE5D,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASC,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport content from \".\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/prettier-config\", projectPath, \"\\n\");\n\nconst configFile = \".prettierrc\";\n\n/**\n * Writes .prettierrc.${m|c}js if it doesn't exist. Warns if it exists.\n */\nconst writePrettierRc = async () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [\n configFile,\n `${configFile}.js`,\n `${configFile}.cjs`,\n `${configFile}.json`,\n `${configFile}.json5`,\n `${configFile}.yaml`,\n `${configFile}.yml`,\n `${configFile}.toml`,\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n ]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/prettier-config to work as it should:\n${JSON.stringify(content, undefined, 4)}\\n`);\n\n return;\n }\n }\n\n const prettierPath = join(projectPath, \".prettierrc.js\");\n\n await writeFileAsync(\n prettierPath,\n `${packageIsTypeModule ? 'import config from \"@anolilab/prettier-config\";' : 'var config = require(\"@anolilab/prettier-config\");'}\n\n${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n ...config,\n}\n`,\n \"utf8\",\n );\n};\n\n/**\n * Writes .prettierignore if it doesn't exist. Warns if it exists.\n */\nconst writePrettierIgnore = async () => {\n const prettierPath = join(projectPath, \".prettierignore\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(prettierPath)) {\n console.warn(\"⚠️ .prettierignore already exists\");\n\n return;\n }\n\n await writeFileAsync(\n prettierPath,\n `${[\"*.md\", \"*.sh\", \"*.yml\", \"*.svg\", \"*.gif\", \"*.log\", \".DS_Store\", \"CNAME\", \"AUTHORS\", \"LICENSE\", \"es/\", \"lib/\", \"dist/\", \"coverage/\"].join(\"\\n\")}\\n`,\n \"utf8\",\n );\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writePrettierRc(), writePrettierIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
@@ -1,20 +1,20 @@
1
- import { a } from './chunk-DIYGXZU5.mjs';
1
+ import { a } from './chunk-WDFZ7A7B.mjs';
2
2
  import { projectPath, packageIsTypeModule } from '@anolilab/package-json-utils';
3
3
  import { writeFile, existsSync } from 'fs';
4
4
  import { join } from 'path';
5
5
  import { promisify } from 'util';
6
6
 
7
7
  process.env.CI&&process.exit(0);var l=promisify(writeFile);console.log("Configuring @anolilab/prettier-config",projectPath,`
8
- `);var e=".prettierrc",g=()=>{for(let i of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.json5`,`${e}.yaml`,`${e}.yml`,`${e}.toml`,"prettier.config.js","prettier.config.cjs"])if(existsSync(join(projectPath,i)))return console.warn(`\u26A0\uFE0F ${i} already exists;
8
+ `);var e=".prettierrc",g=async()=>{for(let i of [e,`${e}.js`,`${e}.cjs`,`${e}.json`,`${e}.json5`,`${e}.yaml`,`${e}.yml`,`${e}.toml`,"prettier.config.js","prettier.config.cjs"])if(existsSync(join(projectPath,i))){console.warn(`\u26A0\uFE0F ${i} already exists;
9
9
  Make sure that it includes the following for @anolilab/prettier-config to work as it should:
10
10
  ${JSON.stringify(a,void 0,4)}
11
- `),Promise.resolve();let r=join(projectPath,".prettierrc.js");return l(r,`${packageIsTypeModule?'import config from "@anolilab/prettier-config";':'var config = require("@anolilab/prettier-config");'}
11
+ `);return}let r=join(projectPath,".prettierrc.js");await l(r,`${packageIsTypeModule?'import config from "@anolilab/prettier-config";':'var config = require("@anolilab/prettier-config");'}
12
12
 
13
13
  ${packageIsTypeModule?"export default":"module.exports ="} {
14
14
  ...config,
15
15
  }
16
- `,"utf8")},p=()=>{let r=join(projectPath,".prettierignore");return existsSync(r)?(console.warn("\u26A0\uFE0F .prettierignore already exists"),Promise.resolve()):l(r,`${["*.md","*.sh","*.yml","*.svg","*.gif","*.log",".DS_Store","CNAME","AUTHORS","LICENSE","es/","lib/","dist/","coverage/"].join(`
16
+ `,"utf8");},p=async()=>{let r=join(projectPath,".prettierignore");if(existsSync(r)){console.warn("\u26A0\uFE0F .prettierignore already exists");return}await l(r,`${["*.md","*.sh","*.yml","*.svg","*.gif","*.log",".DS_Store","CNAME","AUTHORS","LICENSE","es/","lib/","dist/","coverage/"].join(`
17
17
  `)}
18
- `,"utf8")};(async()=>{try{await Promise.all([g(),p()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(r){console.log("\u{1F62C} something went wrong:"),console.error(r),process.exit(1);}})();
18
+ `,"utf8");};(async()=>{try{await Promise.all([g(),p()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(r){console.log("\u{1F62C} something went wrong:"),console.error(r),process.exit(1);}})();
19
19
  //# sourceMappingURL=out.js.map
20
20
  //# sourceMappingURL=postinstall.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","configFile","writePrettierRc","filename","src_default","prettierPath","writePrettierIgnore","error"],"mappings":"yCAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAItB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,wCAAyCF,EAAa;AAAA,CAAI,EAEtE,IAAMM,EAAa,cAKbC,EAAkB,IAAM,CAE1B,QAAWC,IAAY,CACnBF,EACA,GAAGA,OACH,GAAGA,QACH,GAAGA,SACH,GAAGA,UACH,GAAGA,SACH,GAAGA,QACH,GAAGA,SACH,qBACA,qBACJ,EACI,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EACtC,eAAQ,KAAK,iBAAOA;AAAA;AAAA,EAE9B,KAAK,UAAUC,EAAS,OAAW,CAAC;AAAA,CAAK,EAExB,QAAQ,QAAQ,EAI/B,IAAMC,EAAeP,EAAKH,EAAa,gBAAgB,EAEvD,OAAOK,EACHK,EACA,GAAGX,EAAsB,kDAAoD;AAAA;AAAA,EAEnFA,EAAsB,iBAAmB;AAAA;AAAA;AAAA,EAInC,MACJ,CACJ,EAKMY,EAAsB,IAAM,CAC9B,IAAMD,EAAeP,EAAKH,EAAa,iBAAiB,EAExD,OAAIC,EAAWS,CAAY,GACvB,QAAQ,KAAK,8CAAoC,EAE1C,QAAQ,QAAQ,GAGpBL,EACHK,EACA,GAAG,CAAC,OAAQ,OAAQ,QAAS,QAAS,QAAS,QAAS,YAAa,QAAS,UAAW,UAAW,MAAO,OAAQ,QAAS,WAAW,EAAE,KAAK;AAAA,CAAI;AAAA,EAClJ,MACJ,CACJ,GAGC,SAAY,CACT,GAAI,CAEA,MAAM,QAAQ,IAAI,CAACH,EAAgB,EAAGI,EAAoB,CAAC,CAAC,EAE5D,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASC,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport content from \".\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/prettier-config\", projectPath, \"\\n\");\n\nconst configFile = \".prettierrc\";\n\n/**\n * Writes .prettierrc.${m|c}js if it doesn't exist. Warns if it exists.\n */\nconst writePrettierRc = () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [\n configFile,\n `${configFile}.js`,\n `${configFile}.cjs`,\n `${configFile}.json`,\n `${configFile}.json5`,\n `${configFile}.yaml`,\n `${configFile}.yml`,\n `${configFile}.toml`,\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n ]) {\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/prettier-config to work as it should:\n${JSON.stringify(content, undefined, 4)}\\n`);\n\n return Promise.resolve();\n }\n }\n\n const prettierPath = join(projectPath, \".prettierrc.js\");\n\n return writeFileAsync(\n prettierPath,\n `${packageIsTypeModule ? 'import config from \"@anolilab/prettier-config\";' : 'var config = require(\"@anolilab/prettier-config\");'}\n\n${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n ...config,\n}\n`,\n \"utf8\",\n );\n};\n\n/**\n * Writes .prettierignore if it doesn't exist. Warns if it exists.\n */\nconst writePrettierIgnore = () => {\n const prettierPath = join(projectPath, \".prettierignore\");\n\n if (existsSync(prettierPath)) {\n console.warn(\"⚠️ .prettierignore already exists\");\n\n return Promise.resolve();\n }\n\n return writeFileAsync(\n prettierPath,\n `${[\"*.md\", \"*.sh\", \"*.yml\", \"*.svg\", \"*.gif\", \"*.log\", \".DS_Store\", \"CNAME\", \"AUTHORS\", \"LICENSE\", \"es/\", \"lib/\", \"dist/\", \"coverage/\"].join(\"\\n\")}\\n`,\n \"utf8\",\n );\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writePrettierRc(), writePrettierIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
1
+ {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","configFile","writePrettierRc","filename","src_default","prettierPath","writePrettierIgnore","error"],"mappings":"yCAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAItB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,wCAAyCF,EAAa;AAAA,CAAI,EAEtE,IAAMM,EAAa,cAKbC,EAAkB,SAAY,CAEhC,QAAWC,IAAY,CACnBF,EACA,GAAGA,CAAU,MACb,GAAGA,CAAU,OACb,GAAGA,CAAU,QACb,GAAGA,CAAU,SACb,GAAGA,CAAU,QACb,GAAGA,CAAU,OACb,GAAGA,CAAU,QACb,qBACA,qBACJ,EAEI,GAAIL,EAAWE,EAAKH,EAAaQ,CAAQ,CAAC,EAAG,CACzC,QAAQ,KAAK,iBAAOA,CAAQ;AAAA;AAAA,EAEtC,KAAK,UAAUC,EAAS,OAAW,CAAC,CAAC;AAAA,CAAI,EAE/B,MACJ,CAGJ,IAAMC,EAAeP,EAAKH,EAAa,gBAAgB,EAEvD,MAAMK,EACFK,EACA,GAAGX,EAAsB,kDAAoD,oDAAoD;AAAA;AAAA,EAEvIA,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA,EAIrD,MACJ,CACJ,EAKMY,EAAsB,SAAY,CACpC,IAAMD,EAAeP,EAAKH,EAAa,iBAAiB,EAGxD,GAAIC,EAAWS,CAAY,EAAG,CAC1B,QAAQ,KAAK,8CAAoC,EAEjD,MACJ,CAEA,MAAML,EACFK,EACA,GAAG,CAAC,OAAQ,OAAQ,QAAS,QAAS,QAAS,QAAS,YAAa,QAAS,UAAW,UAAW,MAAO,OAAQ,QAAS,WAAW,EAAE,KAAK;AAAA,CAAI,CAAC;AAAA,EACnJ,MACJ,CACJ,GAGC,SAAY,CACT,GAAI,CAEA,MAAM,QAAQ,IAAI,CAACH,EAAgB,EAAGI,EAAoB,CAAC,CAAC,EAE5D,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASC,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport content from \".\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/prettier-config\", projectPath, \"\\n\");\n\nconst configFile = \".prettierrc\";\n\n/**\n * Writes .prettierrc.${m|c}js if it doesn't exist. Warns if it exists.\n */\nconst writePrettierRc = async () => {\n // eslint-disable-next-line no-restricted-syntax\n for (const filename of [\n configFile,\n `${configFile}.js`,\n `${configFile}.cjs`,\n `${configFile}.json`,\n `${configFile}.json5`,\n `${configFile}.yaml`,\n `${configFile}.yml`,\n `${configFile}.toml`,\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n ]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/prettier-config to work as it should:\n${JSON.stringify(content, undefined, 4)}\\n`);\n\n return;\n }\n }\n\n const prettierPath = join(projectPath, \".prettierrc.js\");\n\n await writeFileAsync(\n prettierPath,\n `${packageIsTypeModule ? 'import config from \"@anolilab/prettier-config\";' : 'var config = require(\"@anolilab/prettier-config\");'}\n\n${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n ...config,\n}\n`,\n \"utf8\",\n );\n};\n\n/**\n * Writes .prettierignore if it doesn't exist. Warns if it exists.\n */\nconst writePrettierIgnore = async () => {\n const prettierPath = join(projectPath, \".prettierignore\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(prettierPath)) {\n console.warn(\"⚠️ .prettierignore already exists\");\n\n return;\n }\n\n await writeFileAsync(\n prettierPath,\n `${[\"*.md\", \"*.sh\", \"*.yml\", \"*.svg\", \"*.gif\", \"*.log\", \".DS_Store\", \"CNAME\", \"AUTHORS\", \"LICENSE\", \"es/\", \"lib/\", \"dist/\", \"coverage/\"].join(\"\\n\")}\\n`,\n \"utf8\",\n );\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writePrettierRc(), writePrettierIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/prettier-config",
3
- "version": "4.1.3",
3
+ "version": "4.2.1",
4
4
  "description": "Prettier shareable config for Anolilab.",
5
5
  "keywords": [
6
6
  "css",
@@ -56,14 +56,15 @@
56
56
  "postinstall": "node ./skip.js || node ./dist/postinstall.js"
57
57
  },
58
58
  "dependencies": {
59
- "@anolilab/package-json-utils": "1.5.1"
59
+ "@anolilab/package-json-utils": "2.0.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@anolilab/semantic-release-preset": "4.0.3",
62
+ "@anolilab/semantic-release-preset": "5.0.1",
63
63
  "prettier": "^2.8.8",
64
- "semantic-release": "^21.0.5",
64
+ "rimraf": "^5.0.1",
65
+ "semantic-release": "^21.0.6",
65
66
  "tsup": "^7.1.0",
66
- "vitest": "^0.32.2"
67
+ "vitest": "^0.32.4"
67
68
  },
68
69
  "peerDependencies": {
69
70
  "prettier": "2.x"
@@ -1,5 +0,0 @@
1
- var e={printWidth:160,tabWidth:4,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"all",bracketSpacing:!0,arrowParens:"always",rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",overrides:[{files:".eslintrc",options:{parser:"json"}},{files:".prettierrc",options:{parser:"json"}},{files:".stylelintrc",options:{parser:"json"}},{files:"package*.json",options:{printWidth:1e3}},{files:"*.yml",options:{singleQuote:!1}},{files:"*.yaml",options:{singleQuote:!1}}]},s=e;
2
-
3
- export { s as a };
4
- //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-DIYGXZU5.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["config","src_default"],"mappings":"AAEA,IAAMA,EAAiB,CAEnB,WAAY,IAEZ,SAAU,EAEV,QAAS,GAET,KAAM,GAEN,YAAa,GAEb,WAAY,YAEZ,eAAgB,GAEhB,cAAe,MAEf,eAAgB,GAEhB,YAAa,SAEb,WAAY,EACZ,SAAU,OAAO,kBAEjB,cAAe,GAEf,aAAc,GAEd,UAAW,WAEX,0BAA2B,MAE3B,wBAAyB,GAEzB,UAAW,KAEX,2BAA4B,OAC5B,UAAW,CACP,CAAE,MAAO,YAAa,QAAS,CAAE,OAAQ,MAAO,CAAE,EAClD,CAAE,MAAO,cAAe,QAAS,CAAE,OAAQ,MAAO,CAAE,EACpD,CAAE,MAAO,eAAgB,QAAS,CAAE,OAAQ,MAAO,CAAE,EACrD,CAAE,MAAO,gBAAiB,QAAS,CAAE,WAAY,GAAK,CAAE,EACxD,CAAE,MAAO,QAAS,QAAS,CAAE,YAAa,EAAM,CAAE,EAClD,CAAE,MAAO,SAAU,QAAS,CAAE,YAAa,EAAM,CAAE,CACvD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Config } from \"prettier\";\n\nconst config: Config = {\n // max 160 characters per line\n printWidth: 160,\n // use 4 spaces for indentation\n tabWidth: 4,\n // use spaces instead of indentations\n useTabs: false,\n // semicolon at the end of the line\n semi: true,\n // use single quotes\n singleQuote: false,\n // object's key is quoted only when necessary\n quoteProps: \"as-needed\",\n // use double quotes instead of single quotes in jsx\n jsxSingleQuote: false,\n // all comma at the end\n trailingComma: \"all\",\n // spaces are required at the beginning and end of the braces\n bracketSpacing: true,\n // brackets are required for arrow function parameter, even when there is only one parameter\n arrowParens: \"always\",\n // format the entire contents of the file\n rangeStart: 0,\n rangeEnd: Number.POSITIVE_INFINITY,\n // no need to write the beginning @prettier of the file\n requirePragma: false,\n // No need to automatically insert @prettier at the beginning of the file\n insertPragma: false,\n // use default break criteria\n proseWrap: \"preserve\",\n // decide whether to break the html according to the display style\n htmlWhitespaceSensitivity: \"css\",\n // vue files script and style tags indentation\n vueIndentScriptAndStyle: false,\n // lf for newline\n endOfLine: \"lf\",\n // formats quoted code embedded\n embeddedLanguageFormatting: \"auto\",\n overrides: [\n { files: \".eslintrc\", options: { parser: \"json\" } },\n { files: \".prettierrc\", options: { parser: \"json\" } },\n { files: \".stylelintrc\", options: { parser: \"json\" } },\n { files: \"package*.json\", options: { printWidth: 1000 } },\n { files: \"*.yml\", options: { singleQuote: false } },\n { files: \"*.yaml\", options: { singleQuote: false } },\n ],\n};\n\nexport default config;\n"]}
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- var e={printWidth:160,tabWidth:4,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"all",bracketSpacing:!0,arrowParens:"always",rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",overrides:[{files:".eslintrc",options:{parser:"json"}},{files:".prettierrc",options:{parser:"json"}},{files:".stylelintrc",options:{parser:"json"}},{files:"package*.json",options:{printWidth:1e3}},{files:"*.yml",options:{singleQuote:!1}},{files:"*.yaml",options:{singleQuote:!1}}]},s=e;
4
-
5
- exports.a = s;
6
- //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-WCJNF4E4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["config","src_default"],"mappings":"AAEA,IAAMA,EAAiB,CAEnB,WAAY,IAEZ,SAAU,EAEV,QAAS,GAET,KAAM,GAEN,YAAa,GAEb,WAAY,YAEZ,eAAgB,GAEhB,cAAe,MAEf,eAAgB,GAEhB,YAAa,SAEb,WAAY,EACZ,SAAU,OAAO,kBAEjB,cAAe,GAEf,aAAc,GAEd,UAAW,WAEX,0BAA2B,MAE3B,wBAAyB,GAEzB,UAAW,KAEX,2BAA4B,OAC5B,UAAW,CACP,CAAE,MAAO,YAAa,QAAS,CAAE,OAAQ,MAAO,CAAE,EAClD,CAAE,MAAO,cAAe,QAAS,CAAE,OAAQ,MAAO,CAAE,EACpD,CAAE,MAAO,eAAgB,QAAS,CAAE,OAAQ,MAAO,CAAE,EACrD,CAAE,MAAO,gBAAiB,QAAS,CAAE,WAAY,GAAK,CAAE,EACxD,CAAE,MAAO,QAAS,QAAS,CAAE,YAAa,EAAM,CAAE,EAClD,CAAE,MAAO,SAAU,QAAS,CAAE,YAAa,EAAM,CAAE,CACvD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Config } from \"prettier\";\n\nconst config: Config = {\n // max 160 characters per line\n printWidth: 160,\n // use 4 spaces for indentation\n tabWidth: 4,\n // use spaces instead of indentations\n useTabs: false,\n // semicolon at the end of the line\n semi: true,\n // use single quotes\n singleQuote: false,\n // object's key is quoted only when necessary\n quoteProps: \"as-needed\",\n // use double quotes instead of single quotes in jsx\n jsxSingleQuote: false,\n // all comma at the end\n trailingComma: \"all\",\n // spaces are required at the beginning and end of the braces\n bracketSpacing: true,\n // brackets are required for arrow function parameter, even when there is only one parameter\n arrowParens: \"always\",\n // format the entire contents of the file\n rangeStart: 0,\n rangeEnd: Number.POSITIVE_INFINITY,\n // no need to write the beginning @prettier of the file\n requirePragma: false,\n // No need to automatically insert @prettier at the beginning of the file\n insertPragma: false,\n // use default break criteria\n proseWrap: \"preserve\",\n // decide whether to break the html according to the display style\n htmlWhitespaceSensitivity: \"css\",\n // vue files script and style tags indentation\n vueIndentScriptAndStyle: false,\n // lf for newline\n endOfLine: \"lf\",\n // formats quoted code embedded\n embeddedLanguageFormatting: \"auto\",\n overrides: [\n { files: \".eslintrc\", options: { parser: \"json\" } },\n { files: \".prettierrc\", options: { parser: \"json\" } },\n { files: \".stylelintrc\", options: { parser: \"json\" } },\n { files: \"package*.json\", options: { printWidth: 1000 } },\n { files: \"*.yml\", options: { singleQuote: false } },\n { files: \"*.yaml\", options: { singleQuote: false } },\n ],\n};\n\nexport default config;\n"]}