1.0.6 • Published 5 years ago

eslint-config-pete v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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
  1. You can see in your package.json there are now a big list of devDependencies.

  2. 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"
  ]
}
  1. 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

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago