Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webdev-tools/tslint-airbnb-styleguide

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webdev-tools/tslint-airbnb-styleguide

A TSLint config for Airbnb JavaScript Styleguide highly opinionated

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TSLint Airbnb Style Guide config

A TSLint config for Airbnb JavaScript Style Guide highly opinionated and customizable

This project is inspirrated by tslint-config-airbnb.

The main difference is that this project also includes more rules provided not only by eslint but also by TsLint to strict even more the validations.

Installation

npm i -S @webdev-tools/tslint-airbnb-styleguide

Usage

You can remove all rules on your tslint.json and only set:

{
  "extends": "tslint-airbnb-styleguide"
}

Usage on Angular CLI projects

Angular has its own Style Guide and requires additional rules:

{
  "extends": "tslint-airbnb-styleguide",
  "rulesDirectory": [
    "node_modules/codelyzer"
  ],
  "rules": {
    "directive-selector": [
      true,
      "attribute",
      ["app"],
      "camelCase"
    ],
    "component-selector": [
      true,
      "element",
      ["app"],
      "kebab-case"
    ],
    "no-output-on-prefix": true,
    "use-input-property-decorator": true,
    "use-output-property-decorator": true,
    "use-host-property-decorator": true,
    "no-input-rename": true,
    "no-output-rename": true,
    "use-life-cycle-interface": true,
    "use-pipe-transform-interface": true,
    "component-class-suffix": true,
    "directive-class-suffix": true,
    "no-unused-variable": true
  }
}

Rules Available

License

Apache 2.0

Keywords

FAQs

Package last updated on 19 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc