# prettier-config-etv

> Prettier Integration with ESLint/TSLint/Typescript/VanillaJS

Latest version **1.0.0** (published 2020-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install prettier-config-etv
pnpm add prettier-config-etv
yarn add prettier-config-etv
bun add prettier-config-etv
```

Provides the command `prettier-config-etv`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-17 |
| First published | 2020-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 366.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anurag Jain, Manish Kumar |
| Maintainers | anuragjain11 |
| Keywords | prettier, prettier-config |

## Links

- npm: https://www.npmjs.com/package/prettier-config-etv
- npm.io page: https://npm.io/package/prettier-config-etv

## Dependencies (6)

- [npm](https://npm.io/package/npm.md) ^6.14.4
- [tslint](https://npm.io/package/tslint.md) ^6.1.2
- [inquirer](https://npm.io/package/inquirer.md) ^7.1.0
- [prettier](https://npm.io/package/prettier.md) ^2.0.1
- [chalk-pipe](https://npm.io/package/chalk-pipe.md) ^3.0.0
- [typescript](https://npm.io/package/typescript.md) ^3.8.3

## 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-17

## README

# Prettier

Prettier Integration with ESLint/TSLint/Typescript

## To install package 
`npm i -g prettier-config-etv` 
<br />
OR
<br />
`npm i prettier-config-etv --save`
### After Installation
`prettier-config-etv --init`
<br />
OR
<br />
`node_module/.bin/prettier-config-etv`
<br />
OR
<br />

via npx:
`npx prettier-config-etv`

### Steps
After installation user will be prompted if they are using TSLINT, ESLINT or VanillaJs.

### ESLint
After selecting ESLINT user will be prompted for typescrpt usage
<br />
`Is Typescript Exist? (y/n)`
<br />
<b>Option 1: </b>
<br />
`'y'`. ESLINT with Typescript. Following dependencies will be added to your package.json.
<br/>

   a) `ESLint`
   <br/>
   b) `ESLint-Config-Prettier`: ESLint Prettier Mixin.
   <br/>
   c) `ESLint-Config-React-Lint`: ESLint Rules Set.
   <br/>
   d) `ESLint-Plugin-Import`: ESLint Plugin for Import/Expor and ES6+ syntax.
   <br/>
   e) `ESLint-Plugin-Prettier`: ESLint Prettier Plugin.
   <br/>

   ### Overide Default Configuration
   Within `.eslintrc.js` add or remove rules like below:
<br />
   `"rules": {`<br/>
      `'@typescript-eslint/indent': [2, 2]`<br/>
   `}`
<br />
<b>Option 2: </b>
<br />
`'n'`. ESLint with JSX. Following dependencies will be added to your package.json.

   a) `ESLint`
   <br/>
   b) `ESLint-Config-Prettier`: ESLint Prettier Mixin.
   <br/>
   c)` ESLint-Config-Angulars-Lint`: ESLint Rules Set.
   <br />
   d) `ESLint-Plugin-Import`: ESLint Plugin for Import/Expor and ES6+ syntax.
   <br/>
   e) `ESLint-Plugin-Prettier`: ESLint Prettier Plugin.
   <br/>

   <!-- ![Screenshot](https://i.imgur.com/TH0IHxe.png) -->

   ### Overide Default Configuration
   Within `.eslintrc.js` add or remove rules like below:

   `"rules": {`<br/>
      `"semi": [0, "never"],`<br/>
      `"quotes":[ 1, "single", "avoid-escape"]`<br/>
   `}`
   
   <!-- ![Screenshot](https://i.imgur.com/EStlwh4.png) -->

### TSLint
After selecting TSLint following dependencies will be added to your package.json.

   a) `TSLint`
   <br />
   b) `TSLint-Plugin-Prettier`: TSLint Prettier Plugin.

   <!-- ![Screenshot](https://i.imgur.com/9rUfU8B.png) -->

### Overide Default Configuration
   Within `tslint.json` add or remove rules like below:

   `"rules": {`<br/>
      `"semi": [0, "never"],`<br/>
      `"quotes":[ 1, "single", "avoid-escape"]`<br/>
   `}`
   
   <!-- ![Screenshot](https://i.imgur.com/n7KCNMT.png) -->


### Vanillajs

### Overide Default Configuration
   Within `.eslintrc.js` add or remove rules like below:

   `"module.exports"= {`<br/>
      `...require('@prettier-config-etv'),`<br/>
      `semi: false`<br/>
   `}`
   
   <!-- ![Screenshot](https://i.imgur.com/uIeoVvT.png) -->


## Uninstall

If installed via npx:
<br />
<br />
`prettier-config-etv remove` 
<br />
<br />
OR 
<br />
<br />
`node_module/.bin/prettier-config-etv remove`

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