Giter VIP home page Giter VIP logo

tslint-config-kata's Introduction

tslint-config-kata

TSLint config used at Kata.ai

This is the common TSLint config used by projects at Kata.ai. All TSLint rules follow the Kata Platform Development Standard.

Installation

Install tslint and tslint-config-kata using your favourite package manager:

# yarn
yarn add --dev tslint tslint-config-kata
# npm
npm install --save-dev tslint tslint-config-kata

Then, on your tslint.json file, extend tslint-config-kata.

{
  "extends": ["tslint-config-kata"]
}

If you're using this TSLint config for React-based projects, extend tslint-config-kata/react instead.

{
  "extends": ["tslint-config-kata/react"]
}

For more setups, take a look at the templates directory

Versioning

Note that this package does not specifically follow Semantic Versioning, since all changes in this package are relative to the changes in our Development Standard. Major version bumps will occur when we transition into a new major version of TSLint.

To recap:

  • major: Will be bumped when we transition to a new major version of TSLint
  • minor: Potentially breaking changes that's still within the same major version of TSLint
  • patch: Minor patches/bugfixes

Using Prettier

Prettier is a tool to automatically format your code during save. It supports various editors, from VSCode, Atom, Sublime, and even Emacs.

To use this TSLint config in conjunction with Prettier, copy the .prettierrc file in this repository and paste it to your project.

Then install the Prettier TSLint config and plugin:

$ yarn add --dev tslint-plugin-prettier tslint-config-prettier prettier

And finally, include them as follows. (IMPORTANT: tslint-config-prettier MUST be extended last in the extends array!)

{
  "rulesDirectory": ["tslint-plugin-prettier"],
  "extends": ["tslint-config-kata", "tslint-config-prettier"],
  "linterOptions": {
    "exclude": ["node_modules/**"]
  },
  "rules": {
    "prettier": true
  }
}

Contributing

Issues and Pull Requests welcome! Please read the Contributing Guidelines beforehand.

License

MIT (c) 2018 Kata.ai.

Maintainers

tslint-config-kata's People

Contributors

dependabot[bot] avatar nurcahyopujo avatar resir014 avatar reyhansofian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tslint-config-kata's Issues

Prettier guide

Include a guide on the README for using this TSLint config with Prettier.

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.