diff --git a/.husky/pre-commit b/.husky/pre-commit index aebccf15e076..d8beb6c634b2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -5,5 +5,6 @@ npx validate-branch-name npm run scripts:check-commit-mail +# TODO: Those two include redundant lintings npx lint-staged npm run lint diff --git a/.jscpd.json b/.jscpd.json index f2b18f4b4472..d7a681592a41 100644 --- a/.jscpd.json +++ b/.jscpd.json @@ -39,6 +39,7 @@ "showcases/react-showcase/src/components/radio/index.tsx", "showcases/react-showcase/src/components/alert/index.tsx", "showcases/vue-showcase/src/components/form/Form.vue", + "showcases/angular-showcase/.angular/cache/**", "packages/components/src/components/**/*.spec.tsx", "packages/components/src/components/tag/tag.spec.tsx", "**/**config.ts", diff --git a/.lintstagedrc b/.lintstagedrc index 0a8622867993..3e157b854e69 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,5 +1,5 @@ { "*.{css,scss}": "stylelint --fix", "*.{js,ts,tsx}": ["xo --fix", "prettier --write"], - "*.!{js,ts,tsx}": "prettier --write --ignore-unknown" + "*.!{js,ts,tsx}": "prettier --write --ignore-unknown" } diff --git a/docs/how-to-develop-a-component.md b/docs/how-to-develop-a-component.md index 610919bc87b8..60dd1bf63d19 100644 --- a/docs/how-to-develop-a-component.md +++ b/docs/how-to-develop-a-component.md @@ -59,7 +59,7 @@ We use [Mitosis](https://github.com/BuilderIO/Mitosis/tree/main/docs) to develop 1. You cannot use functions directly in a Mitosis component. A function has to be inside the `state`. So add your function to the `model.ts` `DBMyAwesomeComponentDefaultState`. Then you can define your component inside the `.tsx` file and use it in the `jsx` with `state.myAwsomeFunction()`. 2. Try to enable multiple ways of data-binding: For example in `select` you are able to pass in a list of `