🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

eslint-config-transloadit

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-transloadit

Transloadit eslint rules

latest
npmnpm
Version
2.0.0
Version published
Maintainers
2
Created
Source

eslint-config-transloadit

Transloadit eslint rules

eslint-config-airbnb, with a dash of standard and a pinch of transloadit 🤏

Installing

  • Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-transloadit@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev eslint-config-transloadit

If using yarn, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.

  • npm install --save-dev eslint-config-transloadit

  • Add "extends": "transloadit" to your .eslintrc

See also eslint-config-airbnb

Version 2

Newly enforced rules

When upgrading to v2, these can be overridden and set to warn in consuming projects at first:

  • Rule of Hooks https://reactjs.org/docs/hooks-rules.html
  • no-unreachable-loop
  • max-classes-per-file is set to 1 (from airbnb)
  • one-var (from airbnb)
  • no-underscore-dangle (from airbnb)
  • comma-dangle now also enforces: "functions: 'always-multiline'" (from airbnb)
  • operator-linebreak is now none (from airbnb), meaning there can be no linebreak before or after =

No longer enforced rules

off/warn-overrides for these inside consuming projects can be deleted:

  • react/jsx-one-expression-per-line
  • no-await-in-loop

See also https://github.com/transloadit/eslint-config-transloadit/pull/12/commits/2200e5f227dcc3893d5d81a80ca35e546c43bc06

Releasing

  • npm i -g np
  • np

FAQs

Package last updated on 01 Nov 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