Giter VIP home page Giter VIP logo

tslint-config's Introduction

@detroit-labs/tslint-config

npm version Build Status semantic-release Sponsored by Detroit Labs

TSLint configurations used in Detroit Labs' TypeScript projects

Installation

$ yarn add @detroit-labs/tslint-config --dev

Usage

To use the lint configuration with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node_modules folder:

{
  "extends": ["@detroit-labs/tslint-config"],
  "rules": {
    // override rules here
    "semicolon": false
  }
}

There are two primary configurations supplied for convenience:

  • @detroit-labs/tslint-config/react: contains extra configuration for a TypeScript React project
  • @detroit-labs/tslint-config/node: contains extra configuration for a Node server project

Usage is the same as above:

{
  "extends": ["@detroit-labs/tslint-config/react"],
  "rules": {
    // override rules here
    "semicolon": false
  }
}

To lint all TypeScript files in the src/ directory, for example, run tslint -c tslint.json 'src/**/*.{ts,tsx}'.

Development

Note

This project uses semantic-release for fully automated NPM package publishing. Instead of using git commit, please use yarn commit and follow the prompts for entering a conventional changelog message. This is crucial for letting tools manage package publishing and semantic versioning. ๐Ÿค– Please see this blog post for a run through of the tooling used in this repo. If you are using GitHub Desktop to commit to this repo, please refer to the AngularJS Git Commit Message Conventions (or use the command-line to commit ๐Ÿค“).

Workflow

  • Install dependencies and commit hooks with yarn install
  • Make changes to the TSLint configuration(s)
  • Stage changes - git add .
  • Create a conventional commit - yarn commit
  • Push to GitHub and open a pull request

Changelog

See the GitHub release history.

tslint-config's People

Contributors

macklinu avatar slaunchaman avatar dependabot[bot] avatar

Stargazers

Sean  avatar

Watchers

Nathan Dotz avatar Ryan Donnelly avatar Terry May avatar James Cloos avatar Matt Tyndall avatar Steve Barman avatar Bob Zabor avatar Tobi Adebisi avatar Anne avatar Nate avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.