0.0.5 • Published 2 years ago

eslint-plugin-no-unsupported v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

eslint-plugin-no-unsupported

Do not use unsupported features.

Installation

yarn i eslint eslint-plugin-no-unsupported --save-dev

Usage

Configure it in .eslintrc.js or .eslintrc.json:

{
    "extends": [
        "plugin:no-unsupported/react-native",
    ],
    "plugins": [
        "no-unsupported"
    ],
}

Supported Rules

RuleDescription
no-unsupported/rn-style-positionreact native only supports position: absolute\|relative
no-unsupported/rn-style-calcreact native does not support calc
no-unsupported/rn-style-vm-vhreact native does not support vw and vh
no-unsupported/rn-style-align-selfreact native only supports alignSelf: auto\|flex-start\|flex-end\|center\|baseline\|stretch
no-unsupported/rn-style-border-stylereact native only supports borderStyle: solid\|dotted\|dashed
no-unsupported/rn-style-cursorreact native does not support cursor
no-unsupported/rn-style-z-indexreact native does not support zIndex with a string value
no-unsupported/rn-style-white-spacereact native does not support whiteSpace