@berun/fluent-tslint
TypeScript icon, indicating that this package has built-in type declarations

7.0.3 • Public • Published

@berun/fluent-tslint

Use a chaining API to generate and simplify the modification of TSLint configurations.

_Note: This is is part of the broader @berun/fluent suite of configurations, but may be used standalone.

Example

export default function(berun: Berun, options) {
  berun.tslint.extends
    .add('tslint:recommended')
    .add('tslint-react')
    .end()
    .rules.merge({
      'arrow-parens': false,
      eofline: false,
      'interface-name': false,
      'jsx-boolean-value': false,
      'jsx-no-lambda': false,
      'jsx-no-multiline-js': false,
      'member-access': false,
      'no-return-await': false,
      'no-submodule-imports': false,
      'no-trailing-whitespace': false,
      'no-var-requires': false,
      'object-literal-sort-keys': false,
      'only-arrow-functions': false,
      'ordered-imports': false,
      'prefer-conditional-expression': false,
      semicolon: [true, 'always', 'ignore-bound-class-methods'],
      'trailing-comma': false,
      'variable-name': [
        true,
        'ban-keywords',
        'check-format',
        'allow-leading-underscore',
        'allow-pascal-case'
      ]
    })
    .end()
}

Package Sidebar

Install

npm i @berun/fluent-tslint

Weekly Downloads

3

Version

7.0.3

License

MPL-2.0

Unpacked Size

19.5 kB

Total Files

5

Last publish

Collaborators

  • tinialabs1
  • guycreate