Skip to content

Commit

Permalink
Dependencies refresh for the DX project template (#568)
Browse files Browse the repository at this point in the history
* fix: exclude .sf folder from prettier

* build: bump template dependencies

* feat: remove .eslintignore

---------

Co-authored-by: Philippe Ozil <[email protected]>
  • Loading branch information
CristiCanizales and pozil authored Sep 19, 2023
1 parent 5bf2c51 commit 1f7a763
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 32 deletions.
1 change: 0 additions & 1 deletion src/generators/projectGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const standardfolderarray = [
'triggers',
];
const filestocopy = [
'.eslintignore',
'.forceignore',
GITIGNORE,
'.prettierignore',
Expand Down
16 changes: 0 additions & 16 deletions src/templates/project/.eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions src/templates/project/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
**/staticresources/**
.localdevserver
.sfdx
.sf
.vscode

coverage/
4 changes: 4 additions & 0 deletions src/templates/project/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"trailingComma": "none",
"plugins": [
"prettier-plugin-apex",
"@prettier/plugin-xml"
],
"overrides": [
{
"files": "**/lwc/**/*.html",
Expand Down
30 changes: 15 additions & 15 deletions src/templates/project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
"version": "1.0.0",
"description": "Salesforce App",
"scripts": {
"lint": "eslint **/{aura,lwc}/**",
"lint": "eslint **/{aura,lwc}/**/*.js",
"test": "npm run test:unit",
"test:unit": "sfdx-lwc-jest",
"test:unit:watch": "sfdx-lwc-jest --watch",
"test:unit:debug": "sfdx-lwc-jest --debug",
"test:unit:coverage": "sfdx-lwc-jest --coverage",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"postinstall": "husky install",
"precommit": "lint-staged"
},
"devDependencies": {
"@lwc/eslint-plugin-lwc": "^1.1.2",
"@prettier/plugin-xml": "^2.0.1",
"@salesforce/eslint-config-lwc": "^3.2.3",
"@salesforce/eslint-plugin-aura": "^2.0.0",
"@lwc/eslint-plugin-lwc": "^1.6.3",
"@prettier/plugin-xml": "^3.2.1",
"@salesforce/eslint-config-lwc": "^3.5.2",
"@salesforce/eslint-plugin-aura": "^2.1.0",
"@salesforce/eslint-plugin-lightning": "^1.0.0",
"@salesforce/sfdx-lwc-jest": "^1.1.0",
"eslint": "^8.11.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.2",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"prettier": "^2.6.0",
"prettier-plugin-apex": "^1.10.0"
"@salesforce/sfdx-lwc-jest": "^1.4.1",
"eslint": "^8.49.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.3",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-apex": "^2.0.1"
},
"lint-staged": {
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
"prettier --write"
],
"**/{aura,lwc}/**": [
"**/{aura,lwc}/**/*.js": [
"eslint"
]
}
Expand Down

0 comments on commit 1f7a763

Please sign in to comment.