@shahrad/prettier-config 1.2.0 → 1.2.2

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.d.ts CHANGED
@@ -27,5 +27,4 @@ declare const DEFAULT_CONFIG: {
27
27
  importOrderParserPlugins: ("explicitResourceManagement" | "jsx" | "typescript")[];
28
28
  plugins: string[];
29
29
  };
30
-
31
- export { DEFAULT_CONFIG as default };
30
+ export default DEFAULT_CONFIG;
package/dist/index.js CHANGED
@@ -1,37 +1,33 @@
1
- // index.ts
2
- var DEFAULT_CONFIG = {
3
- useTabs: false,
4
- semi: true,
5
- singleQuote: true,
6
- jsxSingleQuote: true,
7
- trailingComma: "es5",
8
- endOfLine: "lf",
9
- printWidth: 100,
10
- overrides: [
11
- {
12
- files: "*.md",
13
- options: {
14
- tabWidth: 2,
15
- useTabs: false,
16
- printWidth: 79
17
- }
18
- },
19
- {
20
- files: ["Dockerfile", "*.dockerfile"],
21
- options: {
22
- spaceRedirects: false
23
- }
24
- }
25
- ],
26
- importOrder: ["node:*", "<THIRD_PARTY_MODULES>", "", "^@/(.*)$", "^@/tests/(.*)$", "", "^[./]"],
27
- importOrderParserPlugins: ["typescript", "jsx", "explicitResourceManagement"],
28
- plugins: [
29
- "@ianvs/prettier-plugin-sort-imports",
30
- "prettier-plugin-packagejson",
31
- "prettier-plugin-sh"
32
- ]
33
- };
34
- var index_default = DEFAULT_CONFIG;
35
- export {
36
- index_default as default
1
+ const DEFAULT_CONFIG = {
2
+ useTabs: false,
3
+ semi: true,
4
+ singleQuote: true,
5
+ jsxSingleQuote: true,
6
+ trailingComma: 'es5',
7
+ endOfLine: 'lf',
8
+ printWidth: 100,
9
+ overrides: [
10
+ {
11
+ files: '*.md',
12
+ options: {
13
+ tabWidth: 2,
14
+ useTabs: false,
15
+ printWidth: 79,
16
+ },
17
+ },
18
+ {
19
+ files: ['Dockerfile', '*.dockerfile'],
20
+ options: {
21
+ spaceRedirects: false,
22
+ },
23
+ },
24
+ ],
25
+ importOrder: ['node:*', '<THIRD_PARTY_MODULES>', '', '^@/(.*)$', '^@/tests/(.*)$', '', '^[./]'],
26
+ importOrderParserPlugins: ['typescript', 'jsx', 'explicitResourceManagement'],
27
+ plugins: [
28
+ '@ianvs/prettier-plugin-sort-imports',
29
+ 'prettier-plugin-packagejson',
30
+ 'prettier-plugin-sh',
31
+ ],
37
32
  };
33
+ export default DEFAULT_CONFIG;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shahrad/prettier-config",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "My personal Prettier config",
5
5
  "homepage": "https://github.com/shahradelahi/prettier-config#readme",
6
6
  "repository": {
@@ -10,46 +10,36 @@
10
10
  "license": "MIT",
11
11
  "author": "Shahrad Elahi <shahrad@litehex.com> (https://github.com/shahradelahi)",
12
12
  "type": "module",
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js",
17
- "require": "./dist/index.cjs"
18
- }
19
- },
20
- "main": "dist/index.cjs",
21
- "module": "dist/index.js",
13
+ "main": "dist/index.js",
22
14
  "types": "dist/index.d.ts",
23
15
  "files": [
24
16
  "dist/**",
25
17
  "!*.d.cts"
26
18
  ],
27
19
  "scripts": {
28
- "build": "tsup --dts-resolve --format cjs,esm index.ts",
20
+ "build": "git clean -xdf dist && tsc",
29
21
  "clean": "git clean -xdf node_modules dist",
30
22
  "format": "prettier --write .",
31
23
  "format:check": "prettier --check .",
32
24
  "lint": "eslint .",
33
25
  "lint:fix": "eslint --fix .",
34
- "prepublishOnly": "pnpm lint && pnpm format:check"
35
- },
36
- "dependencies": {
37
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
38
- "prettier-plugin-packagejson": "^2.5.8",
39
- "prettier-plugin-sh": "^0.14.0"
26
+ "prepublishOnly": "pnpm lint && pnpm build && pnpm format:check"
40
27
  },
41
28
  "devDependencies": {
42
29
  "@shahrad/eslint-config": "^1.0.0",
43
30
  "@sindresorhus/tsconfig": "^7.0.0",
44
31
  "eslint": "^9.21.0",
45
- "tsup": "^8.3.6",
46
32
  "typescript": "^5.7.3"
47
33
  },
48
34
  "peerDependencies": {
49
- "prettier": ">=3.0.0"
35
+ "@ianvs/prettier-plugin-sort-imports": "^4.4",
36
+ "prettier": ">=3.0.0",
37
+ "prettier-plugin-packagejson": "^2.5",
38
+ "prettier-plugin-sh": "^0.15"
50
39
  },
51
- "packageManager": "pnpm@9.15.5",
40
+ "packageManager": "pnpm@10.6.3",
52
41
  "publishConfig": {
53
- "access": "public"
42
+ "access": "public",
43
+ "provenance": true
54
44
  }
55
45
  }
package/dist/index.cjs DELETED
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- default: () => index_default
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
- var DEFAULT_CONFIG = {
27
- useTabs: false,
28
- semi: true,
29
- singleQuote: true,
30
- jsxSingleQuote: true,
31
- trailingComma: "es5",
32
- endOfLine: "lf",
33
- printWidth: 100,
34
- overrides: [
35
- {
36
- files: "*.md",
37
- options: {
38
- tabWidth: 2,
39
- useTabs: false,
40
- printWidth: 79
41
- }
42
- },
43
- {
44
- files: ["Dockerfile", "*.dockerfile"],
45
- options: {
46
- spaceRedirects: false
47
- }
48
- }
49
- ],
50
- importOrder: ["node:*", "<THIRD_PARTY_MODULES>", "", "^@/(.*)$", "^@/tests/(.*)$", "", "^[./]"],
51
- importOrderParserPlugins: ["typescript", "jsx", "explicitResourceManagement"],
52
- plugins: [
53
- "@ianvs/prettier-plugin-sort-imports",
54
- "prettier-plugin-packagejson",
55
- "prettier-plugin-sh"
56
- ]
57
- };
58
- var index_default = DEFAULT_CONFIG;