Socket
Book a DemoInstallSign in
Socket

@gaoding/eslint-config-base

Package Overview
Dependencies
Maintainers
21
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gaoding/eslint-config-base

Gaoding's JS ESLint config

latest
npmnpm
Version
2.0.2
Version published
Weekly downloads
1
-66.67%
Maintainers
21
Weekly downloads
 
Created
Source

@gaoding/eslint-config-base

Gaoding's JS base ESLint config

Install

npm install --save-dev @gaoding/eslint-config-base

Usage

Add "extends": ["@gaoding/eslint-config-base"] to your .eslintrc

example

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

代码规范

继承于 eslint-config-standard Standard 代码规范

重写规则

  • 关键字后面加空格。

    eslint: keyword-spacing 目前 if for white catch function 关键字后面不加空格

if(condition) { ... }    // ✓ ok
if (condition) { ... }   // ✗ avoid
  • 使用4个空格缩进

    eslint: indent

    function hello(name) {
        console.log('hi', name)
    }
    
    

Keywords

eslint

FAQs

Package last updated on 25 Apr 2019

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