eslint-config-calvium
v0.4.0
Published
eslint configuration to be used in Calvium React Native Projects
Downloads
8
Readme
Eslint Config Calvium
Current React Native tested versions from 52.x
but it may work in earliers too.
Install
This module can be use in any project as a dev dependency, but it focus in RN projects.
npm install eslint-config-calvium --save-dev
#or
yarn add eslint-config-calvium --dev
after that you just need a .eslintrc
in the same folder than the package.json
file with this content
// Calvium React Native Project Default ESLint Settings.
{
"extends": "calvium"
}
##NOTES
You must install the appropiate version of eslint for your project. Version 4 is recommended
npm i eslint@4 --save-dev
#or
yarn add eslint@4 --dev
To check the package is working in your installation run:
cd path/to/package.json
./node_modules/.bin/eslint ./path/**
with path being the place where your js code is.
To have this in your IDE in-line:
- WebStorm/PhpStorm go to:
- Settings ->
- Languages & Frameworks ->
- JavaScript ->
- Code Quality Tools ->
- ESLint -> enable