Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
ember-cli-detergent
Advanced tools
detect and block blacklisted javascript methods from your code.
Ember linting tools such as ember-cli-eslint
are a great way of enforcing coding standards and preventing bad practices from entering your Ember applications. The rules that they enforce are all or nothing, if your app already contains these bad practices you are forced to either remove all occurrences before enabling the rule, or simply not use the rule.
ember-cli-detergent
allows you to specify rules and an allowed count of rule failures, eg:
methods: {
'htmlSafe': {
allowedCount: 5,
message: 'Please avoid using Em.String.htmlSafe. Please see: https://foo.bar/'
}
}
This configuration specifies that your app has 5 uses of htmlSafe
. An incremental build time error is displayed if a sixth occurrence is added:
Please avoid using Em.String.htmlSafe. Please see: https://foo.bar/
Current count: 6, maximum allowed: 5
ember install ember-cli-detergent
Create a .detergentrc.js
configuration file in the root of your app.
git clone <repository-url>
this repositorycd ember-cli-detergent
npm install
bower install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
FAQs
detect and block blacklisted javascript methods from your code.
The npm package ember-cli-detergent receives a total of 7 weekly downloads. As such, ember-cli-detergent popularity was classified as not popular.
We found that ember-cli-detergent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.