@dt-frames/prettier-config 3.0.1 → 4.0.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/package.json +36 -36
- package/dist/index.cjs +0 -47
- package/dist/index.d.ts +0 -23
- package/dist/index.mjs +0 -45
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dt-frames/prettier-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "关于代码美化的配置封装",
|
|
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
|
-
"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dt-frames/prettier-config",
|
|
3
|
+
"version": "4.0.1",
|
|
4
|
+
"description": "关于代码美化的配置封装",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dt-frames",
|
|
7
|
+
"prettier-config"
|
|
8
|
+
],
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"author": "jhon",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "pnpm unbuild"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"main": "./index.mjs",
|
|
18
|
+
"module": "./index.mjs",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./index.mjs",
|
|
22
|
+
"default": "./index.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"registry": "https://registry.npmjs.org/"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"prettier": "catalog:",
|
|
31
|
+
"prettier-plugin-tailwindcss": "catalog:"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"unbuild": "catalog:"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/dist/index.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = {
|
|
4
|
-
// 代码结尾是否加分号
|
|
5
|
-
semi: false,
|
|
6
|
-
// 使用4个空格缩进
|
|
7
|
-
tabWidth: 4,
|
|
8
|
-
// 代码末尾不需要逗号
|
|
9
|
-
trailingComma: "none",
|
|
10
|
-
// 文件换行格式
|
|
11
|
-
endOfLine: "auto",
|
|
12
|
-
// 超过多少字符强制换行
|
|
13
|
-
printWidth: 120,
|
|
14
|
-
// 是否使用单引号
|
|
15
|
-
singleQuote: true,
|
|
16
|
-
vueIndentScriptAndStyle: true,
|
|
17
|
-
// 单个参数的箭头函数不加括号 x => x
|
|
18
|
-
arrowParens: "avoid",
|
|
19
|
-
// 对象大括号内两边是否加空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// 不使用缩进符,而使用空格
|
|
22
|
-
useTabs: true,
|
|
23
|
-
// 对象的key仅在必要时用引号
|
|
24
|
-
quoteProps: "as-needed",
|
|
25
|
-
// jsx不使用单引号,而使用双引号
|
|
26
|
-
jsxSingleQuote: true,
|
|
27
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
28
|
-
rangeStart: 0,
|
|
29
|
-
// 结尾
|
|
30
|
-
rangeEnd: Infinity,
|
|
31
|
-
// 不需要写文件开头的 @prettier
|
|
32
|
-
requirePragma: false,
|
|
33
|
-
// // 不需要自动在文件开头插入 @prettier
|
|
34
|
-
insertPragma: false,
|
|
35
|
-
// 使用默认的折行标准
|
|
36
|
-
proseWrap: "preserve",
|
|
37
|
-
// 解决尖括号自动占一行
|
|
38
|
-
htmlWhitespaceSensitivity: "ignore",
|
|
39
|
-
plugins: [
|
|
40
|
-
// import 排序 组合 去除无用
|
|
41
|
-
"prettier-plugin-organize-imports",
|
|
42
|
-
// package.json 里面的 key 好好排序
|
|
43
|
-
"prettier-plugin-packagejson"
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
module.exports = index;
|
package/dist/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
semi: boolean;
|
|
3
|
-
tabWidth: number;
|
|
4
|
-
trailingComma: string;
|
|
5
|
-
endOfLine: string;
|
|
6
|
-
printWidth: number;
|
|
7
|
-
singleQuote: boolean;
|
|
8
|
-
vueIndentScriptAndStyle: boolean;
|
|
9
|
-
arrowParens: string;
|
|
10
|
-
bracketSpacing: boolean;
|
|
11
|
-
useTabs: boolean;
|
|
12
|
-
quoteProps: string;
|
|
13
|
-
jsxSingleQuote: boolean;
|
|
14
|
-
rangeStart: number;
|
|
15
|
-
rangeEnd: number;
|
|
16
|
-
requirePragma: boolean;
|
|
17
|
-
insertPragma: boolean;
|
|
18
|
-
proseWrap: string;
|
|
19
|
-
htmlWhitespaceSensitivity: string;
|
|
20
|
-
plugins: string[];
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { _default as default };
|
package/dist/index.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const index = {
|
|
2
|
-
// 代码结尾是否加分号
|
|
3
|
-
semi: false,
|
|
4
|
-
// 使用4个空格缩进
|
|
5
|
-
tabWidth: 4,
|
|
6
|
-
// 代码末尾不需要逗号
|
|
7
|
-
trailingComma: "none",
|
|
8
|
-
// 文件换行格式
|
|
9
|
-
endOfLine: "auto",
|
|
10
|
-
// 超过多少字符强制换行
|
|
11
|
-
printWidth: 120,
|
|
12
|
-
// 是否使用单引号
|
|
13
|
-
singleQuote: true,
|
|
14
|
-
vueIndentScriptAndStyle: true,
|
|
15
|
-
// 单个参数的箭头函数不加括号 x => x
|
|
16
|
-
arrowParens: "avoid",
|
|
17
|
-
// 对象大括号内两边是否加空格
|
|
18
|
-
bracketSpacing: true,
|
|
19
|
-
// 不使用缩进符,而使用空格
|
|
20
|
-
useTabs: true,
|
|
21
|
-
// 对象的key仅在必要时用引号
|
|
22
|
-
quoteProps: "as-needed",
|
|
23
|
-
// jsx不使用单引号,而使用双引号
|
|
24
|
-
jsxSingleQuote: true,
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
// 结尾
|
|
28
|
-
rangeEnd: Infinity,
|
|
29
|
-
// 不需要写文件开头的 @prettier
|
|
30
|
-
requirePragma: false,
|
|
31
|
-
// // 不需要自动在文件开头插入 @prettier
|
|
32
|
-
insertPragma: false,
|
|
33
|
-
// 使用默认的折行标准
|
|
34
|
-
proseWrap: "preserve",
|
|
35
|
-
// 解决尖括号自动占一行
|
|
36
|
-
htmlWhitespaceSensitivity: "ignore",
|
|
37
|
-
plugins: [
|
|
38
|
-
// import 排序 组合 去除无用
|
|
39
|
-
"prettier-plugin-organize-imports",
|
|
40
|
-
// package.json 里面的 key 好好排序
|
|
41
|
-
"prettier-plugin-packagejson"
|
|
42
|
-
]
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { index as default };
|