@autotelic/eslint-config-react
v0.4.0
Published
base eslint config for react apps
Downloads
111
Maintainers
Readme
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: