# @techmely/eslint-config-ts

> Eslint base config for typescript project

Latest version **1.0.1** (published 2021-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @techmely/eslint-config-ts
pnpm add @techmely/eslint-config-ts
yarn add @techmely/eslint-config-ts
bun add @techmely/eslint-config-ts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-12-18 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 22 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harry Tran <nhattq.coding@gmail.com> (https://ebugkia.com) |
| Maintainers | nhattq.coding, hieuhani |

## Links

- npm: https://www.npmjs.com/package/@techmely/eslint-config-ts
- Repository: https://github.com/TechMely/eslint-config-ts/tree/main/kimochi/typescript
- Issues: https://github.com/TechMely/eslint-config-ts/issues
- npm.io page: https://npm.io/package/@techmely/eslint-config-ts

## Dependencies (14)

- [eslint-plugin-yml](https://npm.io/package/eslint-plugin-yml.md) 0.12.0
- [eslint-plugin-html](https://npm.io/package/eslint-plugin-html.md) 6.2.0
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) 25.3.0
- [yaml-eslint-parser](https://npm.io/package/yaml-eslint-parser.md) 0.5.0
- [eslint-plugin-jsdoc](https://npm.io/package/eslint-plugin-jsdoc.md) 37.2.8
- [eslint-plugin-jsonc](https://npm.io/package/eslint-plugin-jsonc.md) 2.0.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) 2.25.3
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) 6.0.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) 39.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) 8.3.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) 5.7.0
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) 15.0.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) 5.7.0
- [eslint-plugin-simple-import-sort](https://npm.io/package/eslint-plugin-simple-import-sort.md) 7.0.0

## Recent versions

- 1.0.1 (latest) — 2021-12-18
- 1.0.0 — 2021-12-18
- 0.0.16 — 2021-10-30
- 0.0.15 — 2021-09-26
- 0.0.14 — 2021-09-26
- 0.0.13 — 2021-09-25
- 0.0.11 — 2021-09-24
- 0.0.10 — 2021-09-11
- 0.0.9 — 2021-09-07
- 0.0.8 — 2021-09-04
- 0.0.7 — 2021-09-04
- 0.0.6 — 2021-09-01
- 0.0.5 — 2021-08-29
- 0.0.4 — 2021-08-28
- 0.0.3 — 2021-08-28
- … 2 more at https://npm.io/package/@techmely/eslint-config-ts/versions

## README

# Eslint base config with typescript in practice

Basically, this base on `air-bnb-style` for typescript enterprise projects. It's good for DX and might be strict for consistency and professionalism.

Let's try this and it will never let you down! Hope you enjoy this with your team!

## Eslint base config includes

- eslint-config-airbnb
- eslint-config-prettier
- eslint-plugin-html
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-jsdoc
- eslint-plugin-jsonc
- eslint-plugin-promise
- eslint-plugin-simple-import-sort
- eslint-plugin-unicorn
- eslint-plugin-yml

## Install and Use

| Package Manager | Command                                              |
| --------------- | ---------------------------------------------------- |
| npm             | `npm i --save-dev @techmely/eslint-config-ts`        |
|                 | `npm i --save-dev @techmely/eslint-config-vue-ts`    |
|                 | `npm i --save-dev @techmely/eslint-config-react-ts`  |
|                 | `npm i --save-dev @techmely/eslint-config-svelte-ts` |
| yarn            | `yarn add -D @techmely/eslint-config-ts`             |
|                 | `yarn add -D @techmely/eslint-config-vue-ts`         |
|                 | `yarn add -D @techmely/eslint-config-react-ts`       |
|                 | `yarn add -D @techmely/eslint-config-svelte-ts`      |
| pnpm            | `pnpm add -D @techmely/eslint-config-ts`             |
|                 | `pnpm add -D @techmely/eslint-config-vue-ts`         |
|                 | `pnpm add -D @techmely/eslint-config-react-ts`       |
|                 | `pnpm add -D @techmely/eslint-config-svelte-ts`      |

In your `.eslintrc.js`. Just copy and paste this

```js
module.exports = {
  extends: ['@techmely/eslint-config-ts'],
  parserOptions: {
    tsconfigRootDir: __dirname,
    parser: '@typescript-eslint/parser',
    // Depends on your project use whatever tsconfig.json file
    project: ['tsconfig.json'],
    ecmaFeatures: {
      modules: true,
    },
  },
};
```

For `.eslintrc` json file

```json
{
  "extends": ["@techmely/eslint-config-ts"],
  "parserOptions": {
    "tsconfigRootDir": "__dirname",
    "parser": "@typescript-eslint/parser",
    "project": ["tsconfig.json"],
    "ecmaFeatures": {
      "modules": true
    }
  }
}
```

### Note: You can change any rules which you want

---
_Source: https://npm.io/package/@techmely/eslint-config-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
