0.4.0 • Published 1 year ago

@autotelic/eslint-config-react v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Autotelic - Eslint Config React

Autotelic's base Eslint configuration for any React application

Usage

NPM

npm i --save-dev eslint @autotelic/eslint-config-react

Yarn

yarn add --dev eslint @autotelic/eslint-config-react

eslint.config.js

const configReact = require('@autotelic/eslint-config-react')

module.exports = [
  configReact,
  {
    // ...Additional config
  }
]

eslint.config.mjs

import configReact from '@autotelic/eslint-config-react'

export default [
  configReact,
  {
    // ...Additional config
  }
]

Configuring Node Version

By default the Node version is set to ^20.x, if a different or a more specific version is preferred it can be configured as follows:

// eslint.config.js
const configReact = require('@autotelic/eslint-config-react')

module.exports = [
  configReact,
  {
  settings: {
    node: {
      version: '20.11.1'
    }
  }
}]

About

@autotelic/eslint-config-react is comprised with a combination of: