Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-sammy-preset

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-sammy-preset

ESLint preset

  • 26.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ESlint Sammy Preset

GitHub license npm version PRs Welcome

Highly opinionated & React/JSX centric.

Features:

  1. Lots of React goodness
  2. "Prettier" formatting (https://prettier.io/)

Installation

Step 1:

yarn add eslint eslint-sammy-preset --dev

or, if you use npm:

npm install eslint eslint-sammy-preset --save-dev

Step 2:

To the root of your project add the following two files:

.eslintrc.js
module.exports = require('eslint-sammy-preset');
.prettierrc.js
module.exports = require('eslint-sammy-preset/.prettierrc.recommended.js');

Step 3:

Add to your package.json "scripts" key (if doesn't exist, create):

"scripts": {
    "lint": "\"./node_modules/.bin/eslint\" src --ext js,ts,tsx",
    "lint:fix": "\"./node_modules/.bin/eslint\" src --ext js,ts,tsx --fix",
}

Step 4:

Run in your terminal

yarn lint

or, if you use npm:

npm run lint

Step 4.5

To auto-fix your code formatting:

yarn lint:fix

or, if you use npm:

npm run lint:fix

FAQs

Package last updated on 06 Apr 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc