Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-taro-rn

Package Overview
Dependencies
Maintainers
0
Versions
687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-taro-rn

A collection of React Native specific rules for stylelint

  • 4.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
435
decreased by-28.34%
Maintainers
0
Weekly downloads
 
Created
Source

stylelint-react-native

A collection of React Native specific linting rules for stylelint (in a form of a plugin).

Installation and usage

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-taro-rn"],
  "rules": {
    "taro-rn/css-property-no-unknown": true
  }
}

Please refer to stylelint docs for the detailed info on using this linter plugin.

List of rules

General rules

  • 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.

css- rules (for tools like styled-components)

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.


style- rules (for React Native's built-in styling)

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.

Help out

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):

  • Create, enhance, and debug rules (see stylelint's guide to "Working on rules").
  • Improve documentation.
  • Chime in on any open issue or pull request.
  • Open new issues about your ideas on new rules, or for how to improve the existing ones, and pull requests to show us how your idea works.
  • Add new tests to absolutely anything.
  • Work on improving performance of rules.
  • Contribute to stylelint
  • Spread the word.

There is also stackoverflow, which would be the preferred QA forum.

Keywords

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc