Advertisement
ILyaCyclone

Untitled

Mar 30th, 2021
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.40 KB | None | 0 0
  1. Cyclone@CycloneDell MINGW64 /c/Cyclone/workspace/otus-reactjs-hw (hw-02_board_lint-githook)
  2. $ git diff
  3. diff --git a/src/components/Board/Cell.tsx b/src/components/Board/Cell.tsx
  4. index 5ba3c80..598334d 100644
  5. --- a/src/components/Board/Cell.tsx
  6. +++ b/src/components/Board/Cell.tsx
  7. @@ -1,7 +1,7 @@
  8.  import React from "react";
  9.  
  10.  interface Props {
  11. -  highlighted: boolean;
  12. +        highlighted: boolean;
  13.    rowIndex: number;
  14.    colIndex: number;
  15.    cellClicked: (row: number, col: number) => void;
  16.  
  17. Cyclone@CycloneDell MINGW64 /c/Cyclone/workspace/otus-reactjs-hw (hw-02_board_lint-githook)
  18. $ git add src/components/Board/Cell.tsx
  19.  
  20. Cyclone@CycloneDell MINGW64 /c/Cyclone/workspace/otus-reactjs-hw (hw-02_board_lint-githook)
  21. $ git commit -m "test lint-staged"
  22. [STARTED] Preparing...
  23. [SUCCESS] Preparing...
  24. [STARTED] Running tasks...
  25. [STARTED] Running tasks for *.{js,jsx,ts,tsx,json}
  26. [STARTED] eslint --cache --fix
  27. [SUCCESS] eslint --cache --fix
  28. [SUCCESS] Running tasks for *.{js,jsx,ts,tsx,json}
  29. [SUCCESS] Running tasks...
  30. [STARTED] Applying modifications...
  31. [FAILED] Prevented an empty git commit!
  32. [STARTED] Reverting to original state because of errors...
  33. [SUCCESS] Reverting to original state because of errors...
  34. [STARTED] Cleaning up...
  35. [SUCCESS] Cleaning up...
  36.  
  37.   ⚠ lint-staged prevented an empty git commit.
  38.   Use the --allow-empty option to continue, or check your task configuration        
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement