Socket
Socket
Sign inDemoInstall

eslint-config-entrecode

Package Overview
Dependencies
12
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-entrecode

code style by entrecode


Version published
Weekly downloads
96
decreased by-29.41%
Maintainers
3
Install size
55.6 MB
Created
Weekly downloads
 

Changelog

Source

2.0.0 (2022-03-18)

  • adds line length 120 (c040515)
  • changed support for typescript with override (ece7463)
  • disable lines-between-class-members (a761212)
  • fix imports (f1e76ad)
  • optimize dependencies (a099263)
  • support our react settings (50efff7)
  • updates our approach to linting with prettier (3ff6290)
  • updates readme (7c9cdec)

Readme

Source

eslint-config-entrecode

entrecode code style

local usage (preferred)

use this for shared projects, or if you want to do everything like it's meant to be

  1. run this in your repo:
npm i --save-dev eslint-config-entrecode
  1. add .eslintrc file:
{
  "extends": ["entrecode"]
}
  1. add vscode settings:
{
  "eslint.lintTask.enable": true,
  "eslint.format.enable": true,
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}

global usage (deprecated, eslint > 8 does not support this anymore)

use this if you want this code style applied to all projects without custom .eslintrc locally in your project

  1. run this in your root projects directory:
npm i eslint-config-entrecode
  1. add .eslintrc file:
{
  "extends": ["entrecode"]
}
  1. add vscode settings:
{
  "eslint.lintTask.enable": true,
  "eslint.format.enable": true,
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}

also possible: the global repo way (use this for development)

like global usage, but without the module installed at top level

  1. clone this repo

  2. run npm i in it

  3. Add this to VSCode settings: "eslint.options": { "configFile": "/Users//eslint-config-entrecode/main.js" },

  4. npm i eslint@7 -g (MUST be ESLint 7.x)

  5. add vscode settings:

{
  "eslint.lintTask.enable": true,
  "eslint.format.enable": true,
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}

Note for node 14

You will have to install eslint manually with npm i eslint@7 in addition to eslint-config-entrecode.

Keywords

FAQs

Last updated on 18 Mar 2022

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