
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@spence1115/eslint-plugin-modules-newlines
Advanced tools
Enforce placing import or export variables on a newline. Forked from https://github.com/ruudandriessen/eslint-plugin-modules-newline
Eslint plugin to enforce placing import and export variables on separate lines
You'll first need to install ESLint:
$ npm i eslint --save-dev
or
$ yarn add eslint --dev
Next, install @spence1115/eslint-plugin-modules-newlines
:
$ npm install @spence1115/eslint-plugin-modules-newlines --save-dev
or
$ yarn add @spence1115/eslint-plugin-modules-newlines --dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @spence1115/eslint-plugin-modules-newlines
globally.
Add "@spence1115/modules-newlines"
to the plugins section of your .eslintrc
configuration file
{
"plugins": [
"@spence1115/modules-newlines"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@spence1115/modules-newlines/import-declaration-newline": ["error/warn", {
"nodeSpecifersLength": 3 // optional, allows more import/exports on a single line before forcing a line break
}],
"@spence1115/modules-newline/export-declaration-newline": "error/warn"
}
}
AST explorer - https://astexplorer.net/#/gist/b6093767261d6a5bce76043dcea24bec/5fe761308f41936beaa30cbe7aef3a6f0283e11d
FAQs
Enforce placing import or export variables on a newline. Forked from https://github.com/ruudandriessen/eslint-plugin-modules-newline
We found that @spence1115/eslint-plugin-modules-newlines demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.