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.
eslint-plugin-ember-best-practices
Advanced tools
Eslint rules for linting for anti-patterns in Ember applications.
This adds more guard rails for Ember. Just because something "works" does not mean it is correct or in line with the framework's programming model. These footguns include:
As we've scaled out to over hundreds developers and thousands of lines of code it has become clear that more "development time" guidance is required. While the guides do a good job about getting started, it's good to have some friction to make sure the app code is aligned with how Ember works.
Install the plugin as a dev dependency in your Ember CLI project.
npm install --save-dev eslint-plugin-ember-best-practices
This will make the plugin available to ESLint.
Next, install the ember-cli-eslint addon so that your app can be linted during development and testing. This will also uninstall ember-cli-jshint since there is no need to have both linters running at the same time.
ember install ember-cli-eslint
The ember-cli-eslint
addon blueprint generates a .eslintrc.js configuration file at the root of the project.
Add the plugin's recommended configuration to the list of extensions:
// .eslintrc.js
module.exports = {
// ...
extends: [
'eslint:recommended',
'plugin:ember-best-practices/recommended'
],
rules: {
}
};
v1.1.2 (2019-06-26)
Cannot read property 'getFilename' of undefined
).no-anonymous-once
not recognizing context functionno-global-jquery
returning false positive for var assignment #85no-jquery-selector
ruleno-jquery-methods
to remove reference to Ember
no-jquery-methods
no-jquery-methods
to include checks for CallExpressionsno-anonymous-once
no-side-effect-cp
imports
utilno-jquery-method
no-jquery
jQuery
FAQs
Eslint rules for linting for anti-patterns in Ember applications.
The npm package eslint-plugin-ember-best-practices receives a total of 1,639 weekly downloads. As such, eslint-plugin-ember-best-practices popularity was classified as popular.
We found that eslint-plugin-ember-best-practices demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.