eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-expression-empty-lines

ESLint plugin / no-expression-empty-lines

Disallows empty lines inside expressions.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/no-expression-empty-lines": "error"
  }
};

Examples of incorrect code

const result = []

  .map(x => x)

  .map(x => x);

Examples of correct code

const result = []
  .map(x => x)
  .map(x => x);