Skip to content

TeselaGen/eslint-config-teselagen

Repository files navigation

Teselagen's shared linting config

Installation

requires v6 of eslint or higher

  1. yarn add -D eslint@8 eslint-config-teselagen

  2. Add the following to .eslintrc.js

module.exports = {
  //choose one of the following:
	extends: "teselagen/react"
	extends: "teselagen/node"
	extends: "teselagen/cypress"
	extends: "teselagen/es5"
}

For React.js projects, extend from teselagen/react For Node.js projects, extend from teselagen/node

Adding linting on precommit (recommended!)

Then add this to your package.json:

"scripts": {
  "precommit": "lint-staged"
},
"lint-staged": {
  "src/**/*.js": [
    "eslint --fix --max-warnings=0",
    "prettier --write",
    "git add"
  ]
},

Changelog

v5

-We're now using a patch to simplify installation!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •