Skip to content

Commit

Permalink
build(formatter): extend from .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Sep 28, 2023
1 parent 080cfd7 commit 5c8e351
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 2 deletions.
1 change: 1 addition & 0 deletions .part.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.yarn
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

272 changes: 272 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
# Created by https://www.toptal.com/developers/gitignore/api/angular,vim,visualstudiocode,yarn,webstorm+iml,macos,linux,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=angular,vim,visualstudiocode,yarn,webstorm+iml,macos,linux,windows

### Angular ###
## Angular ##
# compiled output
dist/
tmp/
app/**/*.js
app/**/*.js.map

# dependencies
node_modules/
bower_components/

# misc
.sass-cache/
connect.lock/
coverage/
libpeerconnection.log/
npm-debug.log
testem.log
typings/
.angular/

# e2e
e2e/*.js
e2e/*.map

# System Files
.DS_Store/

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Vim ###
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### WebStorm+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
!.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### WebStorm+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### yarn ###
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored

.yarn/*
!.yarn/releases
!.yarn/patches
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

# if you are NOT using Zero-installs, then:
# comment the following lines
#!.yarn/cache

# and uncomment the following lines
.pnp.*

# End of https://www.toptal.com/developers/gitignore/api/angular,vim,visualstudiocode,yarn,webstorm+iml,macos,linux,windows
# Created by https://www.toptal.com/developers/gitignore/api/lighthouseci 18s
# Edit at https://www.toptal.com/developers/gitignore?templates=lighthouseci

### LighthouseCI ###
# Lighthouse reports
.lighthouseci/

# End of https://www.toptal.com/developers/gitignore/api/lighthouseci
## Manual files
/junit-test.xml
/junit-lint.xml
/assets/*-subset.*
/release.json
# Manual changes:
# - Yarn config to not use zero installs.
# - Remove .idea from angular, we want some settings in the repo
# - Include dictionaries
# - Add junit-(lint|test).xml generated for CI/CD purposes
# - Add Lighthouse CI (to avoid having to generate everything again)
# - Add generated subset fonts
# - Add release file
.yarn
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"release-file": "ts-node scripts/src/generate-release-file.mts",
"validate-renovate-config": "yarn dlx -p renovate renovate-config-validator",
"format-check": "prettier --check .",
"format": "prettier --write ."
"format": "prettier --write .",
"generate-prettierignore": "cp .gitignore .prettierignore && cat .part.prettierignore >> .prettierignore"
},
"dependencies": {
"@angular/animations": "16.2.6",
Expand Down

0 comments on commit 5c8e351

Please sign in to comment.