@w5s/prettier-config 2.0.20 → 2.0.23

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,20 @@
1
+ 'use strict';
2
+
3
+ // src/index.ts
4
+ var prettierConfig = {
5
+ singleQuote: true,
6
+ trailingComma: "es5",
7
+ overrides: [
8
+ {
9
+ files: ["*.css", "*.scss"],
10
+ options: {
11
+ trailingComma: "none"
12
+ }
13
+ }
14
+ ]
15
+ };
16
+ var src_default = prettierConfig;
17
+
18
+ module.exports = src_default;
19
+ //# sourceMappingURL=index.cjs.map
20
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,IAAM,cAAyB,GAAA;AAAA,EAC7B,WAAa,EAAA,IAAA;AAAA,EACb,aAAe,EAAA,KAAA;AAAA,EACf,SAAW,EAAA;AAAA,IACT;AAAA,MACE,KAAA,EAAO,CAAC,OAAA,EAAS,QAAQ,CAAA;AAAA,MACzB,OAAS,EAAA;AAAA,QACP,aAAe,EAAA,MAAA;AAAA,OACjB;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEA,IAAO,WAAQ,GAAA","file":"index.cjs","sourcesContent":["import type { Config } from 'prettier';\n\nconst prettierConfig: Config = {\n singleQuote: true,\n trailingComma: 'es5',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n\nexport default prettierConfig;\n"]}
@@ -0,0 +1,5 @@
1
+ import { Config } from 'prettier';
2
+
3
+ declare const prettierConfig: Config;
4
+
5
+ export { prettierConfig as default };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
- import type { Config } from 'prettier';
1
+ import { Config } from 'prettier';
2
+
2
3
  declare const prettierConfig: Config;
3
- export default prettierConfig;
4
+
5
+ export { prettierConfig as default };
package/dist/index.js CHANGED
@@ -1,15 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const prettierConfig = {
4
- singleQuote: true,
5
- trailingComma: 'es5',
6
- overrides: [
7
- {
8
- files: ['*.css', '*.scss'],
9
- options: {
10
- trailingComma: 'none',
11
- },
12
- },
13
- ],
1
+ // src/index.ts
2
+ var prettierConfig = {
3
+ singleQuote: true,
4
+ trailingComma: "es5",
5
+ overrides: [
6
+ {
7
+ files: ["*.css", "*.scss"],
8
+ options: {
9
+ trailingComma: "none"
10
+ }
11
+ }
12
+ ]
14
13
  };
15
- exports.default = prettierConfig;
14
+ var src_default = prettierConfig;
15
+
16
+ export { src_default as default };
17
+ //# sourceMappingURL=index.js.map
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAEA,IAAM,cAAyB,GAAA;AAAA,EAC7B,WAAa,EAAA,IAAA;AAAA,EACb,aAAe,EAAA,KAAA;AAAA,EACf,SAAW,EAAA;AAAA,IACT;AAAA,MACE,KAAA,EAAO,CAAC,OAAA,EAAS,QAAQ,CAAA;AAAA,MACzB,OAAS,EAAA;AAAA,QACP,aAAe,EAAA,MAAA;AAAA,OACjB;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEA,IAAO,WAAQ,GAAA","file":"index.js","sourcesContent":["import type { Config } from 'prettier';\n\nconst prettierConfig: Config = {\n singleQuote: true,\n trailingComma: 'es5',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n\nexport default prettierConfig;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/prettier-config",
3
- "version": "2.0.20",
3
+ "version": "2.0.23",
4
4
  "description": "Prettier shared configuration",
5
5
  "keywords": [
6
6
  "typescript",
@@ -18,12 +18,20 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "author": "Julien Polo <julien.polo@gmail.com>",
21
- "type": "commonjs",
21
+ "type": "module",
22
22
  "exports": {
23
- ".": "./index.js",
23
+ ".": {
24
+ "require": {
25
+ "types": "./dist/index.d.cts",
26
+ "default": "./dist/index.cjs"
27
+ },
28
+ "import": {
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.js"
31
+ }
32
+ },
24
33
  "./dist/*": "./dist/*"
25
34
  },
26
- "typings": "./index.d.ts",
27
35
  "files": [
28
36
  "dist/",
29
37
  "src/",
@@ -50,5 +58,5 @@
50
58
  "publishConfig": {
51
59
  "access": "public"
52
60
  },
53
- "gitHead": "114c1aa56da01c4ad5cc775ff4df717eb90614b4"
61
+ "gitHead": "fa1eddaa132e97c9bfd33437a6bb4aa3bfcdaa7c"
54
62
  }
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import Config from './lib/index.js';
2
-
3
- export = Config;
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/index.js').default;