eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

template-literal-format

ESLint plugin / template-literal-format

Requires consistent padding in template literals.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/template-literal-format": "error"
  }
};

Examples of incorrect code

const x = `
    text
    `;

Examples of correct code

const x = `
  text
`;