@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 +1 -2
- package/dist/index.js +32 -36
- package/package.json +11 -21
- package/dist/index.cjs +0 -58
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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.
|
|
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
|
-
"
|
|
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": "
|
|
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": "
|
|
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@
|
|
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;
|