florian-richter / eslint-plugin-newline-before-func

Enforce putting an empty line before a line containing a named function
MIT License
0 stars 0 forks source link

eslint-plugin-newline-before-func

npm version Downloads/month

Enforce putting an empty line before a line containing a named function

Install & Usage

> npm install eslint eslint-plugin-newline-before-func --save-dev

.eslintrc.json (An example)

{
    "plugins": [
        "newline-before-func"
    ],
    "extends": [
        "eslint:recommended"
    ],
    "rules": {
        "newline-before-func/newline-before-func": "warn",
    }
}

Rules

Fixable Rule ID Description
newline-before-func                   Functions should be seperated by a newline.  

:muscle: Contributing

Feel free to open issues or create PRs.