prettieslint

Add prettier + eslint to your project

Usage no npm install needed!

<script type="module">
  import prettieslint from 'https://cdn.skypack.dev/prettieslint';
</script>

README

prettieslint

you need prettier in your life. you also need eslint because reasons.

npx prettieslint

now your codebase will be pretty and make eslint not cry.

Default rules

Note that there are no default rules enabled other than the three Prettier-related ones (semi, singleQuote, trailingComma). You can easily enable the default eslint rules by adding eslint:recommended to the extends array in your .eslintrc.js:

extends: ['prettier', 'eslint:recommended']

This does not require any additional dependencies.