1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages/send
Whymarrh Whitby b0890b6b32
Enforce a single boolean attr notation in JSX (#7465)
This changeset enables the ESLint rule enforcing a single notation for boolean
attributes in JSX—explictly setting the value to `true` is no longer allowed
(as it was never needed).[1]

From the docs for JSX:[2]

> If you pass no value for a prop, it defaults to `true`.

  [1]:https://github.com/yannickcr/eslint-plugin-react/blob/80935658/docs/rules/jsx-boolean-value.md
  [2]:https://reactjs.org/docs/jsx-in-depth.html#props-default-to-true

I have chosen to use this default as it the most consistent with HTML (a la
`checked` and `disabled`).
2019-11-18 19:53:41 -03:30
..
account-list-item Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
send-content Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
send-footer Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
send-header Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
tests Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
to-autocomplete Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
index.js Add token selection to the send screen (#6445) 2019-04-17 16:45:13 -02:30
send.component.js Ensure correct tx category when sending to contracts without tx data (#7252) 2019-10-08 04:29:37 +09:00
send.constants.js Fix e2e tests and gas default (#7267) 2019-10-08 14:14:20 -03:00
send.container.js Use AdvancedGasInputs in AdvancedTabContent (#7186) 2019-10-23 09:23:15 -03:00
send.scss Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
send.selectors.js Remove unused components (#7191) 2019-09-18 18:41:36 -03:00
send.utils.js Fix e2e tests and gas default (#7267) 2019-10-08 14:14:20 -03:00
to-autocomplete.component.js Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30