eslint-config-3box

ESLint config for 3Box projects

Usage no npm install needed!

<script type="module">
  import eslintConfig3box from 'https://cdn.skypack.dev/eslint-config-3box';
</script>

README

eslint-config-3box

Shared ESLint configuration for 3Box projects.

Installation

eslint-config-3box only includes configurations and plugins. ESLint and Prettier must be installed in the project using the config.

npm install --dev eslint prettier
npm install --dev eslint-config-3box

Usage

In your project's .eslintrc.js file (or alternative configuration), add to the extends array:

module.exports = {
  extends: ['3box'],
}

Additional configurations are also available:

  • 3box/jest when using Jest for tests.
  • 3box/react when using React.
  • 3box/typescript when using TypeScript.

The Prettier configuration can be imported from the eslint-config-3box/prettier.config module.

License

Apache-2.0 OR MIT