CasperDash / casperdash-extension

Casper blockchain wallet
https://casperdash.io
MIT License
6 stars 5 forks source link

[Refactor] Improve coding convention #355

Open 0xkynz opened 1 year ago

0xkynz commented 1 year ago

Is your feature request related to a problem? Please describe.

Problem:

          transferFee: getConfigKey('CSPR_TRANSFER_FEE'),

Should:

          transferFee: getConfigKey(CONFIGS.CSPR_TRANSFER_FEE),
import React from 'react'; // React should come first
import PropTypes from 'prop-types'; // React-related imports

import SomeThirdPartyLibrary from 'some-library'; // Third-party library imports
import AnotherThirdPartyLibrary from 'another-library';

import SomeAppSpecificComponent from './SomeAppSpecificComponent'; // Application-specific imports
import AnotherAppSpecificComponent from './AnotherAppSpecificComponent';