Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@exodus/eslint-plugin-export-default

Package Overview
Dependencies
Maintainers
90
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/eslint-plugin-export-default

eslint plugin to make sure default export is last and have declared variable name

npmnpm
Version
2.0.0
Version published
Weekly downloads
6.5K
37.97%
Maintainers
90
Weekly downloads
 
Created
Source

@exodus/eslint-plugin-export-default

checks if default export is last line in the file

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @exodus/eslint-plugin-export-default-last:

yarn add -D @exodus/eslint-plugin-export-default-last

Usage

Add @exodus/eslint-plugin-export-default to the plugins section of your .eslintrc configuration file.

{
    "plugins": [
        "@exodus/eslint-plugin-export-default"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "@exodus/export-default/last": "error",
        "@exodus/export-default/named": "error"
    }
}

Keywords

eslint

FAQs

Package last updated on 11 Jul 2023

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