@willbooster/prettier-config 9.1.0 → 9.1.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/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@willbooster/prettier-config",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
4
4
  "description": "A Prettier config for WillBooster projects",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
7
7
  "main": ".prettierrc.json",
8
+ "files": [
9
+ ".prettierrc.json"
10
+ ],
8
11
  "scripts": {
9
12
  "cleanup": "yarn format",
10
13
  "format": "sort-package-json && yarn prettify",
11
- "prettify": "prettier --color --write \"**/{.*/,}*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\""
14
+ "prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\""
12
15
  },
13
16
  "devDependencies": {
14
- "lint-staged": "13.0.3",
15
- "prettier": "2.7.1",
16
- "sort-package-json": "1.57.0"
17
+ "lint-staged": "15.0.2",
18
+ "prettier": "3.0.3",
19
+ "sort-package-json": "2.6.0"
17
20
  },
18
21
  "peerDependencies": {
19
22
  "prettier": ">=2"
package/.lintstagedrc.cjs DELETED
@@ -1,11 +0,0 @@
1
- module.exports = {
2
- './**/*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}': (files) => {
3
- const filteredFiles = files.filter((file) => !file.includes('/test-fixtures/'));
4
- if (filteredFiles.length === 0) return [];
5
- const commands = [`prettier --write ${filteredFiles.join(' ')}`];
6
- if (filteredFiles.some((file) => file.endsWith('package.json'))) {
7
- commands.push('yarn sort-package-json');
8
- }
9
- return commands;
10
- },
11
- };
package/.prettierignore DELETED
@@ -1,505 +0,0 @@
1
- # Project-specific settings
2
-
3
-
4
- # Generated by @willbooster/gen-configs
5
-
6
- 3rd-party/
7
- android/
8
- ios/
9
- no-format/
10
- test-fixtures/
11
- *.d.ts
12
- *.min.js
13
- .yarn/
14
- .pnp.js
15
-
16
-
17
- .devcontainer/
18
- dist/
19
- temp/
20
- Icon[
21
- *.sqlite3
22
- *.sqlite3-journal
23
- # Created by https://www.toptal.com/developers/gitignore/api/windows
24
- # Edit at https://www.toptal.com/developers/gitignore?templates=windows
25
-
26
- ### Windows ###
27
- # Windows thumbnail cache files
28
- Thumbs.db
29
- Thumbs.db:encryptable
30
- ehthumbs.db
31
- ehthumbs_vista.db
32
-
33
- # Dump file
34
- *.stackdump
35
-
36
- # Folder config file
37
- [Dd]esktop.ini
38
-
39
- # Recycle Bin used on file shares
40
- $RECYCLE.BIN/
41
-
42
- # Windows Installer files
43
- *.cab
44
- *.msi
45
- *.msix
46
- *.msm
47
- *.msp
48
-
49
- # Windows shortcuts
50
- *.lnk
51
-
52
- # End of https://www.toptal.com/developers/gitignore/api/windows
53
-
54
- # Created by https://www.toptal.com/developers/gitignore/api/macos
55
- # Edit at https://www.toptal.com/developers/gitignore?templates=macos
56
-
57
- ### macOS ###
58
- # General
59
- .DS_Store
60
- .AppleDouble
61
- .LSOverride
62
-
63
- # Icon must end with two \r
64
- Icon
65
-
66
- # Thumbnails
67
- ._*
68
-
69
- # Files that might appear in the root of a volume
70
- .DocumentRevisions-V100
71
- .fseventsd
72
- .Spotlight-V100
73
- .TemporaryItems
74
- .Trashes
75
- .VolumeIcon.icns
76
- .com.apple.timemachine.donotpresent
77
-
78
- # Directories potentially created on remote AFP share
79
- .AppleDB
80
- .AppleDesktop
81
- Network Trash Folder
82
- Temporary Items
83
- .apdisk
84
-
85
- ### macOS Patch ###
86
- # iCloud generated files
87
- *.icloud
88
-
89
- # End of https://www.toptal.com/developers/gitignore/api/macos
90
-
91
- # Created by https://www.toptal.com/developers/gitignore/api/linux
92
- # Edit at https://www.toptal.com/developers/gitignore?templates=linux
93
-
94
- ### Linux ###
95
- *~
96
-
97
- # temporary files which can be created if a process still has a handle open of a deleted file
98
- .fuse_hidden*
99
-
100
- # KDE directory preferences
101
- .directory
102
-
103
- # Linux trash folder which might appear on any partition or disk
104
- .Trash-*
105
-
106
- # .nfs files are created when an open file is removed but is still being accessed
107
- .nfs*
108
-
109
- # End of https://www.toptal.com/developers/gitignore/api/linux
110
-
111
- # Created by https://www.toptal.com/developers/gitignore/api/jetbrains
112
- # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains
113
-
114
- ### JetBrains ###
115
- # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
116
- # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
117
-
118
- # User-specific stuff
119
- .idea/**/workspace.xml
120
- .idea/**/tasks.xml
121
- .idea/**/usage.statistics.xml
122
- .idea/**/dictionaries
123
- .idea/**/shelf
124
-
125
- # AWS User-specific
126
- .idea/**/aws.xml
127
-
128
- # Generated files
129
- .idea/**/contentModel.xml
130
-
131
- # Sensitive or high-churn files
132
- .idea/**/dataSources/
133
- .idea/**/dataSources.ids
134
- .idea/**/dataSources.local.xml
135
- .idea/**/sqlDataSources.xml
136
- .idea/**/dynamic.xml
137
- .idea/**/uiDesigner.xml
138
- .idea/**/dbnavigator.xml
139
-
140
- # Gradle
141
- .idea/**/gradle.xml
142
- .idea/**/libraries
143
-
144
- # Gradle and Maven with auto-import
145
- # When using Gradle or Maven with auto-import, you should exclude module files,
146
- # since they will be recreated, and may cause churn. Uncomment if using
147
- # auto-import.
148
- # .idea/artifacts
149
- # .idea/compiler.xml
150
- # .idea/jarRepositories.xml
151
- # .idea/modules.xml
152
- # .idea/*.iml
153
- # .idea/modules
154
- # *.iml
155
- # *.ipr
156
-
157
- # CMake
158
- cmake-build-*/
159
-
160
- # Mongo Explorer plugin
161
- .idea/**/mongoSettings.xml
162
-
163
- # File-based project format
164
- *.iws
165
-
166
- # IntelliJ
167
- out/
168
-
169
- # mpeltonen/sbt-idea plugin
170
- .idea_modules/
171
-
172
- # JIRA plugin
173
- atlassian-ide-plugin.xml
174
-
175
- # Cursive Clojure plugin
176
- .idea/replstate.xml
177
-
178
- # SonarLint plugin
179
- .idea/sonarlint/
180
-
181
- # Crashlytics plugin (for Android Studio and IntelliJ)
182
- com_crashlytics_export_strings.xml
183
- crashlytics.properties
184
- crashlytics-build.properties
185
- fabric.properties
186
-
187
- # Editor-based Rest Client
188
- .idea/httpRequests
189
-
190
- # Android studio 3.1+ serialized cache file
191
- .idea/caches/build_file_checksums.ser
192
-
193
- ### JetBrains Patch ###
194
- # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
195
-
196
- # *.iml
197
- # modules.xml
198
- # .idea/misc.xml
199
- # *.ipr
200
-
201
- # Sonarlint plugin
202
- # https://plugins.jetbrains.com/plugin/7973-sonarlint
203
- .idea/**/sonarlint/
204
-
205
- # SonarQube Plugin
206
- # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
207
- .idea/**/sonarIssues.xml
208
-
209
- # Markdown Navigator plugin
210
- # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
211
- .idea/**/markdown-navigator.xml
212
- .idea/**/markdown-navigator-enh.xml
213
- .idea/**/markdown-navigator/
214
-
215
- # Cache file creation bug
216
- # See https://youtrack.jetbrains.com/issue/JBR-2257
217
- .idea/$CACHE_FILE$
218
-
219
- # CodeStream plugin
220
- # https://plugins.jetbrains.com/plugin/12206-codestream
221
- .idea/codestream.xml
222
-
223
- # Azure Toolkit for IntelliJ plugin
224
- # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
225
- .idea/**/azureSettings.xml
226
-
227
- # End of https://www.toptal.com/developers/gitignore/api/jetbrains
228
-
229
- # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode
230
- # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode
231
-
232
- ### VisualStudioCode ###
233
- .vscode/*
234
- !.vscode/settings.json
235
- !.vscode/tasks.json
236
- !.vscode/launch.json
237
- !.vscode/extensions.json
238
- !.vscode/*.code-snippets
239
-
240
- # Local History for Visual Studio Code
241
- .history/
242
-
243
- # Built Visual Studio Code Extensions
244
- *.vsix
245
-
246
- ### VisualStudioCode Patch ###
247
- # Ignore all local history of files
248
- .history
249
- .ionide
250
-
251
- # Support for Project snippet scope
252
- .vscode/*.code-snippets
253
-
254
- # Ignore code-workspaces
255
- *.code-workspace
256
-
257
- # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
258
-
259
- # Created by https://www.toptal.com/developers/gitignore/api/emacs
260
- # Edit at https://www.toptal.com/developers/gitignore?templates=emacs
261
-
262
- ### Emacs ###
263
- # -*- mode: gitignore; -*-
264
- *~
265
- \#*\#
266
- /.emacs.desktop
267
- /.emacs.desktop.lock
268
- *.elc
269
- auto-save-list
270
- tramp
271
- .\#*
272
-
273
- # Org-mode
274
- .org-id-locations
275
- *_archive
276
-
277
- # flymake-mode
278
- *_flymake.*
279
-
280
- # eshell files
281
- /eshell/history
282
- /eshell/lastdir
283
-
284
- # elpa packages
285
- /elpa/
286
-
287
- # reftex files
288
- *.rel
289
-
290
- # AUCTeX auto folder
291
- /auto/
292
-
293
- # cask packages
294
- .cask/
295
- dist/
296
-
297
- # Flycheck
298
- flycheck_*.el
299
-
300
- # server auth directory
301
- /server/
302
-
303
- # projectiles files
304
- .projectile
305
-
306
- # directory configuration
307
- .dir-locals.el
308
-
309
- # network security
310
- /network-security.data
311
-
312
- # End of https://www.toptal.com/developers/gitignore/api/emacs
313
-
314
- # Created by https://www.toptal.com/developers/gitignore/api/vim
315
- # Edit at https://www.toptal.com/developers/gitignore?templates=vim
316
-
317
- ### Vim ###
318
- # Swap
319
- [._]*.s[a-v][a-z]
320
- !*.svg # comment out if you don't need vector files
321
- [._]*.sw[a-p]
322
- [._]s[a-rt-v][a-z]
323
- [._]ss[a-gi-z]
324
- [._]sw[a-p]
325
-
326
- # Session
327
- Session.vim
328
- Sessionx.vim
329
-
330
- # Temporary
331
- .netrwhist
332
- *~
333
- # Auto-generated tag files
334
- tags
335
- # Persistent undo
336
- [._]*.un~
337
-
338
- # End of https://www.toptal.com/developers/gitignore/api/vim
339
-
340
- # Created by https://www.toptal.com/developers/gitignore/api/yarn
341
- # Edit at https://www.toptal.com/developers/gitignore?templates=yarn
342
-
343
- ### yarn ###
344
- # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
345
-
346
- .yarn/*
347
- !.yarn/releases
348
- !.yarn/patches
349
- !.yarn/plugins
350
- !.yarn/sdks
351
- !.yarn/versions
352
-
353
- # if you are NOT using Zero-installs, then:
354
- # comment the following lines
355
- # !.yarn/cache
356
-
357
- # and uncomment the following lines
358
- .pnp.*
359
-
360
- # End of https://www.toptal.com/developers/gitignore/api/yarn
361
-
362
- # Created by https://www.toptal.com/developers/gitignore/api/node
363
- # Edit at https://www.toptal.com/developers/gitignore?templates=node
364
-
365
- ### Node ###
366
- # Logs
367
- logs
368
- *.log
369
- npm-debug.log*
370
- yarn-debug.log*
371
- yarn-error.log*
372
- lerna-debug.log*
373
- .pnpm-debug.log*
374
-
375
- # Diagnostic reports (https://nodejs.org/api/report.html)
376
- report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
377
-
378
- # Runtime data
379
- pids
380
- *.pid
381
- *.seed
382
- *.pid.lock
383
-
384
- # Directory for instrumented libs generated by jscoverage/JSCover
385
- lib-cov
386
-
387
- # Coverage directory used by tools like istanbul
388
- coverage
389
- *.lcov
390
-
391
- # nyc test coverage
392
- .nyc_output
393
-
394
- # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
395
- .grunt
396
-
397
- # Bower dependency directory (https://bower.io/)
398
- bower_components
399
-
400
- # node-waf configuration
401
- .lock-wscript
402
-
403
- # Compiled binary addons (https://nodejs.org/api/addons.html)
404
- build/Release
405
-
406
- # Dependency directories
407
- node_modules/
408
- jspm_packages/
409
-
410
- # Snowpack dependency directory (https://snowpack.dev/)
411
- web_modules/
412
-
413
- # TypeScript cache
414
- *.tsbuildinfo
415
-
416
- # Optional npm cache directory
417
- .npm
418
-
419
- # Optional eslint cache
420
- .eslintcache
421
-
422
- # Optional stylelint cache
423
- .stylelintcache
424
-
425
- # Microbundle cache
426
- .rpt2_cache/
427
- .rts2_cache_cjs/
428
- .rts2_cache_es/
429
- .rts2_cache_umd/
430
-
431
- # Optional REPL history
432
- .node_repl_history
433
-
434
- # Output of 'npm pack'
435
- *.tgz
436
-
437
- # Yarn Integrity file
438
- .yarn-integrity
439
-
440
- # dotenv environment variable files
441
- .env
442
- .env.development.local
443
- .env.test.local
444
- .env.production.local
445
- .env.local
446
-
447
- # parcel-bundler cache (https://parceljs.org/)
448
- .cache
449
- .parcel-cache
450
-
451
- # Next.js build output
452
- .next
453
- out
454
-
455
- # Nuxt.js build / generate output
456
- .nuxt
457
- dist
458
-
459
- # Gatsby files
460
- .cache/
461
- # Comment in the public line in if your project uses Gatsby and not Next.js
462
- # https://nextjs.org/blog/next-9-1#public-directory-support
463
- # public
464
-
465
- # vuepress build output
466
- .vuepress/dist
467
-
468
- # vuepress v2.x temp and cache directory
469
- .temp
470
-
471
- # Docusaurus cache and generated files
472
- .docusaurus
473
-
474
- # Serverless directories
475
- .serverless/
476
-
477
- # FuseBox cache
478
- .fusebox/
479
-
480
- # DynamoDB Local files
481
- .dynamodb/
482
-
483
- # TernJS port file
484
- .tern-port
485
-
486
- # Stores VSCode versions used for testing VSCode extensions
487
- .vscode-test
488
-
489
- # yarn v2
490
- .yarn/cache
491
- .yarn/unplugged
492
- .yarn/build-state.yml
493
- .yarn/install-state.gz
494
- .pnp.*
495
-
496
- ### Node Patch ###
497
- # Serverless Webpack directories
498
- .webpack/
499
-
500
- # Optional stylelint cache
501
-
502
- # SvelteKit build / generate output
503
- .svelte-kit
504
-
505
- # End of https://www.toptal.com/developers/gitignore/api/node
package/NOTICE DELETED
@@ -1,15 +0,0 @@
1
- @willbooster/prettier-config
2
-
3
- Copyright (c) 2019 WillBooster Inc. and contributors.
4
-
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.