@seamly/eslint-config

3.1.0 • Public • Published

Seamly eslint-config

This is the default eslint configuration for @seamly/* implementations.

Installation

yarn add -D @seamly/eslint-config
// or
npm install -D @seamly/eslint-config

Usage

This package can be used as @seamly/eslint-config following the Eslint documentation on Extending configuration files.

Editing .eslintrc.js

module.exports = {
  ...
  extends: [
    '@seamly/eslint-config'
  ]
  ...
}

Usage with React

For react-specific defaults, the package exports a react-ruleset which implements eslint-plugin-react and eslint-plugin-react-hooks, including:

  • react-hooks/rules-of-hooks
  • react-hooks/exhaustive-deps

This ruleset implements on top of the default @seamly/eslint-config.

module.exports = {
  ...
  extends: [
    '@seamly/eslint-config/react'
  ]
  ...
}

Usage in a webpack environment

For webpack-specific defaults, the package exports a webpack-ruleset which implements eslint-import-resolver-webpack.

This ruleset implements on top of the default @seamly/eslint-config.

module.exports = {
  ...
  extends: [
    '@seamly/eslint-config/webpack'
  ]
  ...
}

Readme

Keywords

Package Sidebar

Install

npm i @seamly/eslint-config

Weekly Downloads

20

Version

3.1.0

License

MIT

Unpacked Size

8.24 kB

Total Files

12

Last publish

Collaborators

  • adrianeggerdesign
  • jarnovanrhijn
  • flurinegger
  • ronaldwind
  • sandervink