Socket
Socket
Sign inDemoInstall

@emico/eslint-config

Package Overview
Dependencies
18
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @emico/eslint-config

Emico ESLint config for consistent code style and code quality.


Version published
Weekly downloads
39
increased by105.26%
Maintainers
4
Install size
49.3 MB
Created
Weekly downloads
 

Readme

Source

@emico/eslint-config

This package includes the shareable ESLint configuration used in all SPA-related Emico projects.

Usage

To use this configuration first install this package:

yarn add -D @emico/eslint-config

Then add this to your package.json:

    "eslintConfig": {
        "extends": "@emico/eslint-config"
    },

The eslintConfig property is used by create-react-app, IDE extensions and seems to be standard.

Customization

Customization is not recommended as all Emico projects should use the same configuration. Please consider making a pull request to this package instead.

To apply custom rules remove the eslint configuration from your package.json, then create a file named .eslintrc.json with following contents in the root folder of your project:

{
  "extends": "@emico/eslint-config"
}

That's it! You can override the settings by editing the .eslintrc.json file. Learn more about configuring ESLint on the ESLint website.

Options

These options can be enabled/disabled using env variables.

CODE_STYLE Enable or disable code style rules in eslint. These rules are automatically fixable, so this can be run in a precommit hook with --fix. EMICO_COMPONENT_LIBRARY Enable or disable Emico internal component library rules

FAQs

Last updated on 12 May 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