Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chanlito chanlito

🏠
Working from home
View GitHub Profile
@chanlito
chanlito / gist:8665e623d0826520a94c416cfce44d81
Created Aug 5, 2018 — forked from SimonSun1988/gist:2ef7db45e46b889783647d941ec15e4d
解決 Ubuntu "can’t set the locale; make sure $LC_* and $LANG are correct" 的錯誤
View gist:8665e623d0826520a94c416cfce44d81
## 安裝語系檔
`$ sudo locale-gen "en_US.UTF-8"`
## 重新設定語系檔
`$ sudo dpkg-reconfigure locales`
## 設定檔
View .editorconfig
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
TSLint Configuration
View tslint.json
{
"defaultSeverity": "warning",
"extends": [
"tslint-config-airbnb",
"tslint-config-prettier"
]
}
@chanlito
chanlito / .prettierignore
Created May 21, 2018
Prettier Ignored Files
View .prettierignore
# dependencies
package.json
# linters config
.eslintrc
tslint.json
# typescript config
client/tsconfig.json
server/tsconfig.json
View .prettierrc
{
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}