Socket
Socket
Sign inDemoInstall

@inrupt/eslint-config-lib

Package Overview
Dependencies
Maintainers
10
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inrupt/eslint-config-lib

Shared eslint config for Javascript at @inrupt


Version published
Weekly downloads
1.4K
decreased by-65.95%
Maintainers
10
Weekly downloads
 
Created
Source

eslint-config-inrupt-lib

Eslint and prettier configs

Installation

If Node <= 14:

  1. npm install --save-dev @inrupt/eslint-config-base
  2. npm install --save-dev @inrupt/eslint-config-lib
  3. npx install-peerdeps @inrupt/eslint-config-lib
  4. npx install-peerdeps @inrupt/eslint-config-base
  5. Add extends: ['@inrupt/eslint-config-lib'] to your .eslintrc.js file.

If Node >= 16:

  1. npm install --save-dev @inrupt/eslint-config-base
  2. npm install --save-dev @inrupt/eslint-config-lib
  3. Run the following scripts, adjusting version where necessary:
(
  export PKG=@inrupt/eslint-config-base;
  export VER=latest;
  npm info "$PKG@VER" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@VER"
)
(
  export PKG=@inrupt/eslint-config-lib;
  export VER=latest;
  npm info "$PKG@VER" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@VER"
)

Then, add extends: ['@inrupt/eslint-config-lib'] to your .eslintrc.js file.

Rules

Exhaustive documentation forthcoming. For now, the general principles are:

  • Load inrupt-base, which loads recommended configs for common libraries: eslint, jest, typescript, and prettier
  • Do very little else- as few custom rules or overrides as possible.
  • Some rules are updated to work with nextjs.

Keywords

FAQs

Package last updated on 15 Dec 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