Skip to content

Commit

Permalink
Stephan/eslint jest update (trailheadapps#206)
Browse files Browse the repository at this point in the history
* creation of the similarProducts test

* update to allow commits containing jest tests

* update to the package.json to include the eslint prettier config

* Delete similarProducts.test.js

Removal of the similarProduct.test.js as it should not be in this repository.
  • Loading branch information
schandlergarcia authored Jul 14, 2020
1 parent e355304 commit 3dc7645
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion force-app/main/default/lwc/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"extends": ["@salesforce/eslint-config-lwc/recommended"]
"extends": ["@salesforce/eslint-config-lwc/recommended", "prettier"],
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"@lwc/lwc/no-unexpected-wire-adapter-usages": "off"
}
}
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@salesforce/eslint-config-lwc": "^0.5.0",
"@salesforce/sfdx-lwc-jest": "muenzpraeger/sfdx-lwc-jest#rw/summer20",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"prettier": "^2.0.5",
Expand Down

0 comments on commit 3dc7645

Please sign in to comment.