barchielAbyss opened a new pull request, #1109:
URL: https://github.com/apache/apisix-website/pull/1109

   ## Styles: 
   @SkyeYoung 
   abort :
   > commit HASH `a2b86a5f3cbb6482118d6ea9543fbad56963f1b7`
   > commit PR [fix: remove error 
page](https://github.com/apache/apisix-website/pull/1092)
   
   filePath: `apisix-website/website/src/components/HeroCanvas.tsx`
   remove raw-loader package, change 2 `es module` export Object
   
   ```ts
   interface HeroCanvas {
       fragment: string
       vertex: string
   }
   ```
   
   ## Changes:
   1. added the test framework `jest`, and git push auto check
   2. added project VsCode recommendation config
   
   
   ## WantChange:
   @SkyeYoung I think use `shell` run githook is not good, can i write in 
`package.json` like this?
   
   ```json
   // package.json
   ...
   "script": {
      "lint:eslint": "eslint --fix"
   },
    "husky": {
       "hooks": {
         "pre-commit": "lint-staged",
         "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
       }
     },
   ...
   ```
   
   ```
   // lint-staged.config
   
   module.exports = {
     '*.{js,ts}': ['yarn lint:eslint', 'yarn test'],
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to