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

@reservando/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reservando/eslint-config

Husky, Eslint and Prettier config for Reservando

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Linters config

eslint & prettier standard configs for Reservando.
It allows to work with husky and lint-staged

Getting started

  1. Install dependency. Make sure to use --save so it installs all the required dependencies eslint prettier, husky, plugins, etc
npm install --save @reservando/eslint-config
  1. Create file .eslintrc.js.
    Add only the configs you need for your project.
module.exports = {
  extends: [
    "@reservando/eslint-config/config/eslint",
    "@reservando/eslint-config/config/eslint-testcafe",
    "@reservando/eslint-config/config/eslint-jest",
    "@reservando/eslint-config/config/eslint-typescript",
    "@reservando/eslint-config/config/eslint-vue",
  ],
  rules: {
    // My custom rules
  },
};
  1. Create file .prettierrc.js
const sharedConfig = require("@reservando/eslint-config/config/prettier");

module.exports = {
  ...sharedConfig,
  // My custom rules
};
  1. Update your package.json
{
  "scripts": {
    "lint": "npm run lint:prettier && npm run lint:eslint",
    "lint:fix": "npm run lint:prettier -- --write && npm run lint:eslint -- --fix",
    "lint:eslint": "eslint '**/*.{js,ts,vue}'",
    "lint:prettier": "prettier --check '**/*.{md,scss,json}'"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{js,ts,vue}": "eslint --fix",
    "*.{md,scss,json}": "prettier --write"
  }
}

FAQs

Package last updated on 12 Feb 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