@channel.io/eslint-config
v2.1.0
Published
ESLint configuration for Channel.io web projects
Downloads
842
Readme
@channel.io/eslint-config
ESLint configuration for Channel.io web projects
Installation
npm
$ npm install --dev @channel.io/eslint-config
Yarn
$ yarn add --dev @channel.io/eslint-config
Supports
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"
}
Code Formatting
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