ESLint configuration for Channel.io web projects
$ npm install --dev @channel.io/eslint-config
$ yarn add --dev @channel.io/eslint-config
This config supports Next
, Web(React)
, Node
-
@channel.io/eslint-config
: the basic config for JavaScript projects for which there isn't a more specific config, -
@channel.io/eslint-config/web
: the config for code that runs in web browsers, with support for React and JSX, -
@channel.io/eslint-config/node
: the config for code that runs in Node. -
@channel.io/eslint-config/next
: the config for Next.js Project
For React Web
{
"extends": "@channel.io/eslint-config/web"
}
For Node Projects
{
"extends": "@channel.io/eslint-config/node"
}
For Next
{
"extends": "@channel.io/eslint-config/next"
}
From ESLint 8.53.0, formatting-related features are being deprecated gradually. It is assumed that you are using Prettier for formatting in conjunction with this configuration.
For the prettier config that Channel.io
is using, please check @channel.io/prettier-config