Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
eslint-plugin-pretty-lights
Advanced tools
pretty-lights/no-emotion
If you are using Prettier in your editor, or you run eslint . --fix
against a project, your import statements will automatically be converted from emotion
/ react-emotion
/ emotion-server
/ emotion-theming
to pretty-lights
. You may need to manually intervene in a few instances, but I was able to convert the lion's share of the NYT codebase using the ESLint fix.
pretty-lights/no-css-prop
The css
prop, the bread and butter of Emotion 10, is an antipattern in the NYT codebase, and pretty-lights
completely removes its existence. However, it is still a good idea to avoid naming a prop, css
. This rule ensures that you do not.
pretty-lights/favor-css-over-styled
If you create a styled component using the styled.h1
syntax and don't use any interpolations, this rule will nag you to use css
instead of styled
. This has been an implicit rule in our codebase anyways, but only enforced by those who know about it, and most people have only heard about it through folklore.
pretty-lights/disambiguate-vars
This rule tries to enforce the convention of ending all variables tied to css calls with "Class" (e.g. const headerClass = css..
)
FAQs
ESLint plugin for Pretty Lights projects.
The npm package eslint-plugin-pretty-lights receives a total of 2,290 weekly downloads. As such, eslint-plugin-pretty-lights popularity was classified as popular.
We found that eslint-plugin-pretty-lights 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.