Initialize ESLint
Install
yarn add -D eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
.eslintrc file
loglevel=http | |
progress=false | |
registry=https://registry.npm.taobao.org | |
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ | |
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ | |
electron_mirror=https://npm.taobao.org/mirrors/electron/ | |
chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver/ |
alias get-editorconfig="curl https://raw.githubusercontent.com/vuejs/vue/dev/.editorconfig -O" |
npm set registry https://registry.npm.taobao.org # 注册模块镜像 | |
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
## 以下选择添加 | |
npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chromedriver 二进制包镜像 | |
npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver # operadriver 二进制包镜像 | |
npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs # phantomjs 二进制包镜像 | |
npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass # node-sass 二进制包镜像 | |
npm set electron_mirror http://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像 |
Initialize ESLint
Install
yarn add -D eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
.eslintrc file
choco (需要管理员权限)
choco config set proxy http://127.0.0.1:1080
# choco config unset proxy
choco install git
choco install node-lts
choco install yarn --ignore-dependencies
# 更新
/** | |
* https://blog.httpwatch.com/2017/11/15/installing-a-chrome-extension-without-an-internet-connection/ | |
*/ | |
const args = process.argv | |
if (args.length !== 4) { | |
console.error('usage: node get-chrome-crx.js chromeVersion extentionID') | |
} else { | |
const chromeVersion = args[2] // chrome version (eg. 67) | |
const extentionID = args[3] // extension id (from chrome store URL) |
nvm install node --reinstall-packages-from=node | |
nvm install lts/* --reinstall-packages-from=node |
# 若安装包里自带卸载删不干净可以用以下命令 | |
rm -rf /Library/Input\ Methods/SogouInput.app | |
rm -rf $HOME/Library/Caches/SogouServices | |
rm -rf $HOME/.sogouinput |
# sudo apt update
sudo zypper ref
# sudo apt upgrade
udo zypper update
# install yarn classic
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
sudo zypper ar -f https://dl.yarnpkg.com/rpm/ Yarn
/\_/\
( o.o )
> ^ <