
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
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 4,814 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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.