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.
@doghouse/dh-lint
Advanced tools
DH Lint is a tool for generating project specific javascript and sass linting configuration files.
DH Lint is a tool for generating project specific javascript and sass linting configuration files.
npm install @doghouse/dh-lint --save-dev
DH Lint can be configured via the command line by running the following command in your project root:
npm exec dh-lint-install
you will then be prompted to answer a series of questions in order to set up the config files for your project:
The config files generated in your projects root directory both extend framework specific config files defined in this package. The generated files can be extended and overridden further by defining your own settings within them. For documentation on how to add your own rules or settings, click on the links listed under the Dependencies section of this README file.
The base eslint config file in this package extends from the eslint-config-airbnb
Sass-lint.yml configuration
Dh-lint scans your stylesheets based on the chosen framework. You have the flexibility to modify or append scan paths by making adjustments in the sass-lint.yml file. For instance,
---
options:
config-file: "./node_modules/@doghouse/dh-lint/config/sasslint/laravel.yml"
files:
include:
- 'resources/assets/sass/**/*.s+(a|c)ss'
- 'resources/sass/**/*.s+(a|c)ss'
- 'my-custom-path/sass/**/*.s+(a|c)ss'
If you opted to update your package.json file with linting scripts, then you may use the following commands to lint your project.
npm run lint:js
Will scan your javascript files and log any errors or warnings associated with your code.npm run lint:js-fix
Will attempt to fix any errors that eslint has found with your code.npm run lint:sass
Will scan your styles directory and log any errors or warnings associated with your stylesheets.npm run lint:sass-fix
Will attempt to fix any errors that sass-lint has found within your stylesheets.npm run lint:vue
Will scan your directory containing vue elements and log any errors or warnings associated with your vue components.npm run lint:vue-fix
Will attempt to fix any errors that eslint has found within your vue components.npm run lint
Will scan your directory containing sass, js and vue elements and log any errors or warnings associated with your assets.npm run lint-fix
Will attempt to fix any errors that eslint has found within your stylesheets, js and vue components.Note: If you choose to have your errors automatically fixed, you are still responsible for this code, So please review the changes made before you commit them.
This project depends on eslint for javascript linting and sass-lint for sass linting.
Currently supported frameworks are:
If you wish to add support for other framework, please email Doghouse Agency. Otherwise feel free to create a pull request.
FAQs
DH Lint is a tool for generating project specific javascript and sass linting configuration files.
We found that @doghouse/dh-lint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.