<commit_before># Shared tslint config [![npm](https://img.shields.io/npm/v/@namics/tslint-config.svg)](https://www.npmjs.com/package/@namics/tslint-config)

> reusable tslint config

## Usage

`npm i -D tslint @namics/tslint-config`

**tslint.json**

```json
{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config"],
  "jsRules": {},
  "rules": {},
  "rulesDirectory": []
}
```

**package.json**

```json
  ...
  "scripts": {
    "lint:ts": "tslint 'src/**/*.{ts,tsx}'",
    ...
  },
  ...
```

## Usage with prettier

`npm i -D tslint tslint-config-prettier @namics/tslint-config`

**tslint.json**

```json
{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config", "tslint-config-prettier"],<commit_msg>docs: Explain what tslint-config-prettier does<commit_after># Shared tslint config [![npm](https://img.shields.io/npm/v/@namics/tslint-config.svg)](https://www.npmjs.com/package/@namics/tslint-config)

> reusable tslint config

## Usage

`npm i -D tslint @namics/tslint-config`

**tslint.json**

```json
{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config"],
  "jsRules": {},
  "rules": {},
  "rulesDirectory": []
}
```

**package.json**

```json
  ...
  "scripts": {
    "lint:ts": "tslint 'src/**/*.{ts,tsx}'",
    ...
  },
  ...
```

## Usage with prettier

The [`tslint-config-prettier`](https://www.npmjs.com/package/tslint-config-prettier) npm package disables all conflicting rules that may cause such problems. Prettier takes care of the formatting whereas tslint takes care of all the other things.

`npm i -D tslint tslint-config-prettier @namics/tslint-config`


**tslint.json**

```json
{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config", "tslint-config-prettier"],
{'fraction_non_alphanumeric': 0.21444954128440366, 'fraction_numerical': 0.0, 'mean_word_length': 4.057971014492754, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5755578', 'n_tokens_mistral': 717, 'n_tokens_neox': 665, 'n_words': 121}