
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
eslint-plugin-jinja
Advanced tools
This plugin treats Jinja template expressions as Javascript literals and ignores template statements and comments
This plugin treats Jinja template expressions and statements as valid Javascript expressions, so that ESLint can check javascript code, ignoring any Jinja expression found.
Plugin will convert (internally) this code:
(function() {
'use strict';
{# plain jinja variables are converted into strings
(preferred quotes are getting from .eslintrc file) #}
var a = 'this is' + {{ some_variable }};
{# if it is already in string, it is wrapped with spaces #}
var b = 'this is {{ other_variable }}';
var c = 'and this is {{ another_one['field']}}';
{# if-else statements are converted into ( ..., ... ) expression #}
var d = {% if something %} 'this is something' {% else %} null {% endif %};
{# any other statements become comments #}
{% for i in [1, 2, 3] %}
console.log(a, b, c, d);
{% endfor %}
})();
into this:
(function() {
'use strict';
/* plain jinja variables are converted into strings
(preferred quotes are getting from .eslintrc file) */
var a = 'this is' + ' some_variable ';
/* if it is already in string, it is wrapped with spaces */
var b = 'this is other_variable ';
var c = 'and this is another_one[ field ] ';
/* if-else statements are converted into ( ..., ... ) expression */
var d = (/*if something */ 'this is something' ,/*else */ null /*endif */);
/* any other statements become comments */
/* for i in [1, 2, 3] */
console.log(a, b, c, d);
/* endfor */
})();
FAQs
This plugin treats Jinja template expressions as Javascript literals and ignores template statements and comments
The npm package eslint-plugin-jinja receives a total of 0 weekly downloads. As such, eslint-plugin-jinja popularity was classified as not popular.
We found that eslint-plugin-jinja demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.