@short.io/style-guide

This package provides basic ESLint and Prettier rules for code style.

Usage no npm install needed!

<script type="module">
  import shortIoStyleGuide from 'https://cdn.skypack.dev/@short.io/style-guide';
</script>

README

Code style guide

This package provides basic ESLint and Prettier rules for code style.

Install

Since ESLint can search its configs only in files prefixed with eslint-config, we need to install the package under a different module name:

npm i -D @short.io/eslint-config@npm:@short.io/style-guide

Usage

For ESLint rules usage extends the rules in your .eslintrc.js.

module.exports = {
    extends: ['@short.io/eslint-config/backend'],
};

For Prettier rules usage include the rules right in your package.json:

"prettier": "@short.io/eslint-config/prettier"