Closed ysulyma closed 1 year ago
@ysulyma Great addition! π Could you please solve the conflicts so we can start reviewing and testing the changes?
@raphaelpor sorry for late reply, have rebased now!
Thanks @ysulyma,
But looks like your tests are failing. Could you help us checking it?
Have a nice day. π
@raphaelpor should be fixed now!
Thanks for your contribution and patience, @ysulyma. I will proceed with the merge. π
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm test
) were run locally and passedPull request type
Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [x] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? In HTML, [boolean attributes always default to `false`](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes). For example, we have the attributes `disabled` and `noValidate` instead of `enabled="false"` and `validate="false"`. This PR adds a rule to enforce similar behavior in Stencil components. ## What is the new behavior? Added new rule `ban-default-true` to warn about Props which default to `true`. ## Does this introduce a breaking change? - [x] Yes - [ ] No Existing applications would need to change any Props that default to `true`. ## Testing Added unit tests. ## Other information