Skip to content

Commit

Permalink
Pin eslint in precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Nov 9, 2023
1 parent d1474c2 commit 5052b19
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
types: [file]
additional_dependencies:
- '[email protected]'
- '@typescript-eslint/eslint-plugin'
- '@typescript-eslint/parser'
- 'eslint-plugin-prettier'
- 'eslint-config-prettier'
- '@typescript-eslint/eslint-plugin@5.55.0'
- '@typescript-eslint/parser@5.55.0'
- 'eslint-plugin-prettier@5.0.1'
- 'eslint-config-prettier@8.7.0'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"copy-webpack-plugin": "^10.0.0",
"eslint": "~8.36.0",
"eslint-config-prettier": "~8.7.0",
"eslint-plugin-prettier": "~4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"lerna": "^6.6.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.1",
"prettier": "^3.0.0",
"rimraf": "^3.0.2",
"typescript": "^5",
"webpack": "^5.76.3"
Expand Down
6 changes: 5 additions & 1 deletion packages/jupytercad-extension/src/sketcher/elements/point.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { IPoint, IPosition } from '../types';

export class Point implements IPoint {
constructor(x: number, y: number, public option?: { color: string }) {
constructor(
x: number,
y: number,
public option?: { color: string }
) {
this._x = x;
this._y = y;
}
Expand Down
Loading

0 comments on commit 5052b19

Please sign in to comment.