Socket
Socket
Sign inDemoInstall

@evaneos/eslint-config-base

Package Overview
Dependencies
0
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @evaneos/eslint-config-base

This package provides Evaneos's configs for JavaScript projects.


Version published
Maintainers
7
Install size
4.26 kB
Created

Readme

Source

ESLint (and Prettier) config

This package provides Evaneos' configs for front projects.

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

What it does

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

Installing

  1. In your project folder, run:

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

    You will see several dependencies were installed.

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

    {
       "extends": [
          "@evaneos/eslint-config-base"
       ]
    }
    

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

    {
       "extends": [
          "@evaneos/eslint-config-base",
          // ...,
          "@evaneos/eslint-config-base/prettier",
       ]
    }
    
  3. Add prettier config to your package.json

    {
       "prettier": "@evaneos/eslint-config-base/.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-base/.prettierrc.js'),
        semi: false,
    };
    

FAQs

Last updated on 07 Dec 2023

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