Socket
Socket
Sign inDemoInstall

@berlysia/eslint-config

Package Overview
Dependencies
9
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @berlysia/eslint-config

> ESLint config for myself


Version published
Weekly downloads
278
increased by189.58%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@berlysia/eslint-config

ESLint config for myself

Features

  • React
  • TypeScript
  • prettier

Install

$ yarn add --dev eslint @berlysia/eslint-config
$ npm install --save-dev eslint @berlysia/eslint-config

Config

in .eslintrc

{
  "extends": ["@berlysia/eslint-config/auto"]
}

opt-in rules for TypeScript

{
  "extends": [
    "@berlysia/eslint-config/auto"
    "@berlysia/eslint-config/typescript-with-type"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Manual Config

in .eslintrc

{
  "extends": [
    "@berlysia" // base
  ],
  "overrides": [
    {
      "files": [
        "*.{test,spec}.{js,ts,jsx,tsx}",
        "**/__tests__/**/*.{js,ts,jsx,tsx}"
      ],
      "extends": "@berlysia/eslint-config/jest"
    },
    {
      "files": ["*.{ts,tsx}"],
      "extends": "@berlysia/eslint-config/typescript-without-type"
    },
    {
      "files": ["*.{ts,tsx}"],
      "extends": "@berlysia/eslint-config/typescript-with-type",
      "parserOptions": {
        "project": "./tsconfig.json"
      }
    }
  ]
}

Keywords

FAQs

Last updated on 23 Jul 2021

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