Last active
November 16, 2020 02:03
-
-
Save wangpin34/4ed2533af0240a09cebd51339553488a to your computer and use it in GitHub Desktop.
vscode dev settings
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
// saved at root of repo, or global | |
registry = https://registry.npm.taobao.org | |
sass_binary_site = https://npm.taobao.org/mirrors/node-sass/ | |
electron_mirror = https://npm.taobao.org/mirrors/electron/ |
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
// saved at root of repo | |
{ | |
"printWidth": 140, | |
"tabWidth": 2, | |
"singleQuote": true, | |
"semi": false, | |
"jsxBracketSameLine": false, | |
"trailingComma": "es5", | |
"endOfLine": "lf", | |
} |
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
#!/bin/sh | |
# Retrieve git branch, the last commit | |
export BRANCH=$(git branch | grep '*' | awk '{print $2}') | |
export COMMIT=${git rev-parse HEAD} |
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
// saved at .vscode, or global | |
{ | |
"sass.disableAutoIndent": true, | |
"files.autoSave": "onWindowChange", | |
"sass.format.convert": false, | |
"sass.format.enabled": false, | |
"scss.lint.important": "warning", | |
"scss.lint.idSelector": "warning", | |
"scss.lint.float": "warning", | |
"scss.lint.duplicateProperties": "warning", | |
"sass.format.debug": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment