eslint-plugin-getsize

0.0.4 • Public • Published

eslint-plugin-getsize

simple plugin for react-native get size for different screen sizes.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-getsize:

$ npm install eslint-plugin-getsize --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-getsize globally.

Usage

Add getsize to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "getsize"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "getsize/need-get-font-size-scale-factor": 2
    }
}

Supported Rules

  • Fill in provided rules here

    • need-get-font-size-scale-factor - checks that all font sizes are with scale factor.

Package Sidebar

Install

npm i eslint-plugin-getsize

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

36 kB

Total Files

6

Last publish

Collaborators

  • pro_solvo