npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@exodus/eslint-plugin-export-default

3.0.0

@diegomura

npmSnykSocket
Downloads:235
$ npm install @exodus/eslint-plugin-export-default
DailyWeeklyMonthlyYearly

@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"
    }
}