Skip to content

Instantly share code, notes, and snippets.

View chanlito's full-sized avatar
🏠
Working from home

Chanlito chanlito

🏠
Working from home
View GitHub Profile
@chanlito
chanlito / gist:8665e623d0826520a94c416cfce44d81
Created August 5, 2018 10:35 — forked from SimonSun1988/gist:2ef7db45e46b889783647d941ec15e4d
解決 Ubuntu "can’t set the locale; make sure $LC_* and $LANG are correct" 的錯誤
## 安裝語系檔
`$ sudo locale-gen "en_US.UTF-8"`
## 重新設定語系檔
`$ sudo dpkg-reconfigure locales`
## 設定檔
@chanlito
chanlito / .editorconfig
Created May 21, 2018 14:42
Editor Config
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@chanlito
chanlito / tslint.json
Created May 21, 2018 14:41
TSLint Configuration
{
"defaultSeverity": "warning",
"extends": [
"tslint-config-airbnb",
"tslint-config-prettier"
]
}
@chanlito
chanlito / .prettierignore
Created May 21, 2018 14:40
Prettier Ignored Files
# dependencies
package.json
# linters config
.eslintrc
tslint.json
# typescript config
client/tsconfig.json
server/tsconfig.json
@chanlito
chanlito / .prettierrc
Last active May 21, 2018 14:40
Prettier
{
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}