Created
January 12, 2019 21:48
-
-
Save thejohnfreeman/a600ce36a2ceba7448355e73e1381117 to your computer and use it in GitHub Desktop.
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
semi = false | |
singleQuote = true | |
trailingComma = "all" |
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
" Asynchronous Lint Engine. | |
Plug 'w0rp/ale' | |
let g:ale_fixers = { | |
\ 'typescript': ['prettier'], | |
\} | |
let g:ale_fix_on_save = 1 |
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
"prettier": "^1.15.3", | |
"tslint": "^5.11.0", | |
"tslint-config-prettier": "^1.17.0", | |
"tslint-react": "^3.6.0", |
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
{ | |
"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