Skip to content

Commit

Permalink
fix: update deps (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Oct 17, 2024
1 parent d922347 commit 6191456
Show file tree
Hide file tree
Showing 9 changed files with 756 additions and 1,034 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 1 addition & 1 deletion docs/js/signature_pad.umd.min.js.map

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";

export default [
{
languageOptions: {
globals: globals.browser,
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
ignores: [
'coverage',
'dist',
'node_modules',
'.vscode',
'rollup.config.js',
]
},
];
47 changes: 21 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"serve": "serve -l 9000 docs",
"start": "yarn run build && yarn run serve",
"test": "jest --coverage",
"update-docs": "yarn run cpy 'dist/signature_pad.umd.min.*' docs/js",
"prepare": "husky install"
"update-docs": "yarn run cpy 'dist/signature_pad.umd.min.*' docs/js"
},
"repository": {
"type": "git",
Expand All @@ -36,38 +35,34 @@
"docs"
],
"devDependencies": {
"@eslint/js": "^9.12.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@rollup/plugin-typescript": "^12.1.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.3",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^13.0.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.8",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@semantic-release/github": "^11.0.0",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.6",
"cpy-cli": "^5.0.0",
"del": "^7.1.0",
"del-cli": "^5.1.0",
"eslint": "^8.57.0",
"del": "^8.0.0",
"del-cli": "^6.0.0",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"globals": "^15.11.0",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"rollup": "^4.17.2",
"semantic-release": "^23.0.8",
"serve": "^14.2.3",
"ts-jest": "^29.1.2",
"tslib": "^2.6.2",
"typescript": "~5.4.5"
},
"lint-staged": {
"*.ts": "prettier --write"
"prettier": "^3.3.3",
"rollup": "^4.24.0",
"semantic-release": "^24.1.2",
"serve": "^14.2.4",
"ts-jest": "^29.2.5",
"tslib": "^2.8.0",
"typescript": "~5.6.3",
"typescript-eslint": "^8.9.0"
},
"jest": {
"moduleFileExtensions": [
Expand Down
2 changes: 1 addition & 1 deletion src/signature_event_target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class SignatureEventTarget {
constructor() {
try {
this._et = new EventTarget();
} catch (error) {
} catch {
// Using document as EventTarget to support iOS 13 and older.
// Because EventTarget constructor just exists at iOS 14 and later.
this._et = document;
Expand Down
2 changes: 0 additions & 2 deletions src/signature_pad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ export default class SignaturePad extends SignatureEventTarget {
// Need to check curve for NaN values, these pop up when drawing
// lines on the canvas that are not continuous. E.g. Sharp corners
// or stopping mid-stroke and than continuing without lifting mouse.
/* eslint-disable no-restricted-globals */
if (
!isNaN(curve.control1.x) &&
!isNaN(curve.control1.y) &&
Expand All @@ -771,7 +770,6 @@ export default class SignaturePad extends SignatureEventTarget {

svg.appendChild(path);
}
/* eslint-enable no-restricted-globals */
},

(point, { penColor, dotSize, minWidth, maxWidth }) => {
Expand Down
Loading

0 comments on commit 6191456

Please sign in to comment.