# eslint-config-pete

> ESLint and Prettier Config from Pete

Latest version **1.0.6** (published 2019-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-pete
pnpm add eslint-config-pete
yarn add eslint-config-pete
bun add eslint-config-pete
```

## 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.6 |
| Published | 2019-08-26 |
| First published | 2019-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pete Arevalo |
| Maintainers | petegarevalo |
| Keywords | javascript, ecmascript, vue, eslint, lint, config, prettier |

## Links

- npm: https://www.npmjs.com/package/eslint-config-pete
- Repository: https://github.com/PeteyRev/eslint-prettier-config
- Homepage: https://github.com/PeteyRev/eslint-prettier-config#readme
- Issues: https://github.com/PeteyRev/eslint-prettier-config/issues
- npm.io page: https://npm.io/package/eslint-config-pete

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2019-08-26
- 1.0.5 — 2019-08-16
- 1.0.4 — 2019-08-11
- 1.0.3 — 2019-08-10
- 1.0.2 — 2019-08-10
- 1.0.1 — 2019-08-10
- 1.0.0 — 2019-08-10
- 0.0.5 — 2019-08-10
- 0.0.4 — 2019-08-10
- 0.0.3 — 2019-08-10
- 0.0.2 — 2019-06-21
- 0.0.1 — 2019-06-21

## README

# Eslint and Prettier Setup with VSCode
A portable eslint/prettier config setup with vscode. 

## Installation

1. If you don't already have a `package.json` file, create one with `npm init`.

2. Then we need to install everything needed by the config:

```
npx install-peerdeps --dev eslint-config-pete
```

3. You can see in your package.json there are now a big list of devDependencies.

4. Create a `.eslintrc` file in the root of your project's directory (it should live where package.json does). Your `.eslintrc` file should look like this:

```
{
  "extends": [
    "pete"
  ]
}
```
5. Update VSCode settings:
```
	"editor.formatOnSave": true,
	// turn it off for JS and JSX, we will do this via eslint
	"[javascript]": {
		"editor.formatOnSave": false
	},
	// tell the ESLint plugin to run on save
	"eslint.autoFixOnSave": true,
	// vetur config
	"vetur.format.defaultFormatterOptions": {
		"js-beautify-html": {
			"wrap_attributes": "force-expand-multiline",
		},
		"prettyhtml": {
			"printWidth": 100,
			"singleQuote": false,
			"wrapAttributes": false,
			"sortAttributes": false
		},
		"prettier": {
			"singleQuote": true,
			"trailingComma": "none"
		}
	}
  ```
  ## Acknowledgement

  Credit Wes Bos https://github.com/wesbos/eslint-config-wesbos

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