@bytpher/tslint-ns-core

1.0.1 • Public • Published

TSLint NativeScript Core

Recommended tslint configuration for NativeScript Core applications.

Requirements

This package works with prettier for an quick and easy code format

npm i -D prettier prettier-tslint pretty-quick

Packages:

  • prettier: Prettier is an opinionated code formatter
  • prettier-tslint: Formats your TypeScript using prettier followed by `tslint --fix``
  • pretty-quick: Runs Prettier on your changed files.

Installation

npm i -D @bytpher/tslint-ns-core

Usage

{
  "extends": ["@bytpher/tslint-ns-core"]
}

Pre-Commit Hook

You can use husky to configure a pre-commit hook to run pretty-quick

npm i -D husky

Create a .huskyrc.json in the root of yor project and add the following configuration

{
  "hooks": {
    "pre-commit": "pretty-quick --staged"
  }
}

This configuration will run pretty-quick before each commit and formatting the staged files allowing us a seamless code format between all developers working in the project

Package Sidebar

Install

npm i @bytpher/tslint-ns-core

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

9.41 kB

Total Files

4

Last publish

Collaborators

  • henry-chavez