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

tslint-consistent-codestyle

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-consistent-codestyle

Additional rules to enforce constistent code style with tslint

  • 1.16.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is tslint-consistent-codestyle?

The tslint-consistent-codestyle package is a set of TSLint rules that aim to enforce a consistent coding style in TypeScript projects. It provides a variety of rules that help maintain code quality and readability by enforcing consistent naming conventions, import orders, and other stylistic choices.

What are tslint-consistent-codestyle's main functionalities?

Consistent Naming Conventions

This feature enforces consistent naming conventions for variables, functions, and other identifiers. The code sample shows a rule configuration that enforces camelCase naming for variables.

/* tslint.json */
{
  "rules": {
    "naming-convention": [true, {"type": "variable", "format": "camelCase"}]
  }
}

Consistent Import Order

This feature ensures that import statements are ordered consistently. The code sample demonstrates a rule that enforces imports to be ordered with lowercase names first.

/* tslint.json */
{
  "rules": {
    "import-order": [true, {"order": "lowercase-first"}]
  }
}

No Implicit Dependencies

This feature prevents the use of dependencies that are not explicitly listed in the project's package.json. The code sample shows a rule configuration that disallows implicit dependencies, even in development.

/* tslint.json */
{
  "rules": {
    "no-implicit-dependencies": [true, "dev"]
  }
}

Other packages similar to tslint-consistent-codestyle

Keywords

FAQs

Package last updated on 25 Sep 2019

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