prettier-config-nick2bad4u 1.0.4
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/.prettierrc +246 -0
- package/.prettierrc.json +246 -0
- package/LICENSE +21 -0
- package/README.md +72 -0
- package/index.d.ts +6 -0
- package/package.json +153 -0
- package/preset.mjs +5 -0
package/.prettierrc
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/prettierrc.json",
|
|
3
|
+
"arrowParens": "always",
|
|
4
|
+
"bracketSameLine": false,
|
|
5
|
+
"bracketSpacing": true,
|
|
6
|
+
"checkIgnorePragma": false,
|
|
7
|
+
"cursorOffset": -1,
|
|
8
|
+
"embeddedLanguageFormatting": "auto",
|
|
9
|
+
"endOfLine": "auto",
|
|
10
|
+
"experimentalOperatorPosition": "end",
|
|
11
|
+
"experimentalTernaries": false,
|
|
12
|
+
"htmlWhitespaceSensitivity": "css",
|
|
13
|
+
"insertPragma": false,
|
|
14
|
+
"jsxSingleQuote": false,
|
|
15
|
+
"multilineArraysWrapThreshold": 2,
|
|
16
|
+
"objectWrap": "preserve",
|
|
17
|
+
"overrides": [
|
|
18
|
+
{
|
|
19
|
+
"files": [
|
|
20
|
+
"*.js",
|
|
21
|
+
"*.jsx",
|
|
22
|
+
"*.ts",
|
|
23
|
+
"*.tsx",
|
|
24
|
+
"*.mjs",
|
|
25
|
+
"*.cjs"
|
|
26
|
+
],
|
|
27
|
+
"options": {
|
|
28
|
+
"endOfLine": "lf",
|
|
29
|
+
"jsdocBracketSpacing": false,
|
|
30
|
+
"jsdocCapitalizeDescription": true,
|
|
31
|
+
"jsdocCommentLineStrategy": "keep",
|
|
32
|
+
"jsdocDescriptionTag": false,
|
|
33
|
+
"jsdocDescriptionWithDot": false,
|
|
34
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
35
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
36
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
37
|
+
"jsdocPreferCodeFences": true,
|
|
38
|
+
"jsdocPrintWidth": 80,
|
|
39
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
40
|
+
"jsdocSeparateTagGroups": true,
|
|
41
|
+
"jsdocSpaces": 1,
|
|
42
|
+
"jsdocVerticalAlignment": false,
|
|
43
|
+
"plugins": [
|
|
44
|
+
"prettier-plugin-jsdoc",
|
|
45
|
+
"prettier-plugin-interpolated-html-tags",
|
|
46
|
+
"@softonus/prettier-plugin-duplicate-remover",
|
|
47
|
+
"prettier-plugin-multiline-arrays",
|
|
48
|
+
"prettier-plugin-merge"
|
|
49
|
+
],
|
|
50
|
+
"tsdoc": true,
|
|
51
|
+
"useTabs": false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"files": "tsconfig.*",
|
|
56
|
+
"options": {
|
|
57
|
+
"endOfLine": "lf",
|
|
58
|
+
"jsonRecursiveSort": false,
|
|
59
|
+
"jsonSortOrder": "{\"*\": \"numeric\"}",
|
|
60
|
+
"plugins": [
|
|
61
|
+
"prettier-plugin-multiline-arrays",
|
|
62
|
+
"prettier-plugin-sort-json"
|
|
63
|
+
],
|
|
64
|
+
"useTabs": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"files": "*.html",
|
|
69
|
+
"options": {
|
|
70
|
+
"htmlWhitespaceSensitivity": "strict",
|
|
71
|
+
"plugins": [
|
|
72
|
+
"prettier-plugin-multiline-arrays",
|
|
73
|
+
"@softonus/prettier-plugin-duplicate-remover"
|
|
74
|
+
],
|
|
75
|
+
"printWidth": 80,
|
|
76
|
+
"singleAttributePerLine": true,
|
|
77
|
+
"useTabs": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"files": "*.user.js",
|
|
82
|
+
"options": {
|
|
83
|
+
"endOfLine": "lf",
|
|
84
|
+
"printWidth": 80,
|
|
85
|
+
"useTabs": false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"files": "*.md",
|
|
90
|
+
"options": {
|
|
91
|
+
"endOfLine": "lf",
|
|
92
|
+
"jsdocBracketSpacing": false,
|
|
93
|
+
"jsdocCapitalizeDescription": true,
|
|
94
|
+
"jsdocCommentLineStrategy": "keep",
|
|
95
|
+
"jsdocDescriptionTag": false,
|
|
96
|
+
"jsdocDescriptionWithDot": false,
|
|
97
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
98
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
99
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
100
|
+
"jsdocPreferCodeFences": true,
|
|
101
|
+
"jsdocPrintWidth": 80,
|
|
102
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
103
|
+
"jsdocSeparateTagGroups": true,
|
|
104
|
+
"jsdocSpaces": 1,
|
|
105
|
+
"jsdocVerticalAlignment": false,
|
|
106
|
+
"plugins": [
|
|
107
|
+
"prettier-plugin-multiline-arrays",
|
|
108
|
+
"prettier-plugin-jsdoc"
|
|
109
|
+
],
|
|
110
|
+
"tabWidth": 1,
|
|
111
|
+
"useTabs": false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"files": "*.mdx",
|
|
116
|
+
"options": {
|
|
117
|
+
"endOfLine": "lf",
|
|
118
|
+
"jsdocBracketSpacing": false,
|
|
119
|
+
"jsdocCapitalizeDescription": true,
|
|
120
|
+
"jsdocCommentLineStrategy": "keep",
|
|
121
|
+
"jsdocDescriptionTag": false,
|
|
122
|
+
"jsdocDescriptionWithDot": false,
|
|
123
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
124
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
125
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
126
|
+
"jsdocPreferCodeFences": true,
|
|
127
|
+
"jsdocPrintWidth": 80,
|
|
128
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
129
|
+
"jsdocSeparateTagGroups": true,
|
|
130
|
+
"jsdocSpaces": 1,
|
|
131
|
+
"jsdocVerticalAlignment": false,
|
|
132
|
+
"plugins": [
|
|
133
|
+
"prettier-plugin-multiline-arrays",
|
|
134
|
+
"prettier-plugin-jsdoc"
|
|
135
|
+
],
|
|
136
|
+
"printWidth": 100,
|
|
137
|
+
"tabWidth": 2,
|
|
138
|
+
"useTabs": false
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"files": "*.toml",
|
|
143
|
+
"options": {
|
|
144
|
+
"endOfLine": "lf",
|
|
145
|
+
"plugins": [
|
|
146
|
+
"prettier-plugin-multiline-arrays",
|
|
147
|
+
"prettier-plugin-toml"
|
|
148
|
+
],
|
|
149
|
+
"printWidth": 120,
|
|
150
|
+
"tabWidth": 4,
|
|
151
|
+
"useTabs": false
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"files": [
|
|
156
|
+
"*.json",
|
|
157
|
+
"**/.prettierrc",
|
|
158
|
+
"**/.htmlhintrc"
|
|
159
|
+
],
|
|
160
|
+
"options": {
|
|
161
|
+
"endOfLine": "lf",
|
|
162
|
+
"jsonRecursiveSort": false,
|
|
163
|
+
"jsonSortOrder": "{\"*\": \"numeric\"}",
|
|
164
|
+
"plugins": [
|
|
165
|
+
"prettier-plugin-sort-json",
|
|
166
|
+
"prettier-plugin-multiline-arrays"
|
|
167
|
+
],
|
|
168
|
+
"useTabs": false
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"files": "*.sql",
|
|
173
|
+
"options": {
|
|
174
|
+
"endOfLine": "lf",
|
|
175
|
+
"language": "sqlite",
|
|
176
|
+
"plugins": [
|
|
177
|
+
"prettier-plugin-multiline-arrays",
|
|
178
|
+
"prettier-plugin-sql"
|
|
179
|
+
],
|
|
180
|
+
"useTabs": false
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"files": "*.sh",
|
|
185
|
+
"options": {
|
|
186
|
+
"endOfLine": "lf",
|
|
187
|
+
"plugins": [
|
|
188
|
+
"prettier-plugin-multiline-arrays",
|
|
189
|
+
"prettier-plugin-sh"
|
|
190
|
+
],
|
|
191
|
+
"useTabs": false
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"files": "*.properties",
|
|
196
|
+
"options": {
|
|
197
|
+
"endOfLine": "lf",
|
|
198
|
+
"escapeNonLatin1": false,
|
|
199
|
+
"plugins": [
|
|
200
|
+
"prettier-plugin-multiline-arrays",
|
|
201
|
+
"prettier-plugin-properties"
|
|
202
|
+
],
|
|
203
|
+
"useTabs": false
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"files": "*.ini",
|
|
208
|
+
"options": {
|
|
209
|
+
"endOfLine": "lf",
|
|
210
|
+
"iniSpaceAroundEquals": true,
|
|
211
|
+
"keySeparator": " = ",
|
|
212
|
+
"plugins": [
|
|
213
|
+
"prettier-plugin-multiline-arrays",
|
|
214
|
+
"prettier-plugin-ini"
|
|
215
|
+
],
|
|
216
|
+
"useTabs": false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"files": "**/package.json, **/package-lock.json",
|
|
221
|
+
"options": {
|
|
222
|
+
"endOfLine": "lf",
|
|
223
|
+
"plugins": [
|
|
224
|
+
"prettier-plugin-multiline-arrays",
|
|
225
|
+
"prettier-plugin-packagejson"
|
|
226
|
+
],
|
|
227
|
+
"tabWidth": 2,
|
|
228
|
+
"useTabs": false
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"plugins": [
|
|
233
|
+
"prettier-plugin-multiline-arrays"
|
|
234
|
+
],
|
|
235
|
+
"printWidth": 80,
|
|
236
|
+
"proseWrap": "preserve",
|
|
237
|
+
"quoteProps": "as-needed",
|
|
238
|
+
"requirePragma": false,
|
|
239
|
+
"semi": true,
|
|
240
|
+
"singleAttributePerLine": false,
|
|
241
|
+
"singleQuote": false,
|
|
242
|
+
"tabWidth": 4,
|
|
243
|
+
"trailingComma": "es5",
|
|
244
|
+
"useTabs": false,
|
|
245
|
+
"vueIndentScriptAndStyle": false
|
|
246
|
+
}
|
package/.prettierrc.json
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/prettierrc.json",
|
|
3
|
+
"arrowParens": "always",
|
|
4
|
+
"bracketSameLine": false,
|
|
5
|
+
"bracketSpacing": true,
|
|
6
|
+
"checkIgnorePragma": false,
|
|
7
|
+
"cursorOffset": -1,
|
|
8
|
+
"embeddedLanguageFormatting": "auto",
|
|
9
|
+
"endOfLine": "auto",
|
|
10
|
+
"experimentalOperatorPosition": "end",
|
|
11
|
+
"experimentalTernaries": false,
|
|
12
|
+
"htmlWhitespaceSensitivity": "css",
|
|
13
|
+
"insertPragma": false,
|
|
14
|
+
"jsxSingleQuote": false,
|
|
15
|
+
"multilineArraysWrapThreshold": 2,
|
|
16
|
+
"objectWrap": "preserve",
|
|
17
|
+
"overrides": [
|
|
18
|
+
{
|
|
19
|
+
"files": [
|
|
20
|
+
"*.js",
|
|
21
|
+
"*.jsx",
|
|
22
|
+
"*.ts",
|
|
23
|
+
"*.tsx",
|
|
24
|
+
"*.mjs",
|
|
25
|
+
"*.cjs"
|
|
26
|
+
],
|
|
27
|
+
"options": {
|
|
28
|
+
"endOfLine": "lf",
|
|
29
|
+
"jsdocBracketSpacing": false,
|
|
30
|
+
"jsdocCapitalizeDescription": true,
|
|
31
|
+
"jsdocCommentLineStrategy": "keep",
|
|
32
|
+
"jsdocDescriptionTag": false,
|
|
33
|
+
"jsdocDescriptionWithDot": false,
|
|
34
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
35
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
36
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
37
|
+
"jsdocPreferCodeFences": true,
|
|
38
|
+
"jsdocPrintWidth": 80,
|
|
39
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
40
|
+
"jsdocSeparateTagGroups": true,
|
|
41
|
+
"jsdocSpaces": 1,
|
|
42
|
+
"jsdocVerticalAlignment": false,
|
|
43
|
+
"plugins": [
|
|
44
|
+
"prettier-plugin-jsdoc",
|
|
45
|
+
"prettier-plugin-interpolated-html-tags",
|
|
46
|
+
"@softonus/prettier-plugin-duplicate-remover",
|
|
47
|
+
"prettier-plugin-multiline-arrays",
|
|
48
|
+
"prettier-plugin-merge"
|
|
49
|
+
],
|
|
50
|
+
"tsdoc": true,
|
|
51
|
+
"useTabs": false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"files": "tsconfig.*",
|
|
56
|
+
"options": {
|
|
57
|
+
"endOfLine": "lf",
|
|
58
|
+
"jsonRecursiveSort": false,
|
|
59
|
+
"jsonSortOrder": "{\"*\": \"numeric\"}",
|
|
60
|
+
"plugins": [
|
|
61
|
+
"prettier-plugin-multiline-arrays",
|
|
62
|
+
"prettier-plugin-sort-json"
|
|
63
|
+
],
|
|
64
|
+
"useTabs": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"files": "*.html",
|
|
69
|
+
"options": {
|
|
70
|
+
"htmlWhitespaceSensitivity": "strict",
|
|
71
|
+
"plugins": [
|
|
72
|
+
"prettier-plugin-multiline-arrays",
|
|
73
|
+
"@softonus/prettier-plugin-duplicate-remover"
|
|
74
|
+
],
|
|
75
|
+
"printWidth": 80,
|
|
76
|
+
"singleAttributePerLine": true,
|
|
77
|
+
"useTabs": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"files": "*.user.js",
|
|
82
|
+
"options": {
|
|
83
|
+
"endOfLine": "lf",
|
|
84
|
+
"printWidth": 80,
|
|
85
|
+
"useTabs": false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"files": "*.md",
|
|
90
|
+
"options": {
|
|
91
|
+
"endOfLine": "lf",
|
|
92
|
+
"jsdocBracketSpacing": false,
|
|
93
|
+
"jsdocCapitalizeDescription": true,
|
|
94
|
+
"jsdocCommentLineStrategy": "keep",
|
|
95
|
+
"jsdocDescriptionTag": false,
|
|
96
|
+
"jsdocDescriptionWithDot": false,
|
|
97
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
98
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
99
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
100
|
+
"jsdocPreferCodeFences": true,
|
|
101
|
+
"jsdocPrintWidth": 80,
|
|
102
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
103
|
+
"jsdocSeparateTagGroups": true,
|
|
104
|
+
"jsdocSpaces": 1,
|
|
105
|
+
"jsdocVerticalAlignment": false,
|
|
106
|
+
"plugins": [
|
|
107
|
+
"prettier-plugin-multiline-arrays",
|
|
108
|
+
"prettier-plugin-jsdoc"
|
|
109
|
+
],
|
|
110
|
+
"tabWidth": 1,
|
|
111
|
+
"useTabs": false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"files": "*.mdx",
|
|
116
|
+
"options": {
|
|
117
|
+
"endOfLine": "lf",
|
|
118
|
+
"jsdocBracketSpacing": false,
|
|
119
|
+
"jsdocCapitalizeDescription": true,
|
|
120
|
+
"jsdocCommentLineStrategy": "keep",
|
|
121
|
+
"jsdocDescriptionTag": false,
|
|
122
|
+
"jsdocDescriptionWithDot": false,
|
|
123
|
+
"jsdocEmptyCommentStrategy": "keep",
|
|
124
|
+
"jsdocKeepUnParseAbleExampleIndent": false,
|
|
125
|
+
"jsdocLineWrappingStyle": "greedy",
|
|
126
|
+
"jsdocPreferCodeFences": true,
|
|
127
|
+
"jsdocPrintWidth": 80,
|
|
128
|
+
"jsdocSeparateReturnsFromParam": true,
|
|
129
|
+
"jsdocSeparateTagGroups": true,
|
|
130
|
+
"jsdocSpaces": 1,
|
|
131
|
+
"jsdocVerticalAlignment": false,
|
|
132
|
+
"plugins": [
|
|
133
|
+
"prettier-plugin-multiline-arrays",
|
|
134
|
+
"prettier-plugin-jsdoc"
|
|
135
|
+
],
|
|
136
|
+
"printWidth": 100,
|
|
137
|
+
"tabWidth": 2,
|
|
138
|
+
"useTabs": false
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"files": "*.toml",
|
|
143
|
+
"options": {
|
|
144
|
+
"endOfLine": "lf",
|
|
145
|
+
"plugins": [
|
|
146
|
+
"prettier-plugin-multiline-arrays",
|
|
147
|
+
"prettier-plugin-toml"
|
|
148
|
+
],
|
|
149
|
+
"printWidth": 120,
|
|
150
|
+
"tabWidth": 4,
|
|
151
|
+
"useTabs": false
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"files": [
|
|
156
|
+
"*.json",
|
|
157
|
+
"**/.prettierrc",
|
|
158
|
+
"**/.htmlhintrc"
|
|
159
|
+
],
|
|
160
|
+
"options": {
|
|
161
|
+
"endOfLine": "lf",
|
|
162
|
+
"jsonRecursiveSort": false,
|
|
163
|
+
"jsonSortOrder": "{\"*\": \"numeric\"}",
|
|
164
|
+
"plugins": [
|
|
165
|
+
"prettier-plugin-sort-json",
|
|
166
|
+
"prettier-plugin-multiline-arrays"
|
|
167
|
+
],
|
|
168
|
+
"useTabs": false
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"files": "*.sql",
|
|
173
|
+
"options": {
|
|
174
|
+
"endOfLine": "lf",
|
|
175
|
+
"language": "sqlite",
|
|
176
|
+
"plugins": [
|
|
177
|
+
"prettier-plugin-multiline-arrays",
|
|
178
|
+
"prettier-plugin-sql"
|
|
179
|
+
],
|
|
180
|
+
"useTabs": false
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"files": "*.sh",
|
|
185
|
+
"options": {
|
|
186
|
+
"endOfLine": "lf",
|
|
187
|
+
"plugins": [
|
|
188
|
+
"prettier-plugin-multiline-arrays",
|
|
189
|
+
"prettier-plugin-sh"
|
|
190
|
+
],
|
|
191
|
+
"useTabs": false
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"files": "*.properties",
|
|
196
|
+
"options": {
|
|
197
|
+
"endOfLine": "lf",
|
|
198
|
+
"escapeNonLatin1": false,
|
|
199
|
+
"plugins": [
|
|
200
|
+
"prettier-plugin-multiline-arrays",
|
|
201
|
+
"prettier-plugin-properties"
|
|
202
|
+
],
|
|
203
|
+
"useTabs": false
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"files": "*.ini",
|
|
208
|
+
"options": {
|
|
209
|
+
"endOfLine": "lf",
|
|
210
|
+
"iniSpaceAroundEquals": true,
|
|
211
|
+
"keySeparator": " = ",
|
|
212
|
+
"plugins": [
|
|
213
|
+
"prettier-plugin-multiline-arrays",
|
|
214
|
+
"prettier-plugin-ini"
|
|
215
|
+
],
|
|
216
|
+
"useTabs": false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"files": "**/package.json, **/package-lock.json",
|
|
221
|
+
"options": {
|
|
222
|
+
"endOfLine": "lf",
|
|
223
|
+
"plugins": [
|
|
224
|
+
"prettier-plugin-multiline-arrays",
|
|
225
|
+
"prettier-plugin-packagejson"
|
|
226
|
+
],
|
|
227
|
+
"tabWidth": 2,
|
|
228
|
+
"useTabs": false
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"plugins": [
|
|
233
|
+
"prettier-plugin-multiline-arrays"
|
|
234
|
+
],
|
|
235
|
+
"printWidth": 80,
|
|
236
|
+
"proseWrap": "preserve",
|
|
237
|
+
"quoteProps": "as-needed",
|
|
238
|
+
"requirePragma": false,
|
|
239
|
+
"semi": true,
|
|
240
|
+
"singleAttributePerLine": false,
|
|
241
|
+
"singleQuote": false,
|
|
242
|
+
"tabWidth": 4,
|
|
243
|
+
"trailingComma": "es5",
|
|
244
|
+
"useTabs": false,
|
|
245
|
+
"vueIndentScriptAndStyle": false
|
|
246
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nick2bad4u
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# prettier-config-nick2bad4u
|
|
2
|
+
|
|
3
|
+
Shared Prettier config for Nick2bad4u projects.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install --save-dev prettier prettier-config-nick2bad4u
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This package ships the Prettier plugins used by the config, so consumers only need `prettier` plus this package.
|
|
12
|
+
|
|
13
|
+
The package is ESM-first and exports the config from `preset.mjs`.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Option 1: package.json (recommended)
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"prettier": "prettier-config-nick2bad4u"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Option 2: prettier.config.mjs
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
import config from "prettier-config-nick2bad4u";
|
|
29
|
+
|
|
30
|
+
export default config;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Option 2a: named import
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import { config } from "prettier-config-nick2bad4u";
|
|
37
|
+
|
|
38
|
+
export default config;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Option 3: extend with local overrides
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
import config from "prettier-config-nick2bad4u";
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
...config,
|
|
48
|
+
printWidth: 100,
|
|
49
|
+
};
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## What this config includes
|
|
53
|
+
|
|
54
|
+
- Base formatting options (quotes, semicolons, trailing commas, tab width, etc.)
|
|
55
|
+
- File-specific overrides for JS/TS, Markdown, JSON, TOML, HTML, INI, SQL, shell, and properties files
|
|
56
|
+
- Plugin-backed formatting for JSDoc, sorted JSON/package.json, and additional language formats
|
|
57
|
+
|
|
58
|
+
## Package surface
|
|
59
|
+
|
|
60
|
+
- Default export: the shared Prettier config object
|
|
61
|
+
- Named export: `config`
|
|
62
|
+
- Published files: `.prettierrc`, `.prettierrc.json`, `preset.mjs`, and `index.d.ts`
|
|
63
|
+
|
|
64
|
+
## Development checks
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm run lint:all
|
|
68
|
+
npm run coverage
|
|
69
|
+
npm run release:verify
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
For maintainers, see [MAINTAINER_GUIDE.md](./MAINTAINER_GUIDE.md).
|
package/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/package.json",
|
|
3
|
+
"name": "prettier-config-nick2bad4u",
|
|
4
|
+
"version": "1.0.4",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "Shared Prettier config for Nick2bad4u projects.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"formatting",
|
|
9
|
+
"prettier",
|
|
10
|
+
"prettier-config",
|
|
11
|
+
"shared-config"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/Nick2bad4u/prettier-config-nick2bad4u#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Nick2bad4u/prettier-config-nick2bad4u/issues",
|
|
16
|
+
"email": "20943337+Nick2bad4u@users.noreply.github.com"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/Nick2bad4u/prettier-config-nick2bad4u.git"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://github.com/Nick2bad4u)",
|
|
24
|
+
"contributors": [
|
|
25
|
+
{
|
|
26
|
+
"name": "Nick2bad4u",
|
|
27
|
+
"email": "20943337+Nick2bad4u@users.noreply.github.com",
|
|
28
|
+
"url": "https://github.com/Nick2bad4u"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"type": "module",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"import": "./preset.mjs",
|
|
37
|
+
"require": null
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"main": "./preset.mjs",
|
|
42
|
+
"types": "./index.d.ts",
|
|
43
|
+
"files": [
|
|
44
|
+
".prettierrc",
|
|
45
|
+
".prettierrc.json",
|
|
46
|
+
"index.d.ts",
|
|
47
|
+
"preset.mjs"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "npm run typecheck",
|
|
51
|
+
"changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
52
|
+
"changelog:preview": "git-cliff --config cliff.toml --unreleased",
|
|
53
|
+
"changelog:release-notes": "git-cliff --config cliff.toml --latest --strip all",
|
|
54
|
+
"coverage": "vitest run --coverage",
|
|
55
|
+
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
56
|
+
"lint:all": "npm run lint && npm run typecheck && npm run test && npm run lint:prettier && npm run lint:package && npm run lint:yaml && npm run lint:secretlint",
|
|
57
|
+
"lint:all:fix": "npm run lint:fix && npm run lint:prettier:fix && npm run lint:package:fix && npm run typecheck && npm run test && npm run lint:yaml:fix && npm run lint:secretlint",
|
|
58
|
+
"lint:attw": "attw --pack . --profile esm-only",
|
|
59
|
+
"lint:fix": "npm run lint -- --fix",
|
|
60
|
+
"lint:package": "npm run lint:package-sort && npm run lint:package-json && npm run lint:package-check",
|
|
61
|
+
"lint:package:fix": "sort-package-json package.json",
|
|
62
|
+
"lint:package-check": "npm run package:check && npm run lint:publint && npm run lint:attw",
|
|
63
|
+
"lint:package-fix": "npm run lint:package:fix",
|
|
64
|
+
"lint:package-json": "npmPkgJsonLint . --config .npmpackagejsonlintrc.json",
|
|
65
|
+
"lint:package-sort": "sort-package-json --check package.json",
|
|
66
|
+
"lint:prettier": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --check",
|
|
67
|
+
"lint:prettier:fix": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --write",
|
|
68
|
+
"lint:publint": "publint",
|
|
69
|
+
"lint:secretlint": "secretlint --secretlintrc .secretlintrc.json --secretlintignore .gitignore \"**/*\"",
|
|
70
|
+
"lint:yaml": "eslint --cache --cache-strategy content --cache-location .cache/.eslintcache \"**/*.{yml,yaml}\"",
|
|
71
|
+
"lint:yaml:fix": "npm run lint:yaml -- --fix",
|
|
72
|
+
"package:check": "npm pack --dry-run",
|
|
73
|
+
"release:check": "npm run release:verify",
|
|
74
|
+
"release:verify": "npm run build && npm run lint:all && npm run lint:package-check",
|
|
75
|
+
"sync:node-version-files": "node scripts/sync-node-version-files.mjs",
|
|
76
|
+
"sync:peer-prettier-range": "node scripts/sync-peer-prettier-range.mjs",
|
|
77
|
+
"test": "vitest run",
|
|
78
|
+
"test:coverage": "npm run coverage",
|
|
79
|
+
"typecheck": "tsc -p tsconfig.build.json && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.eslint.json --noEmit && tsc -p tsconfig.js.json --noEmit && tsc -p tsconfig.vitest-typecheck.json --noEmit",
|
|
80
|
+
"typecheck:all": "npm run typecheck",
|
|
81
|
+
"types:update": "typesync",
|
|
82
|
+
"update-deps": "npx ncu -i --install never && npm update --force && npm install --force && npm run sync:peer-prettier-range && npm run sync:node-version-files",
|
|
83
|
+
"verify": "npm run release:verify"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
|
|
87
|
+
"prettier-plugin-ini": "^1.3.0",
|
|
88
|
+
"prettier-plugin-interpolated-html-tags": "^2.0.1",
|
|
89
|
+
"prettier-plugin-jsdoc": "^1.8.0",
|
|
90
|
+
"prettier-plugin-merge": "^0.10.1",
|
|
91
|
+
"prettier-plugin-multiline-arrays": "^4.1.7",
|
|
92
|
+
"prettier-plugin-packagejson": "^3.0.2",
|
|
93
|
+
"prettier-plugin-properties": "^0.3.1",
|
|
94
|
+
"prettier-plugin-sh": "^0.18.1",
|
|
95
|
+
"prettier-plugin-sort-json": "^4.2.0",
|
|
96
|
+
"prettier-plugin-sql": "^0.20.0",
|
|
97
|
+
"prettier-plugin-toml": "^2.0.6"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
101
|
+
"@secretlint/secretlint-rule-anthropic": "^12.3.1",
|
|
102
|
+
"@secretlint/secretlint-rule-aws": "^12.3.1",
|
|
103
|
+
"@secretlint/secretlint-rule-database-connection-string": "^12.3.1",
|
|
104
|
+
"@secretlint/secretlint-rule-gcp": "^12.3.1",
|
|
105
|
+
"@secretlint/secretlint-rule-github": "^12.3.1",
|
|
106
|
+
"@secretlint/secretlint-rule-no-dotenv": "^12.3.1",
|
|
107
|
+
"@secretlint/secretlint-rule-no-homedir": "^12.3.1",
|
|
108
|
+
"@secretlint/secretlint-rule-npm": "^12.3.1",
|
|
109
|
+
"@secretlint/secretlint-rule-openai": "^12.3.1",
|
|
110
|
+
"@secretlint/secretlint-rule-pattern": "^12.3.1",
|
|
111
|
+
"@secretlint/secretlint-rule-privatekey": "^12.3.1",
|
|
112
|
+
"@secretlint/secretlint-rule-secp256k1-privatekey": "^12.3.1",
|
|
113
|
+
"@types/node": "^25.6.0",
|
|
114
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
115
|
+
"cross-env": "^10.1.0",
|
|
116
|
+
"eslint": "^10.3.0",
|
|
117
|
+
"eslint-config-nick2bad4u": "^1.0.5",
|
|
118
|
+
"git-cliff": "^2.13.1",
|
|
119
|
+
"npm-package-json-lint": "^10.3.0",
|
|
120
|
+
"picocolors": "^1.1.1",
|
|
121
|
+
"prettier": "^3.8.3",
|
|
122
|
+
"publint": "^0.3.18",
|
|
123
|
+
"secretlint": "^12.3.1",
|
|
124
|
+
"sort-package-json": "^3.6.1",
|
|
125
|
+
"typescript": "^6.0.3",
|
|
126
|
+
"vite": "^8.0.10",
|
|
127
|
+
"vitest": "^4.1.5"
|
|
128
|
+
},
|
|
129
|
+
"peerDependencies": {
|
|
130
|
+
"prettier": "^3.0.0 || ^3.8.3"
|
|
131
|
+
},
|
|
132
|
+
"packageManager": "npm@11.13.0",
|
|
133
|
+
"engines": {
|
|
134
|
+
"node": ">=22.0.0"
|
|
135
|
+
},
|
|
136
|
+
"devEngines": {
|
|
137
|
+
"runtime": {
|
|
138
|
+
"name": "node",
|
|
139
|
+
"version": ">=22.0.0",
|
|
140
|
+
"onFail": "error"
|
|
141
|
+
},
|
|
142
|
+
"packageManager": {
|
|
143
|
+
"name": "npm",
|
|
144
|
+
"version": ">=11.0.0",
|
|
145
|
+
"onFail": "error"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"publishConfig": {
|
|
149
|
+
"provenance": true,
|
|
150
|
+
"registry": "https://registry.npmjs.org/"
|
|
151
|
+
},
|
|
152
|
+
"readme": "README.md"
|
|
153
|
+
}
|