New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-indico

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-indico

ESLint config/preset used by the Indico team

2.0.0
latest
Source
npm
Version published
Weekly downloads
239
0.42%
Maintainers
2
Weekly downloads
 
Created
Source

Indico ESLint config

This is the ESLint config used by the Indico team.

Installation

npm install --save-dev eslint-config-indico
# if you use babel
npm install --save-dev eslint-plugin-babel @babel/eslint-parser
# if you use react
npm install --save-dev eslint-plugin-react
# if you use react-hooks
npm install --save-dev eslint-plugin-react-hooks
# if you use prettier
npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier

Presets

indico

The base config. You always want this when using this package.
Requires eslint-plugin-import

indico/react

Enables rules from the react plugin.
Requires eslint-plugin-react

indico/react

Enables rules from the react-hooks plugin.
Requires eslint-plugin-react-hooks

indico/babel

Enables the babel plugin and parser.
Requires eslint-plugin-babel and @babel/eslint-parser.
Make sure to load this after the indico preset to avoid duplicate quote warnings.

indico/prettier

Enables prettier integration.
Requires prettier, eslint-config-prettier and eslint-plugin-prettier
Make sure to load this after all other indico/* presets.
When using babel/react, also enable the prettier/babel and prettier/react presets.

For convenience, we also include a prettier config, that can be loaded by putting "eslint-config-indico/prettier-config" in your .prettierrc.

Example .eslintrc.yml

extends:
  - 'indico'
  - 'indico/babel'
  - 'indico/react'
  - 'indico/react-hooks'
  - 'indico/prettier'
  - 'prettier/babel'
  - 'prettier/react'

env:
  browser: true
  es6: true

Keywords

eslint

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts