This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function setupNetwork() { | |
const provider = window.ethereum; | |
if (!provider) { | |
console.error( | |
"Can't setup the BSC network on metamask because window.ethereum is undefined" | |
); | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
node: true, | |
browser: true, | |
es2021: true, | |
}, | |
parserOptions: { | |
sourceType: 'module', | |
}, | |
extends: ['plugin:prettier/recommended'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
node: true, | |
browser: true, | |
es2021: true, | |
}, | |
parserOptions: { | |
sourceType: 'module', | |
}, | |
overrides: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
node: true, | |
browser: true, | |
es2021: true, | |
}, | |
extends: ['plugin:prettier/recommended'], | |
rules: { | |
'prettier/prettier': 'warn', | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
node: true, | |
browser: true, | |
es2021: true, | |
}, | |
extends: ['plugin:prettier/recommended'], | |
rules: { | |
'prettier/prettier': 'warn', | |
}, |