@loopback/eslint-config

ESLint configuration for LoopBack projects

Usage no npm install needed!

<script type="module">
  import loopbackEslintConfig from 'https://cdn.skypack.dev/@loopback/eslint-config';
</script>

README

@loopback/eslint-config

Shared ESLint config to enforce a consistent code style for LoopBack development

Installation

npm install --save @loopback/eslint-config

npm install --save-dev \
eslint \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-config-prettier \
eslint-plugin-eslint-plugin \
eslint-plugin-mocha

Basic Use

Add .eslintrc.json file to your project, for example:

{
  "extends": "@loopback/eslint-config"
}

NOTE:

Due to the limitation of how ESLint plugins are loaded, the peerDependencies of this module should be added to devDependencies of your package.json.

Contributions

Contributors

See all contributors.

License

MIT