@putout/plugin-remove-useless-template-expressions
putout plugin adds ability to remove useless template expressions
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-template-expressions 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-template-expressions NPM version

Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.

(c) MDN

????Putout plugin adds ability to remove useless template expressions.

Install

npm i @putout/plugin-remove-useless-template-expressions -D

Rule

{
    "rules": {
        "remove-useless-template-expressions": "on"
    }
}

❌ Example of incorrect code

const y = `${'hello'} + ${'world'}`;

✅ Example of correct code

const y = `hello + world`;

License

MIT

Current Tags

  • 3.0.2                                ...           latest (3 months ago)

8 Versions

  • 3.0.2                                ...           3 months ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           3 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |