@exodus/eslint-plugin-export-default

2.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-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"
    }
}

Package Sidebar

Install

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

Weekly Downloads

1,028

Version

2.0.0

License

MIT

Unpacked Size

4.63 kB

Total Files

6

Last publish

Collaborators

  • mbaraniak-exodus
  • maksim-iv-exodus
  • hasakura
  • milanvojnovic
  • olerass-exodus
  • kklash
  • shehryar6
  • rec
  • awilson-rs
  • ggabarrin-rs
  • r4vn
  • exorich
  • cryptosgr
  • mol0d
  • yevhenii_molodyk
  • yilmazbahadir
  • muratso
  • exoleo
  • 633kh4ck
  • ossel
  • davidfraga610
  • clarkexo
  • andrewrexo
  • james-gre
  • juraex
  • richayotte
  • ralph.ba
  • angelloz
  • joshuabot
  • jamiemaw
  • exodus-justin.za
  • javiexodus
  • wcastr
  • rg911
  • alex.alexandrius
  • filipexodus
  • ryansquared-npm
  • andrescarreon
  • florianmathieu
  • janwe
  • fboucquez
  • skapala
  • umito
  • lanahizzle
  • iaacek
  • ps.mcnally
  • akinncar
  • matias.la
  • voltagebots
  • kwwood
  • sergii_bo
  • lekzd
  • cdotta
  • alexandrbbm
  • danh.t.vo
  • ezenwankwogabriel
  • meniem
  • mzndako
  • kevva
  • feri42
  • jprichardson
  • farisissa
  • ryanzim
  • headfire
  • gutenye
  • mosesbot
  • roccomuso
  • dcastagnoli
  • sonaye
  • nareg_exodus
  • ves
  • tenaciousmv
  • asyakost
  • bulgakovk
  • chalker
  • andrejb
  • jaydp17
  • olistic
  • joepie91
  • merlz
  • vbonini
  • devopsrobot
  • jenish-sojitra
  • nachoalvarez
  • giovannirco
  • diegomura
  • lanre-mark
  • sunilagrawal
  • guillecura
  • mariosvlad
  • federico-po
  • pagan404