othree / eslint-plugin-pep8-blank-lines

An ESLint blank line rule supports rule for different level. Inspired by PEP8.
https://www.npmjs.com/package/eslint-plugin-pep8-blank-lines
MIT License
2 stars 0 forks source link

TODO #1

Open othree opened 6 years ago

othree commented 6 years ago
othree commented 6 years ago
arrow function
    [async] [params] => body

    => :: token before body
    params :: 
        if params.length
            if wrap by paren
                   token before params[0]
               else 
                   params[0]
        else
           token before `)` before `(` body
    async :: token before params

    test before params [async] [params]
    test before body   [params] => body

function
    [async] function [*] [id] [params] body
const a = () => {};
const b = arg => {};
const c = async (a, b) => {};
const d = async arg => {};
othree commented 6 years ago

https://github.com/eslint/espree/blob/6284e096ec0fd2e72bcc038609abea2bbc5020d2/lib/visitor-keys.js