Skip to content

Memberstack/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESlint Config

A set of common rules for all TypeScript repositories. This module also comes with Prettier to assist with code formatting.

Commitizen friendly

Installation

This project can be installed as a dependency through GitHub:

yarn add -D @memberstack/eslint-config

Note that this ruleset is environment agnostic. It will need to be extended depending on your project and environment.

Ex. Extending for React

{
  "env": {
    "browser": true
  },
  "extends": [
    "@memberstack/eslint-config",
    "plugin:react/recommended"
  ],
  "plugins": [
    "react"
  ],
  "rules": {
    "react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
    "react/state-in-constructor": ["warn", "never"]
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published