@inrupt/eslint-config-base

3.2.1 • Public • Published

eslint-config-inrupt-base

Eslint config which is the base for all inrupt projects. You likely want to import eslint-config-inrupt-lib or eslint-config-inrupt-react instead.

Usage

In order to use this style configuration, you'll need to add the following line to the top of the .eslintrc.js file:

require("@rushstack/eslint-patch/modern-module-resolution");

This ensures that you load the dependencies from the style configuration, instead of your project. This patch is a workaround for the longstanding eslint issue 3458 regarding how eslint loads modules.

Rules

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

  • Load a stylistic base set - in this case, airbnb-base
  • Load recommended configs for common libraries: eslint, jest, typescript
  • Load prettier config to override everything where there are conflicts
  • Do very little else- as few custom rules or overrides as possible

Dependents (2)

Package Sidebar

Install

npm i @inrupt/eslint-config-base

Weekly Downloads

846

Version

3.2.1

License

MIT

Unpacked Size

9.57 kB

Total Files

5

Last publish

Collaborators

  • astrid.vazquez
  • timbl
  • rubenverborgh
  • nseydoux
  • pmcb55
  • inrupt_ci