@irfanshadikrishad/prettier 1.1.0 → 1.2.0
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/index.js +18 -2
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const config = {
|
|
|
8
8
|
semi: false,
|
|
9
9
|
singleQuote: true,
|
|
10
10
|
jsxSingleQuote: true,
|
|
11
|
-
useTabs:
|
|
11
|
+
useTabs: false, // uses space instead of tabs (fixes the github indent issue)
|
|
12
12
|
quoteProps: "consistent",
|
|
13
13
|
bracketSpacing: true,
|
|
14
14
|
objectWrap: "preserve",
|
|
@@ -23,8 +23,24 @@ const config = {
|
|
|
23
23
|
embeddedLanguageFormatting: "auto",
|
|
24
24
|
singleAttributePerLine: false,
|
|
25
25
|
vueIndentScriptAndStyle: true,
|
|
26
|
-
plugins: [
|
|
26
|
+
plugins: [
|
|
27
|
+
"prettier-plugin-organize-imports",
|
|
28
|
+
"prettier-plugin-jsdoc",
|
|
29
|
+
"prettier-plugin-packagejson",
|
|
30
|
+
"prettier-plugin-tailwindcss", // MUST come last (limitation)
|
|
31
|
+
],
|
|
27
32
|
organizeImportsSkipDestructiveCodeActions: false,
|
|
33
|
+
tailwindFunctions: ["clsx", "tw"],
|
|
34
|
+
tailwindPreserveDuplicates: false,
|
|
35
|
+
tsdoc: true,
|
|
36
|
+
packageSortOrder: [
|
|
37
|
+
"name",
|
|
38
|
+
"description",
|
|
39
|
+
"version",
|
|
40
|
+
"author",
|
|
41
|
+
"license",
|
|
42
|
+
"scripts",
|
|
43
|
+
],
|
|
28
44
|
};
|
|
29
45
|
|
|
30
46
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@irfanshadikrishad/prettier",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Standard Prettier Configuration.",
|
|
5
5
|
"author": "Irfan Shadik Rishad",
|
|
6
6
|
"license": "ISC",
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"prettier"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"prettier-plugin-
|
|
36
|
+
"prettier-plugin-jsdoc": "^1.3.3",
|
|
37
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
38
|
+
"prettier-plugin-packagejson": "^2.5.19",
|
|
39
|
+
"prettier-plugin-tailwindcss": "^0.6.14"
|
|
37
40
|
}
|
|
38
41
|
}
|