This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| [ | |
| { | |
| "key": "ctrl+shift+a", | |
| "command": "editor.emmet.action.wrapIndividualLinesWithAbbreviation", | |
| "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus" | |
| } | |
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| os: linux | |
| language: node_js | |
| node_js: | |
| - "8" | |
| install: | |
| - npm install | |
| cache: | |
| directories: | |
| - node_modules | |
| script: |
This file contains hidden or 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 |
OlderNewer