Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
389
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

🐊Putout plugin adds ability to remove useless template expressions


Version published
Weekly downloads
16K
decreased by-14.18%
Maintainers
1
Install size
4.68 kB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 14 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc