Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
Created January 12, 2019 21:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejohnfreeman/a600ce36a2ceba7448355e73e1381117 to your computer and use it in GitHub Desktop.
Save thejohnfreeman/a600ce36a2ceba7448355e73e1381117 to your computer and use it in GitHub Desktop.
semi = false
singleQuote = true
trailingComma = "all"
" Asynchronous Lint Engine.
Plug 'w0rp/ale'
let g:ale_fixers = {
\ 'typescript': ['prettier'],
\}
let g:ale_fix_on_save = 1
"prettier": "^1.15.3",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.17.0",
"tslint-react": "^3.6.0",
{
"extends": ["tslint-config-prettier", "tslint-react"],
"rules": {
"jsx-boolean-value": false,
"jsx-curly-spacing": "always",
"jsx-equals-spacing": "never",
"jsx-no-bind": true,
"jsx-no-multiline-js": false,
"jsx-self-close": true,
"jsx-space-before-trailing-slash": true,
"jsx-wrap-multiline": false,
"max-line-length": [true, {"limit": 80, "ignore-pattern": "^\\s*//"}],
"member-access": true,
"no-empty": false,
"no-unnecessary-type-assertion": false,
// Deprecated, but enabled in tslint-config-standard.
// https://github.com/palantir/tslint/issues/4046
"no-unused-variable": false,
"prefer-readonly": true,
// Prettier removes these always.
"space-before-function-paren": false,
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"imports": "always",
"exports": "always",
// Prettier removes these sometimes.
"functions": "ignore",
// Prettier removes these always.
"typeLiterals": "never"
},
"singleline": "never"
}
],
"variable-name": [
true,
"check-format",
"allow-pascal-case",
"allow-leading-underscore",
"allow-trailing-underscore"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment