1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/pages/create-account
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
..
connect-hardware Remove unused locale messages (#7190) 2019-09-18 20:29:46 -03:00
import-account Fix styles on 'import account' page, update help link (#6700) 2019-06-17 08:37:34 -02:30
create-account.component.js Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
create-account.container.js Refactor new-account.js (#7312) 2019-10-29 12:12:41 -04:00
index.js Refactor new-account.js (#7312) 2019-10-29 12:12:41 -04:00
new-account.component.js Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
new-account.container.js Refactor new-account.js (#7312) 2019-10-29 12:12:41 -04:00