Socket
Book a DemoInstallSign in
Socket

@exodus/eslint-plugin-export-default

Package Overview
Dependencies
Maintainers
101
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

latest
npmnpm
Version
3.0.0
Version published
Weekly downloads
2.6K
8.71%
Maintainers
101
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:

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

Usage

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

{
    "plugins": [
        "export-default": "@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 02 Sep 2024

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