Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
stylelint-vnmf-rn
Advanced tools
A collection of React Native specific linting rules for stylelint (in a form of a plugin).
Install stylelint-react-native
(and stylelint
, if you haven't done so yet):
yarn add stylelint stylelint-react-native --dev
or
npm install stylelint stylelint-react-native --save-dev
Create the .stylelintrc
config file (or open the existing one), add stylelint-react-native
to the plugins array and the rules you need to the rules list. All rules from stylelint-react-native
need to be namespaced with react-native
.
{
"plugins": ["stylelint-vnmf-rn"],
"rules": {
"vnmf-rn/css-property-no-unknown": true
}
}
Please refer to stylelint docs for the detailed info on using this linter plugin.
font-weight-no-ignored-values
: Disallow valid font-weight
values that work on iOS, but are ignored and get mapped to normal
or bold
weight on Android.These rules are meant to be used with tools that allow you to write CSS when using React Native, e.g. styled-components, React Native CSS modules, etc.
css-property-no-unknown
: Disallow unknown React Native CSS properties.These rules are meant to be used when styling with React Native's built-in styling, or with tools that use React Native's default styling.
style-property-no-unknown
: Disallow unknown React Native Style properties.There work on the plugin's rules is still in progress, so if you feel like it, you're welcome to help out in any of these (the plugin follows stylelint guidelines so most part of this is based on its docs):
There is also stackoverflow, which would be the preferred QA forum.
FAQs
A collection of React Native specific rules for stylelint
The npm package stylelint-vnmf-rn receives a total of 0 weekly downloads. As such, stylelint-vnmf-rn popularity was classified as not popular.
We found that stylelint-vnmf-rn 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.