Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Check for observer being undefined in notifyPaths function (#172)
Browse files Browse the repository at this point in the history
* Check for observer being undefined in `notifyPaths` function

* Added changeset

* Installed danger

* Added dangerfile.js
  • Loading branch information
AlexShukel authored Apr 4, 2024
1 parent ef31bd8 commit c35fbf1
Show file tree
Hide file tree
Showing 9 changed files with 555 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-lamps-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'stocked': patch
---

Fixed error in notifyPaths - observer could be undefined
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
*.config.js
*.config.js
dangerfile.js
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
}
}
7 changes: 7 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { danger, fail } = require('danger');

const changesets = danger.git.fileMatch('.changeset/*.md');

if (!changesets.created) {
fail('No changesets has been added in you pull request!');
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@typescript-eslint/parser": "^4.9.0",
"aqu": "^0.3.2",
"configs": "github:fracht/configs",
"danger": "^11.3.1",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-react-hooks": "^4.2.0",
Expand Down
Loading

0 comments on commit c35fbf1

Please sign in to comment.