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

@comparto/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comparto/eslint-config

[actions-badge]: https://img.shields.io/github/workflow/status/jimmy-guzman/comparto-eslint-config/cicd?label=actions&logo=github-actions&style=flat-square [version-badge]: https://img.shields.io/npm/v/@comparto/eslint-config.svg?logo=npm&style=flat-squar

6.1.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

actions version downloads Code Coverage semantic-release code style: prettier

@comparto/eslint-config

This package provides a shareable ESLint configuration with rules for react, typescript, javascript, jest, and @testing-library.

Usage:

This will enable jest, react, typescript or @testing-library rules if their respective dependency exists.

  • Install stuff:

    npx install-peerdeps --dev @comparto/eslint-config
    

    or if you wish this to be a common dependency in a yarn workspaces monorepo:

    # -Y --yarn, -x --extra-args, -W --ignore-workspace-root-check
    npx install-peerdeps @comparto/eslint-config --dev -Y -x -W
    
  • Add "extends": "@comparto/eslint-config" to your .eslintrc

Prettier:

yarn add -D @comparto/prettier-config

Add "prettier": "@comparto/prettier-config" to your package.json or any configuration of your choice.

Using webpack aliases?

This config uses eslint-import-resolver-webpack with a default setting of:

settings:
  import/resolver:
    webpack:
      config: 'webpack.dev.config.js' # or {} if not found

This can be overridden exactly the same as the eslint-import-resolver-webpack configuration.

Using typescript?

This config uses some rules that require type information like naming-convention, so @typescript-eslint/parser's parserOptions.project is set to "./tsconfig.json". Override this value if your tsconfig.json is located somewhere else.

Keywords

eslint

FAQs

Package last updated on 31 Jan 2021

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