You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is not bad, but I would like the selective imports (e.g. config as dotenvConfig) to come after the default exports (e.g. hardhat-gas-reporter), and ideally be treated as separate grouped imports (as per the importOrderSeparation rule). E.g. like this:
// defaultimport"@nomiclabs/hardhat-etherscan";import"@nomiclabs/hardhat-waffle";import"@typechain/hardhat";import"hardhat-gas-reporter";import"solidity-coverage";// selective or namedimport{configasdotenvConfig}from"dotenv";import{HardhatUserConfig}from"hardhat/config";import{NetworkUserConfig}from"hardhat/types";import{resolve}from"path";// relativeimport"./tasks/accounts";import"./tasks/deploy";
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Given the following prettier configuration:
And the following imports:
This plugin reorders the imports like this:
Which is not bad, but I would like the selective imports (e.g.
config as dotenvConfig
) to come after the default exports (e.g.hardhat-gas-reporter
), and ideally be treated as separate grouped imports (as per theimportOrderSeparation
rule). E.g. like this:Would that be possible?
Beta Was this translation helpful? Give feedback.
All reactions