Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

figome/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-figo

Shareable ESLint configuration module for figo ecosystem.

This package provides Figo teams base JS .eslintrc.js as an extensible shared config. Based on Airbnb's base config

Usage

Our default export contains all of our ESLint rules, including ECMAScript 6.

  1. add eslint-config-figo to your dev dependencies
    npm i --save-dev eslint-config-figo
  2. extend it in your .eslintrc.js file fully:
    {
       "extends": "figo",
       "root": true
    }
    
    or partially:
    {
        "extends": "figo/test"
    }
    
    Please note, .eslintrc configuration file format is deprecated.

See Airbnb's overarching ESLint config, Airbnb's Javascript styleguide, and the ESlint config docs for more information.

Running

You can simply run it with $(npm bin)/eslint {file|folder to validate}

Or add it to your package.json script section

  "scripts": {
    "lint": "$(npm bin)/eslint ./app/"
  }

and then run npm run lint

Precommit validation

In case if you need to do linting on pre-commit git hook, it possible to use provided figo-lint helper to lint staged files.

Example of npm script:

  "scripts": {
    "precommit": "$(npm bin)/figo-lint"
  }

About

Shareable ESLint configuration module for figo ecosystem

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors