forked from MetaMask/metamask-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand
prettier
coverage (MetaMask#346)
All Markdown, JavaScript, and TypeScript files are now covered by `prettier` in the `lint` script, excluding build files. Aside from the adjustment to the npm `lint` script, all other changes are the output of `yarn lint:fix`.
- Loading branch information
Showing
6 changed files
with
106 additions
and
75 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
|
||
|
||
import EthConnectButton from './components/EthConnectButton'; | ||
import EthAsyncConnectButton from './components/EthAsyncConnectButton'; | ||
import ChangeAccount from './components/ChangeAccount'; | ||
import SendTransaction from './components/SendTransaction'; | ||
|
||
export default ({ Vue, isServer }) => { | ||
if (!isServer) { | ||
import('vue-toasted' /* webpackChunkName: "notification" */).then((module) => { | ||
Vue.use(module.default) | ||
}) | ||
import('vue-toasted' /* webpackChunkName: "notification" */).then( | ||
(module) => { | ||
Vue.use(module.default); | ||
} | ||
); | ||
} | ||
|
||
Vue.component('EthConnectButton', EthConnectButton); | ||
Vue.component('EthAsyncConnectButton', EthAsyncConnectButton); | ||
Vue.component('ChangeAccount', ChangeAccount); | ||
Vue.component('SendTransaction', SendTransaction); | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = [ | |
text: 'Guide', | ||
link: '/guide/', | ||
}, | ||
] | ||
]; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
require('dotenv').config() | ||
require('dotenv').config(); | ||
|
||
const { dev, build } = require('vuepress') | ||
const config = require('../docs/.vuepress/config')() | ||
const { dev, build } = require('vuepress'); | ||
const config = require('../docs/.vuepress/config')(); | ||
|
||
const command = process.argv[2] | ||
const command = process.argv[2]; | ||
|
||
switch (command) { | ||
case 'build': | ||
build(config) | ||
return | ||
build(config); | ||
return; | ||
|
||
case 'dev': | ||
dev(config) | ||
return | ||
dev(config); | ||
return; | ||
|
||
default: | ||
throw new Error(`Unrecognized command "${command}".`) | ||
throw new Error(`Unrecognized command "${command}".`); | ||
} |