TSLint config for the Fivestars TypeScript Style Guide
This document is based off the Airbnb JavaScript Style Guide and the Airbnb React/JSX Style Guide. The exceptions are listed below.
align: [false]
brace-style: 'stroustrop'
eofline: true
function-name: null
jsx-no-multiline-js: false
max-line-length: [true, 120]
member-access: false
object-shorthand-properties-first': false
quotemark: [true, 'single', 'jsx-double']
semicolon: [true, 'always', 'ignore-bound-class-methods']
ter-indent: [ true, 4, { 'SwitchCase': 1 }]
trailing-comma: [true, {'multiline': 'never', 'singleline': 'never'}]
variable-name: [true, 'ban-keywords', 'allow-leading-underscore']
npm install tslint-config-fivestars --save-dev
In tslint.json
:
{
"extends": "tslint-config-fivestars"
}
Apache 2.0