Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

titanium-technologies-group/eslint-config-titanium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-titanium

ESLint shareable config for internal projects at Titanium

Installation

Install ESLint locally.

You don't need ESLint if you use create-react-app boilerplate.

$ npm install eslint --save-dev

Install eslint-config-titanium with peer dependencies

$ npm install --save-dev eslint-config-airbnb eslint-config-prettier eslint-plugin-jest eslint-plugin-react eslint-config-titanium

Usage

Once the eslint-config-titanium package is installed, you can use it by specifying titanium in the extends section of your ESLint configuration.

{
  "extends": "titanium",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the titanium config with eslint:recommended

To use Titanium style in conjunction with ESLint's recommended rule set, extend them both, making sure to list titanium last:

{
  "extends": ["eslint:recommended", "titanium"],
  "rules": {
    // Additional, per-project rules...
  }
}

To see how the titanium config compares with eslint:recommended, refer to the source code of index.js, which lists every ESLint rule along with whether (and how) it is enforced by the titanium config.

Heavily inspired by eslint-config-google

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published