simple plugin for react-native get size for different screen sizes.
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.
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
}
}
-
Fill in provided rules here
- need-get-font-size-scale-factor - checks that all font sizes are with scale factor.