Socket
Socket
Sign inDemoInstall

@mohalla-tech/eslint-config-sharechat

Package Overview
Dependencies
232
Maintainers
14
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mohalla-tech/eslint-config-sharechat

ShareChat's ESLint config


Version published
Weekly downloads
22
decreased by-51.11%
Maintainers
14
Created
Weekly downloads
 

Readme

Source

eslint-config-sharechat

npm version

This package provides ShareChat's .eslintrc as an extensible shared config.

Configs Available

Base Config

This config contains the most robust rules for ECMAScript 6+. (Peer Dependencies: eslint, eslint-plugin-import)

React Config

This config contains the most robust rules for React based projects. (Peer Dependencies: eslint, eslint-plugin-react)

React Accessibility Config

This config adds additional rules for accessbility (Peer Dependencies: eslint, eslint-plugin-jsx-a11y)

React Hooks Config

This config adds additional rules for react hooks (Peer Dependencies: eslint, eslint-plugin-react-hooks)

React JSX Runtime Config

This config can be used by React projects that work with the new JSX transform from React 17 (Peer Dependencies: eslint, eslint-plugin-react)

Prettier

This config can be used by projects that also use Prettier for code formatting (Peer Dependencies: eslint, eslint-config-prettier, prettier)

Svelte (v1.2.0 onwards)

From version 1.2.0, Svelte config has also been added. This config can be used by Svelte based projects. (Peer Dependencies: eslint, eslint-plugin-svelte3)

Usage

  1. Depending on the config that you want to use, you will have to install the necessary peer dependencies.

  2. Add the required keys in the extends key of ESLint config.

Note: All configs are independent of each other, therefore if you want to use multiple configurations, each configurations has to be included separately in the extends key of ESLint config in your project.

For example, if you want to use the rules for ES6, React and Prettier, the extends option should look like this extends: ["@mohalla-tech/eslint-config-sharechat", "@mohalla-tech/eslint-config-sharechat/react", "@mohalla-tech/eslint-config-sharechat/prettier"]

Improving this config

Currently the config doesn't extends rules for Vue, React Native.

FAQs

Last updated on 25 Apr 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc