🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@evaneos/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evaneos/eslint-config

This package provides Evaneos's configs for TypesScript projects.

latest
Source
npmnpm
Version
4.5.5
Version published
Maintainers
0
Created
Source

ESLint (and Prettier, and tsconfig) config

This package provides Evaneos's configs for front projects.

  • .eslintrc as an extensible shared config
  • .prettierrc as an importable/extensible file

What it does

This setup lints, and formats based on Evaneos' practices. Feel free to override the rules that make sense for you.

Installing

  • In your project folder, run:

    npm i -D @evaneos/eslint-config
    npx install-peerdeps --dev @evaneos/eslint-config
    

    You will see several dependencies were installed.

  • Now, create (or update) a .eslintrc file with the following content:

    Don't forget to adapt the parserOptions.project if it's different in your project.

    {
        "extends": ["@evaneos/eslint-config"],
        "parserOptions": {
            "project": ["./tsconfig.json"]
        }
    }
    

    If you need to extend the configuration with other plugins, make sure that @evaneos/eslint-config/prettier is the last item of the array

    {
       "extends": [
          "@evaneos/eslint-config",
          // ...,
          "@evaneos/eslint-config/prettier",
       ],
        "parserOptions": {
            "project": ["./tsconfig.json"]
        }
    }
    
  • Add prettier config to your package.json

    {
        "prettier": "@evaneos/eslint-config/.prettierrc.js"
    }
    

    If you want to override it, you'll have to spread the config into a .prettierrc.js file instead, eg:

    module.exports = {
        ...require('@evaneos/eslint-config/.prettierrc.js'),
        semi: false,
    };
    

FAQs

Package last updated on 24 Oct 2024

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