@exodus/eslint-plugin-export-default
v2.0.0
Published
eslint plugin to make sure default export is last and have declared variable name
Downloads
5,505
Maintainers
Readme
@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"
}
}