@willbooster/prettier-config 8.0.0 → 9.1.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/.lintstagedrc.cjs CHANGED
@@ -1,10 +1,6 @@
1
- const path = require('path');
2
-
3
1
  module.exports = {
4
2
  './**/*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}': (files) => {
5
- const filteredFiles = files
6
- .filter((file) => !file.includes('/test-fixtures/'))
7
- .map((file) => path.relative('', file));
3
+ const filteredFiles = files.filter((file) => !file.includes('/test-fixtures/'));
8
4
  if (filteredFiles.length === 0) return [];
9
5
  const commands = [`prettier --write ${filteredFiles.join(' ')}`];
10
6
  if (filteredFiles.some((file) => file.endsWith('package.json'))) {
package/.prettierignore CHANGED
@@ -18,7 +18,8 @@ test-fixtures/
18
18
  dist/
19
19
  temp/
20
20
  Icon[
21
-
21
+ *.sqlite3
22
+ *.sqlite3-journal
22
23
  # Created by https://www.toptal.com/developers/gitignore/api/windows
23
24
  # Edit at https://www.toptal.com/developers/gitignore?templates=windows
24
25
 
@@ -81,6 +82,10 @@ Network Trash Folder
81
82
  Temporary Items
82
83
  .apdisk
83
84
 
85
+ ### macOS Patch ###
86
+ # iCloud generated files
87
+ *.icloud
88
+
84
89
  # End of https://www.toptal.com/developers/gitignore/api/macos
85
90
 
86
91
  # Created by https://www.toptal.com/developers/gitignore/api/linux
@@ -170,6 +175,9 @@ atlassian-ide-plugin.xml
170
175
  # Cursive Clojure plugin
171
176
  .idea/replstate.xml
172
177
 
178
+ # SonarLint plugin
179
+ .idea/sonarlint/
180
+
173
181
  # Crashlytics plugin (for Android Studio and IntelliJ)
174
182
  com_crashlytics_export_strings.xml
175
183
  crashlytics.properties
@@ -212,6 +220,10 @@ fabric.properties
212
220
  # https://plugins.jetbrains.com/plugin/12206-codestream
213
221
  .idea/codestream.xml
214
222
 
223
+ # Azure Toolkit for IntelliJ plugin
224
+ # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
225
+ .idea/**/azureSettings.xml
226
+
215
227
  # End of https://www.toptal.com/developers/gitignore/api/jetbrains
216
228
 
217
229
  # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode
@@ -223,18 +235,24 @@ fabric.properties
223
235
  !.vscode/tasks.json
224
236
  !.vscode/launch.json
225
237
  !.vscode/extensions.json
226
- *.code-workspace
238
+ !.vscode/*.code-snippets
227
239
 
228
240
  # Local History for Visual Studio Code
229
241
  .history/
230
242
 
243
+ # Built Visual Studio Code Extensions
244
+ *.vsix
245
+
231
246
  ### VisualStudioCode Patch ###
232
247
  # Ignore all local history of files
233
248
  .history
234
249
  .ionide
235
250
 
236
251
  # Support for Project snippet scope
237
- !.vscode/*.code-snippets
252
+ .vscode/*.code-snippets
253
+
254
+ # Ignore code-workspaces
255
+ *.code-workspace
238
256
 
239
257
  # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
240
258
 
@@ -319,6 +337,28 @@ tags
319
337
 
320
338
  # End of https://www.toptal.com/developers/gitignore/api/vim
321
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
+
322
362
  # Created by https://www.toptal.com/developers/gitignore/api/node
323
363
  # Edit at https://www.toptal.com/developers/gitignore?templates=node
324
364
 
@@ -379,6 +419,9 @@ web_modules/
379
419
  # Optional eslint cache
380
420
  .eslintcache
381
421
 
422
+ # Optional stylelint cache
423
+ .stylelintcache
424
+
382
425
  # Microbundle cache
383
426
  .rpt2_cache/
384
427
  .rts2_cache_cjs/
@@ -394,10 +437,12 @@ web_modules/
394
437
  # Yarn Integrity file
395
438
  .yarn-integrity
396
439
 
397
- # dotenv environment variables file
440
+ # dotenv environment variable files
398
441
  .env
399
- .env.test
400
- .env.production
442
+ .env.development.local
443
+ .env.test.local
444
+ .env.production.local
445
+ .env.local
401
446
 
402
447
  # parcel-bundler cache (https://parceljs.org/)
403
448
  .cache
@@ -420,6 +465,12 @@ dist
420
465
  # vuepress build output
421
466
  .vuepress/dist
422
467
 
468
+ # vuepress v2.x temp and cache directory
469
+ .temp
470
+
471
+ # Docusaurus cache and generated files
472
+ .docusaurus
473
+
423
474
  # Serverless directories
424
475
  .serverless/
425
476
 
@@ -447,7 +498,6 @@ dist
447
498
  .webpack/
448
499
 
449
500
  # Optional stylelint cache
450
- .stylelintcache
451
501
 
452
502
  # SvelteKit build / generate output
453
503
  .svelte-kit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/prettier-config",
3
- "version": "8.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "A Prettier config for WillBooster projects",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -11,12 +11,14 @@
11
11
  "prettify": "prettier --color --write \"**/{.*/,}*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\""
12
12
  },
13
13
  "devDependencies": {
14
- "lint-staged": "12.1.7",
15
- "prettier": "2.5.1",
16
- "sort-package-json": "1.53.1"
14
+ "lint-staged": "13.0.3",
15
+ "prettier": "2.7.1",
16
+ "sort-package-json": "1.57.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "prettier": ">=2"
20
20
  },
21
- "gitHead": "865a18e97886b4051f555430f8fc0c89bd364001"
22
- }
21
+ "publishConfig": {
22
+ "access": "public"
23
+ }
24
+ }