Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
grunt-htmlhint-inline
Advanced tools
This plug-in template files of view ( for example .erb
, etc.) or , you can linting using htmlhint the html of the old type of php
(view and logic are not separated ).
Removes the specific embedded code , it is intended to run the htmlhint as pure html.
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-htmlhint-inline --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-htmlhint-inline');
In your project's Gruntfile, add a section named htmlhint-inline
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
htmlhint_inline: {
options: {
htmlhintrc: '.htmlhintrc',
ignore: {
'<?php': '?>'
}
},
dest: {
src: ['./test/*.phtml']
}
},
});
Type: String Default value: null
htmlhintrc
file must be a valid JSON.
If you specify this file, options that have been defined in it will be used in the global.
If there is specified in the task options, the options in this file will be overwritten.
{
"tagname-lowercase": true
}
Type: Array Default: []
Enable the replacement by the pattern
Type: RegExp|String
Indicates the matching expression.
Type: String|Function
Type: String Default: null
Output the task execution results to a specified file.
Type: Boolean Default value: false
Report HTMLHint errors but dont fail the task
grunt.initConfig({
htmlhint_inline: {
options: {
htmlhintrc: '.htmlhintrc',
ignore: {
'<?php': '?>'
},
patterns: [
{
match: /hoge/g,
replacement: 'fuga'
}
],
reporterOutput: './log/grunt.log',
},
dest: {
src: ['./test/*.phtml']
}
}
});
MIT
FAQs
Grunt plugin for linting inline html
We found that grunt-htmlhint-inline 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.