# @modyqyw/eslint-config-ts

> An ESLint shareable config for typescript.

Latest version **1.0.0** (published 2020-05-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-09 |
| First published | 2020-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 4 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ModyQyW |
| Maintainers | modyqyw |
| Keywords | eslint, config, typescript |

## Links

- npm: https://www.npmjs.com/package/@modyqyw/eslint-config-ts
- Repository: https://github.com/Millcloud/eslint-config-ts
- Homepage: https://github.com/Millcloud/eslint-config-ts#readme
- Issues: https://github.com/Millcloud/eslint-config-ts/issues
- npm.io page: https://npm.io/package/@modyqyw/eslint-config-ts

## Dependencies (4)

- [eslint](https://npm.io/package/eslint.md) ^6.8.0
- [typescript](https://npm.io/package/typescript.md) ^3.8.3
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^2.31.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^2.31.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-05-09

## README

# @modyqyw/eslint-config-ts

An ESLint shareable config.

## Usage

- Install the config.

```sh
npm i eslint@~6.8.0 typescript@～3.8.0 @modyqyw/eslint-config-ts@~1.0.0 -D
```

For yarn, run scripts below.

```sh
yarn add eslint@~6.8.0 typescript@～3.8.0 @modyqyw/eslint-config-ts@~1.0.0 -D
```

- Set up.

```js
// .eslintrc.js
module.exports = {
  extends: ['@modyqyw/ts']
}

```

- For VSCode
  - Install plugins.
    - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
    - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
    - [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
  - Set up `Settings.json`. Then `F1` => `Format Document`(call vetur for `*.vue` files and prettier for other files) => Save File(call ESLint).

```json
{
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "typescript": "typescriptreact",
    "json": "jsonc"
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "vue-html"
  ],
  "files.eol": "\n",
  "files.associations": {
    "*.js": "javascriptreact",
    "*.ts": "typescriptreact",
    "*.wxml": "html",
    "*.wxs": "javascript",
    "*.wxss": "css",
    "*.axml": "html",
    "*.sjs": "javascript",
    "*.acss": "css",
    "*.wpy": "html",
    "*.json": "jsonc",
    "*.nvue": "vue"
  },
  "vetur.format.defaultFormatterOptions": {
    "prettyhtml": {
      "wrapAttributes": true
    }
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  }
}
```

- For WebStorm
  - TODO

## More Config

- [@modyqyw/eslint-config-vue](https://github.com/Millcloud/eslint-config-vue)
- [@modyqyw/eslint-config-vue-ts](https://github.com/Millcloud/eslint-config-vue-ts)
- [@modyqyw/eslint-config-react](https://github.com/Millcloud/eslint-config-react)
- [@modyqyw/eslint-config-react-ts](https://github.com/Millcloud/eslint-config-react-ts)
- [@modyqyw/eslint-config](https://github.com/Millcloud/eslint-config)

## License

[MIT](./LICENSE)

Copyright (c) 2020-present Millcloud

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