From 652a1ff7c0ca1502751dface5a4ae7687f7d3c75 Mon Sep 17 00:00:00 2001 From: daniel zheng Date: Fri, 8 Sep 2023 16:59:14 -0400 Subject: [PATCH] add back git ignore --- ServiceDocumentSampleComponents/.eslintignore | 16 ++++ ServiceDocumentSampleComponents/.forceignore | 12 +++ ServiceDocumentSampleComponents/.gitignore | 45 +++++++++++ .../.husky/pre-commit | 4 + .../.prettierignore | 10 +++ ServiceDocumentSampleComponents/.prettierrc | 13 ++++ .../.vscode/extensions.json | 9 +++ .../.vscode/launch.json | 16 ++++ .../.vscode/settings.json | 7 ++ .../config/project-scratch-def.json | 20 ++--- .../main/default/aura/.eslintrc.json | 12 +-- .../force-app/main/default/lwc/.eslintrc.json | 24 +++--- .../lwc/demoWorkPlan/demoWorkPlan.html | 10 +-- .../default/lwc/demoWorkPlan/demoWorkPlan.js | 10 +-- .../demoWorkStepPresentation.js | 2 +- .../mediumHeaderText/mediumHeaderText.html | 2 +- .../lwc/mediumHeaderText/mediumHeaderText.js | 2 +- .../default/lwc/staticImage/staticImage.html | 4 +- .../default/lwc/staticImage/staticImage.js | 4 +- .../jest.config.js | 4 +- ServiceDocumentSampleComponents/package.json | 78 +++++++++---------- .../sfdx-project.json | 20 ++--- 22 files changed, 227 insertions(+), 97 deletions(-) create mode 100644 ServiceDocumentSampleComponents/.eslintignore create mode 100755 ServiceDocumentSampleComponents/.forceignore create mode 100644 ServiceDocumentSampleComponents/.gitignore create mode 100755 ServiceDocumentSampleComponents/.husky/pre-commit create mode 100755 ServiceDocumentSampleComponents/.prettierignore create mode 100755 ServiceDocumentSampleComponents/.prettierrc create mode 100644 ServiceDocumentSampleComponents/.vscode/extensions.json create mode 100644 ServiceDocumentSampleComponents/.vscode/launch.json create mode 100644 ServiceDocumentSampleComponents/.vscode/settings.json diff --git a/ServiceDocumentSampleComponents/.eslintignore b/ServiceDocumentSampleComponents/.eslintignore new file mode 100644 index 0000000..5f7b681 --- /dev/null +++ b/ServiceDocumentSampleComponents/.eslintignore @@ -0,0 +1,16 @@ +**/lwc/**/*.css +**/lwc/**/*.html +**/lwc/**/*.json +**/lwc/**/*.svg +**/lwc/**/*.xml +**/aura/**/*.auradoc +**/aura/**/*.cmp +**/aura/**/*.css +**/aura/**/*.design +**/aura/**/*.evt +**/aura/**/*.json +**/aura/**/*.svg +**/aura/**/*.tokens +**/aura/**/*.xml +**/aura/**/*.app +.sfdx diff --git a/ServiceDocumentSampleComponents/.forceignore b/ServiceDocumentSampleComponents/.forceignore new file mode 100755 index 0000000..7b5b5a7 --- /dev/null +++ b/ServiceDocumentSampleComponents/.forceignore @@ -0,0 +1,12 @@ +# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status +# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm +# + +package.xml + +# LWC configuration files +**/jsconfig.json +**/.eslintrc.json + +# LWC Jest +**/__tests__/** \ No newline at end of file diff --git a/ServiceDocumentSampleComponents/.gitignore b/ServiceDocumentSampleComponents/.gitignore new file mode 100644 index 0000000..f5f33eb --- /dev/null +++ b/ServiceDocumentSampleComponents/.gitignore @@ -0,0 +1,45 @@ +# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. +# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore +# For useful gitignore templates see: https://github.com/github/gitignore + +# Salesforce cache +.sf/ +.sfdx/ +.localdevserver/ +deploy-options.json + +# LWC VSCode autocomplete +**/lwc/jsconfig.json + +# LWC Jest coverage reports +coverage/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Dependency directories +node_modules/ + +# Eslint cache +.eslintcache + +# MacOS system files +.DS_Store + +# Windows system files +Thumbs.db +ehthumbs.db +[Dd]esktop.ini +$RECYCLE.BIN/ + +# Local environment variables +.env + +# Python Salesforce Functions +**/__pycache__/ +**/.venv/ +**/venv/ diff --git a/ServiceDocumentSampleComponents/.husky/pre-commit b/ServiceDocumentSampleComponents/.husky/pre-commit new file mode 100755 index 0000000..feac116 --- /dev/null +++ b/ServiceDocumentSampleComponents/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run precommit \ No newline at end of file diff --git a/ServiceDocumentSampleComponents/.prettierignore b/ServiceDocumentSampleComponents/.prettierignore new file mode 100755 index 0000000..f3720b2 --- /dev/null +++ b/ServiceDocumentSampleComponents/.prettierignore @@ -0,0 +1,10 @@ +# List files or directories below to ignore them when running prettier +# More information: https://prettier.io/docs/en/ignore.html +# + +**/staticresources/** +.localdevserver +.sfdx +.vscode + +coverage/ \ No newline at end of file diff --git a/ServiceDocumentSampleComponents/.prettierrc b/ServiceDocumentSampleComponents/.prettierrc new file mode 100755 index 0000000..15683b6 --- /dev/null +++ b/ServiceDocumentSampleComponents/.prettierrc @@ -0,0 +1,13 @@ +{ + "trailingComma": "none", + "overrides": [ + { + "files": "**/lwc/**/*.html", + "options": { "parser": "lwc" } + }, + { + "files": "*.{cmp,page,component}", + "options": { "parser": "html" } + } + ] +} diff --git a/ServiceDocumentSampleComponents/.vscode/extensions.json b/ServiceDocumentSampleComponents/.vscode/extensions.json new file mode 100644 index 0000000..7e6cb10 --- /dev/null +++ b/ServiceDocumentSampleComponents/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "salesforce.salesforcedx-vscode", + "redhat.vscode-xml", + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "financialforce.lana" + ] +} diff --git a/ServiceDocumentSampleComponents/.vscode/launch.json b/ServiceDocumentSampleComponents/.vscode/launch.json new file mode 100644 index 0000000..e07e391 --- /dev/null +++ b/ServiceDocumentSampleComponents/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Apex Replay Debugger", + "type": "apex-replay", + "request": "launch", + "logFile": "${command:AskForLogFileName}", + "stopOnEntry": true, + "trace": true + } + ] +} diff --git a/ServiceDocumentSampleComponents/.vscode/settings.json b/ServiceDocumentSampleComponents/.vscode/settings.json new file mode 100644 index 0000000..76decfb --- /dev/null +++ b/ServiceDocumentSampleComponents/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "search.exclude": { + "**/node_modules": true, + "**/bower_components": true, + "**/.sfdx": true + } +} diff --git a/ServiceDocumentSampleComponents/config/project-scratch-def.json b/ServiceDocumentSampleComponents/config/project-scratch-def.json index dc665ef..be214d2 100644 --- a/ServiceDocumentSampleComponents/config/project-scratch-def.json +++ b/ServiceDocumentSampleComponents/config/project-scratch-def.json @@ -1,13 +1,13 @@ { - "orgName": "giaoge.zheng company", - "edition": "Developer", - "features": ["EnableSetPasswordInApi"], - "settings": { - "lightningExperienceSettings": { - "enableS1DesktopEnabled": true - }, - "mobileSettings": { - "enableS1EncryptedStoragePref2": false + "orgName": "giaoge.zheng company", + "edition": "Developer", + "features": ["EnableSetPasswordInApi"], + "settings": { + "lightningExperienceSettings": { + "enableS1DesktopEnabled": true + }, + "mobileSettings": { + "enableS1EncryptedStoragePref2": false + } } - } } diff --git a/ServiceDocumentSampleComponents/force-app/main/default/aura/.eslintrc.json b/ServiceDocumentSampleComponents/force-app/main/default/aura/.eslintrc.json index 226a5a2..6426b79 100644 --- a/ServiceDocumentSampleComponents/force-app/main/default/aura/.eslintrc.json +++ b/ServiceDocumentSampleComponents/force-app/main/default/aura/.eslintrc.json @@ -1,8 +1,8 @@ { - "plugins": ["@salesforce/eslint-plugin-aura"], - "extends": ["plugin:@salesforce/eslint-plugin-aura/recommended"], - "rules": { - "vars-on-top": "off", - "no-unused-expressions": "off" - } + "plugins": ["@salesforce/eslint-plugin-aura"], + "extends": ["plugin:@salesforce/eslint-plugin-aura/recommended"], + "rules": { + "vars-on-top": "off", + "no-unused-expressions": "off" + } } diff --git a/ServiceDocumentSampleComponents/force-app/main/default/lwc/.eslintrc.json b/ServiceDocumentSampleComponents/force-app/main/default/lwc/.eslintrc.json index a82e76d..0fc06c0 100644 --- a/ServiceDocumentSampleComponents/force-app/main/default/lwc/.eslintrc.json +++ b/ServiceDocumentSampleComponents/force-app/main/default/lwc/.eslintrc.json @@ -1,14 +1,14 @@ { - "extends": ["@salesforce/eslint-config-lwc/recommended"], - "overrides": [ - { - "files": ["*.test.js"], - "rules": { - "@lwc/lwc/no-unexpected-wire-adapter-usages": "off" - }, - "env": { - "node": true - } - } - ] + "extends": ["@salesforce/eslint-config-lwc/recommended"], + "overrides": [ + { + "files": ["*.test.js"], + "rules": { + "@lwc/lwc/no-unexpected-wire-adapter-usages": "off" + }, + "env": { + "node": true + } + } + ] } diff --git a/ServiceDocumentSampleComponents/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html b/ServiceDocumentSampleComponents/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html index 71f0868..1830090 100644 --- a/ServiceDocumentSampleComponents/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html +++ b/ServiceDocumentSampleComponents/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html @@ -1,8 +1,6 @@