@w5s/prettier-config 3.1.15 → 3.1.16

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/README.md CHANGED
@@ -31,8 +31,11 @@ Or in the `.prettierrc.js`, to be able to override rules
31
31
 
32
32
  <!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=```js\nmodule.exports = {\n ...require('${name}'),\n // Override rules\n};\n```) -->
33
33
  ```js
34
- module.exports = {
35
- ...require('@w5s/prettier-config'),
34
+ import prettierConfig from '@w5s/prettier-config';
35
+
36
+ /** @type {import("prettier").Options} */
37
+ export default {
38
+ ...prettierConfig,
36
39
  // Override rules
37
40
  };
38
41
  ```
package/dist/index.cjs CHANGED
@@ -2,23 +2,23 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- //#region src/meta.ts
6
- const meta = Object.freeze({
7
- name: "@w5s/prettier-config",
8
- version: "3.1.15",
9
- buildNumber: 1
10
- });
11
- //#endregion
12
5
  //#region src/config.ts
13
6
  const config = {
14
- singleQuote: true,
15
- trailingComma: "all",
16
7
  overrides: [{
17
8
  files: ["*.css", "*.scss"],
18
9
  options: { trailingComma: "none" }
19
- }]
10
+ }],
11
+ singleQuote: true,
12
+ trailingComma: "all"
20
13
  };
21
14
  //#endregion
15
+ //#region src/meta.ts
16
+ const meta = Object.freeze({
17
+ buildNumber: 1,
18
+ name: "@w5s/prettier-config",
19
+ version: "3.1.16"
20
+ });
21
+ //#endregion
22
22
  exports.default = config;
23
23
  exports.meta = meta;
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { Config } from 'prettier';\n\nexport const config: Config = {\n singleQuote: true,\n trailingComma: 'all',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n"],"mappings":";;;;;AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;AACf,CAAC;;;ACLD,MAAa,SAAiB;CAC5B,aAAa;CACb,eAAe;CACf,WAAW,CACT;EACE,OAAO,CAAC,SAAS,QAAQ;EACzB,SAAS,EACP,eAAe,OACjB;CACF,CACF;AACF"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/config.ts","../src/meta.ts"],"sourcesContent":["import type { Config } from 'prettier';\n\nexport const config: Config = {\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n singleQuote: true,\n trailingComma: 'all',\n};\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n});\n"],"mappings":";;;;;AAEA,MAAa,SAAiB;CAC5B,WAAW,CACT;EACE,OAAO,CAAC,SAAS,QAAQ;EACzB,SAAS,EACP,eAAe,OACjB;CACF,CACF;CACA,aAAa;CACb,eAAe;AACjB;;;ACbA,MAAa,OAAO,OAAO,OAAO;CAEhC,aAAa;CAEb,MAAA;CAEA,SAAA;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Config } from "prettier";
2
2
 
3
+ //#region src/config.d.ts
4
+ declare const config: Config;
5
+ //#endregion
3
6
  //#region src/meta.d.ts
4
7
  declare const meta: Readonly<{
8
+ buildNumber: number;
5
9
  name: string;
6
10
  version: string;
7
- buildNumber: number;
8
11
  }>;
9
12
  //#endregion
10
- //#region src/config.d.ts
11
- declare const config: Config;
12
- //#endregion
13
13
  export { config as default, meta };
14
14
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Config } from "prettier";
2
2
 
3
+ //#region src/config.d.ts
4
+ declare const config: Config;
5
+ //#endregion
3
6
  //#region src/meta.d.ts
4
7
  declare const meta: Readonly<{
8
+ buildNumber: number;
5
9
  name: string;
6
10
  version: string;
7
- buildNumber: number;
8
11
  }>;
9
12
  //#endregion
10
- //#region src/config.d.ts
11
- declare const config: Config;
12
- //#endregion
13
13
  export { config as default, meta };
14
14
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- //#region src/meta.ts
2
- const meta = Object.freeze({
3
- name: "@w5s/prettier-config",
4
- version: "3.1.15",
5
- buildNumber: 1
6
- });
7
- //#endregion
8
1
  //#region src/config.ts
9
2
  const config = {
10
- singleQuote: true,
11
- trailingComma: "all",
12
3
  overrides: [{
13
4
  files: ["*.css", "*.scss"],
14
5
  options: { trailingComma: "none" }
15
- }]
6
+ }],
7
+ singleQuote: true,
8
+ trailingComma: "all"
16
9
  };
17
10
  //#endregion
11
+ //#region src/meta.ts
12
+ const meta = Object.freeze({
13
+ buildNumber: 1,
14
+ name: "@w5s/prettier-config",
15
+ version: "3.1.16"
16
+ });
17
+ //#endregion
18
18
  export { config as default, meta };
19
19
 
20
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { Config } from 'prettier';\n\nexport const config: Config = {\n singleQuote: true,\n trailingComma: 'all',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n"],"mappings":";AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;AACf,CAAC;;;ACLD,MAAa,SAAiB;CAC5B,aAAa;CACb,eAAe;CACf,WAAW,CACT;EACE,OAAO,CAAC,SAAS,QAAQ;EACzB,SAAS,EACP,eAAe,OACjB;CACF,CACF;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/config.ts","../src/meta.ts"],"sourcesContent":["import type { Config } from 'prettier';\n\nexport const config: Config = {\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n singleQuote: true,\n trailingComma: 'all',\n};\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n});\n"],"mappings":";AAEA,MAAa,SAAiB;CAC5B,WAAW,CACT;EACE,OAAO,CAAC,SAAS,QAAQ;EACzB,SAAS,EACP,eAAe,OACjB;CACF,CACF;CACA,aAAa;CACb,eAAe;AACjB;;;ACbA,MAAa,OAAO,OAAO,OAAO;CAEhC,aAAa;CAEb,MAAA;CAEA,SAAA;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/prettier-config",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "description": "Prettier shared configuration",
5
5
  "keywords": [
6
6
  "typescript",
@@ -53,5 +53,5 @@
53
53
  "access": "public"
54
54
  },
55
55
  "sideEffect": false,
56
- "gitHead": "fcde4af12d29afdb46ed396ef832c36a399ed057"
56
+ "gitHead": "e6c63e0164ce2199e59bdca360f4766b6a78584d"
57
57
  }
package/src/config.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import type { Config } from 'prettier';
2
2
 
3
3
  export const config: Config = {
4
- singleQuote: true,
5
- trailingComma: 'all',
6
4
  overrides: [
7
5
  {
8
6
  files: ['*.css', '*.scss'],
@@ -11,4 +9,6 @@ export const config: Config = {
11
9
  },
12
10
  },
13
11
  ],
12
+ singleQuote: true,
13
+ trailingComma: 'all',
14
14
  };
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './meta.js';
2
1
  export { config as default } from './config.js';
2
+ export * from './meta.js';
package/src/meta.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export const meta = Object.freeze({
2
+ // @ts-ignore - these variables are injected at build time
3
+ buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,
2
4
  // @ts-ignore - these variables are injected at build time
3
5
  name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,
4
6
  // @ts-ignore - these variables are injected at build time
5
7
  version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,
6
- // @ts-ignore - these variables are injected at build time
7
- buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,
8
8
  });