0.4.0 • Published 6 years ago

eslint-config-calvium v0.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Eslint Config Calvium

Current React Native tested versions from 52.x but it may work in earliers too.

eslint

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