🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

eslint-config-teselagen

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-teselagen

teselagen linter rules

6.1.6
latest
Source
npm
Version published
Weekly downloads
77
-35.29%
Maintainers
1
Weekly downloads
 
Created
Source

Teselagen's shared linting config

Installation

requires v6 of eslint or higher

  • yarn add -D eslint@8 eslint-config-teselagen

  • 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

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!

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts