
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
eslint-plugin-netguru-ember
Advanced tools
ESlint plugin that provides set of rules for Ember Applications based on Netguru's Ember Styleguide.
It's made to help you keep good practices mentioned in our Ember Styleguide.
You need to have ember-cli-eslint
installed in your app. More info here.
The easiest way to use this plugin is through our shareable config. More about shareable configs here.
(
export PKG=eslint-config-netguru-ember;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
)
This command will basically produce and call something like this:
npm install --save-dev eslint-config-netguru-ember eslint-plugin-netguru-ember@1.x eslint-config-airbnb-base@^7.1.0 eslint-plugin-import@^1.15.0
.eslintrc
, so it looks like this: extends: netguru-ember
npm install --save-dev eslint-plugin-netguru-ember
.eslintrc
: plugins:
- netguru-ember
.eslintrc
: rules:
- netguru-ember/local-modules: 1
All rules from our plugin have to be prefixed with netguru-ember/
General
Organizing
Controllers
Ember Data
Components
closure-actions - Always use closure actions (more)
no-on-calls-in-components - Don't use .on() in components (more)
* avoid-leaking-state-in-components - Don't use objects and arrays as default properties (more)
Example config:
netguru-ember/avoid-leaking-state-in-components: [1, ['array', 'of', 'ignored', 'properties']]
Routing
* Rule with optional settings
"netguru-ember/alias-model-in-controller": 0,
"netguru-ember/avoid-leaking-state-in-components": 0,
"netguru-ember/closure-actions": 0,
"netguru-ember/jquery-ember-run": 0,
"netguru-ember/local-modules": 0,
"netguru-ember/named-functions-in-promises": 0,
"netguru-ember/no-empty-attrs": 0,
"netguru-ember/no-function-prototype-extensions": 0,
"netguru-ember/no-observers": 0,
"netguru-ember/no-on-calls-in-components": 0,
"netguru-ember/no-side-effects": 0,
"netguru-ember/order-in-components": 0,
"netguru-ember/order-in-controllers": 0,
"netguru-ember/order-in-models": 0,
"netguru-ember/order-in-routes": 0,
"netguru-ember/query-params-on-top": 0,
"netguru-ember/routes-segments-snake-case": 0,
"netguru-ember/use-brace-expansion": 0,
"netguru-ember/use-ember-get-and-set": 0,
TBD. For now feel free to add any suggestions in issues. Any involvement highly appreciated.
FAQs
Eslint plugin for Netguru Ember Style Guide
The npm package eslint-plugin-netguru-ember receives a total of 70 weekly downloads. As such, eslint-plugin-netguru-ember popularity was classified as not popular.
We found that eslint-plugin-netguru-ember 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.