@exodus/eslint-plugin-export-default

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i @exodus/eslint-plugin-export-default

Weekly Downloads

2,232

Version

3.0.0

License

MIT

Unpacked Size

4.74 kB

Total Files

4

Last publish

Collaborators

  • jeehahn
  • jschopen
  • cawfree
  • markoexodus
  • ismamz
  • exojo
  • doguhan
  • ronaldcrb
  • nantoaqui
  • bekatd
  • frankliexodus
  • ale-exo
  • davidexodus
  • geoffreyrousset
  • marcos.kichel
  • kryptkeep
  • andrewtoth-exodus
  • mmehta-10
  • tunguyennnnn
  • cdotta-exodus
  • awesomeniko
  • mbaraniak-exodus
  • hasakura
  • shehryar6
  • rec
  • awilson-rs
  • ggabarrin-rs
  • r4vn
  • exorich
  • cryptosgr
  • mol0d
  • yevhenii_molodyk
  • muratso
  • exoleo
  • 633kh4ck
  • clarkexo
  • james-gre
  • juraex
  • ralph.ba
  • angelloz
  • joshuabot
  • jamiemaw
  • exodus-justin.za
  • javiexodus
  • rg911
  • alex.alexandrius
  • filipexodus
  • ryansquared-npm
  • andrescarreon
  • florianmathieu
  • janwe
  • fboucquez
  • skapala
  • umito
  • lanahizzle
  • iaacek
  • ps.mcnally
  • akinncar
  • voltagebots
  • kwwood
  • sergii_bo
  • alexandrbbm
  • danh.t.vo
  • ezenwankwogabriel
  • meniem
  • mzndako
  • kevva
  • feri42
  • jprichardson
  • farisissa
  • ryanzim
  • headfire
  • gutenye
  • mosesbot
  • roccomuso
  • dcastagnoli
  • sonaye
  • ves
  • tenaciousmv
  • asyakost
  • bulgakovk
  • chalker
  • andrejb
  • jaydp17
  • olistic
  • joepie91
  • merlz
  • vbonini
  • devopsrobot
  • jenish-sojitra
  • nachoalvarez
  • giovannirco
  • diegomura
  • lanre-mark
  • sunilagrawal
  • guillecura
  • mariosvlad
  • federico-po