JSPM

airbnb-eslint9

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

This package provides eslint-config-airbnb-base v15.0.0 rules as flat config for EsLint 9.

Package Exports

  • airbnb-eslint9
  • airbnb-eslint9/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 (airbnb-eslint9) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Airbnb base v15.0.0 for EsLint 9

This package provides eslint-config-airbnb-base v15.0.0 rules as flat config for EsLint 9. This is a temporary solution until the official package has been updated, see e.g. this issue. It also replaces the formatting rules in airbnb-base with the corresponding @stylistic/eslint-plugin rules.

Installation

Unfortunately the peer dependencies of the original eslint-config-airbnb-base package, did force an eslint version of 7 or 8. Therefore, the flag --legacy-peer-deps (or --force) is needed to run npm install. The project contains an .npmrc file with this flag, so you can just run npm install.

Usage

Add airbnb-eslint9 as a devDepenency to your project: npm install airbnb-eslint9 --save-dev

In your eslint.config.js add the following:

import airbnbBase from 'airbnb-eslint9';

export default [
  {
    plugins: {
      '@stylistic': stylistic,
      'import': importPlugin,
       ...morePlugins
    },
  },
  ...airbnbBase,
  ...yourConfig,
];