Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
/ eslint-config-base Public archive

eslint and prettier configs for evaneos JavaScript projects

Notifications You must be signed in to change notification settings

Evaneos/eslint-config-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ DEPRECATED ⚠️

This repository is deprecated. Please refer to front-config monorepo.

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 @evaneos/eslint-config-base/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,
    };

About

eslint and prettier configs for evaneos JavaScript projects

Resources

Stars

Watchers

Forks

Packages

No packages published