JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 198
  • Score
    100M100P100Q115881F
  • License MIT

Package Exports

  • @muban/eslint-config
  • @muban/eslint-config/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@muban/eslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@muban/eslint-config npm version

The official Muban eslint configurations.

This configuration uses the Media.Monks eslint configuration with some small tweaks, together with the addition of lit and lit-a11y plugins to support the Muban templates.

Installation

The configuration has a number of peer dependencies that must be installed.

npm i --dev @muban/eslint-config

Note for yarn users: yarn does not install peer dependencies by default, this can be supplemented with install-peerdeps.

npx install-peerdeps --dev --only-peers @mediamonks/eslint-config-base
npx install-peerdeps --dev @muban/eslint-config

Usage

Now you can add @muban/eslint-config to your .eslintrc.

{
  "extends": "@muban/eslint-config",
  "parserOptions": {
    "project": "./tsconfig.json" // can also be an array, if multiple `tsconfig.json` are present
  }
}

Adding parserOptions.project is only required if your project is using TypeScript.

Or directly in your .package.json:

{
  "eslintConfig": {
    "extends": "@muban/eslint-config",
    "parserOptions": {
      "project": "./tsconfig.json"
    }
  }
}