Skip to content

Commit

Permalink
refactor: enable arguments-order (#9035)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 17, 2024
1 parent f77a783 commit c13e925
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
],
"rules": {
"jest/prefer-importing-jest-globals": "off",
"sonarjs/arguments-order": "off",
"sonarjs/concise-regex": "off",
"sonarjs/no-angular-bypass-sanitization": "off",
"sonarjs/no-nested-conditional": "off",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export default class Example {
const x = Math.ceil(event.clientX - (rect.left + rect.width / 2));
const y = Math.ceil(event.clientY - (rect.top + rect.height / 2));

this.degrees = 180 - Math.atan2(x, y) * (180 / Math.PI);
this.degrees = Math.atan2(y, x) * (180 / Math.PI) + 90;
}
}

0 comments on commit c13e925

Please sign in to comment.