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
Show hidden characters
{ | |
"compilerOptions": { | |
"experimentalDecorators": true | |
} | |
} |
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/zsh | |
function lintit () { | |
OUTPUT=$(git diff --name-only | grep -E '(.js)$') | |
a=("${(f)OUTPUT}") | |
e=$(eslint -c eslint.json $a) | |
echo $e | |
if [[ "$e" != *"0 problems"* ]]; then | |
echo "ERROR: Check eslint hints." | |
exit 1 # reject |
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
{ | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"indentation": "tab", | |
"string-quotes": "single", | |
"no-duplicate-selectors": true, | |
"color-hex-case": "lower", | |
"color-hex-length": "short", | |
"selector-type-no-unknown": true, | |
"selector-no-qualifying-type": true, |
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
{ | |
"[javascript]": { | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true | |
}, | |
"[vue]": { | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true | |
}, | |
"eslint.options": { |
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
{ | |
"globals": {}, | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { |
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
'use strict'; | |
let Koa = require('koa'); | |
let jsonBody = require('koa-json-body'); | |
let router = require('./router'); | |
let defaultErrorHandler = require('./default-error-handler'); | |
module.exports = new Koa() | |
.use(defaultErrorHandler) | |
.use(jsonBody({ limit: '1mb', fallback: true, strict: true })) |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
language: node_js | |
node_js: | |
- "8.11" | |
install: | |
- npm install | |
cache: | |
directories: | |
- node_modules | |
script: | |
- npm test |
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
{ | |
"files.associations": { | |
"*.vue": "vue", | |
".stylelintrc": "json" | |
} | |
} |
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
/.DS_Store | |
/package-lock.json | |
*.code-workspace | |
/build | |
/dist |
OlderNewer