Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bytpher/tslint-ns-angular

Recommended tslint configuration for NativeScript Angular applications.
https://github.com/bytpher/tslint-ns-angular

angular husky nativescript prettier tslint typescript

Last synced: about 1 month ago
JSON representation

Recommended tslint configuration for NativeScript Angular applications.

Awesome Lists containing this project

README

        

# TSLint NativeScript Angular

Recommended tslint configuration for NativeScript Angular applications.

## Requirements

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

```bash
npm i -D prettier prettier-tslint pretty-quick
```

Packages:

* [prettier](https://github.com/prettier/prettier): Prettier is an opinionated code formatter
* [prettier-tslint](https://github.com/azz/prettier-tslint): Formats your TypeScript using `prettier` followed by `tslint --fix``
* [pretty-quick](https://github.com/azz/pretty-quick): Runs Prettier on your changed files.

## Installation

```bash
npm i -D @bytpher/tslint-ns-angular
```

## Usage

```json
{
"extends": ["@bytpher/tslint-ns-angular"]
}
```

## Pre-Commit Hook

You can use [husky](https://github.com/typicode/husky) to configure a pre-commit hook to run [pretty-quick](https://github.com/azz/pretty-quick)

```bash
npm i -D husky
```

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

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

This configuration will run [pretty-quick](https://github.com/azz/pretty-quick) before each commit and formatting the staged files allowing us a seamless code format between all developers working in the project