Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@contentful/eslint-config-backend

contentful1.5kUNLICENSED11.0.2TypeScript support: included

ESLint rule-set according to our company code-style guidelines

eslint, config

readme

Installation

npm install -D -E @contentful/eslint-config-backend eslint

Usage

Add eslint.config.js at your project root:

const contentfulBackend = require("@contentful/eslint-config-backend");

module.exports = [
  contentfulBackend.default,
  {
    ignores: ["built", "node_modules"],
  },
];

Or add the following, if you are using ES Modules:

import contentfulBackend from "@contentful/eslint-config-backend";

export default [
  contentfulBackend,

  // add your project specific rules here
  {
    rules: {
      "no-unused-vars": "warn",
    },
  },
];

Rules

See src/index.ts for details.

The eslint-config-prettier is applied at the end and disables all eslint rules that conflict with prettier.

changelog

11.0.2 (2024-11-22)

Bug Fixes

11.0.1 (2024-11-07)

Bug Fixes

  • add mocha/handle-done-callback (8ce6de0)
  • don't apply recommended rules (76639ef)

11.0.0 (2024-11-07)

  • feat!: ESLint v9 and major config revamp (7d03c89)

BREAKING CHANGES

  • eslint v9 and several major changes

10.3.1 (2024-03-12)

Bug Fixes

10.3.0 (2024-02-07)

Features

  • [MEC-505] - migrate to GH packages (e4b409a)

10.2.1 (2023-01-24)

Bug Fixes

10.2.0 (2023-01-05)

Features

  • [] Grant permissions for secrets from CI (#82) (78b8f25)

10.1.0 (2022-07-13)

Features

10.0.0 (2022-02-02)

Features

BREAKING CHANGES

  • This version updates the necessary peer dependencies in order to support ESLint 8.

Change Log

All notable changes to this project will be documented in this file.

v9.0.0 - 2021-07-28

Changed

  • add unicorn plugin as peer dep

v8.1.0 - 2021-07-27

Added

  • add eslint rule to enforce kebab-case filenames

v7.0.1 - 2020-08-11

Fixed

  • use correct config for mocha/handle-done-callback
  • allow other majors

v7.0.0 - 2019-07-10

Changed

  • Update the version of eslint-config-standard

v6.1.0 - 2019-04-05

Changed

  • Add a clarification about he pre-commit linting

v6.0.1 - 2018-01-15

v6.0.0 - 2017-08-10

v5.0.0 - 2017-07-27

Fixed

  • explicitly state error cases for no-use-before-define
  • Add required packages to install instructions

v4.0.0 - 2017-07-11

Changed

  • Bump eslint-plugin-standard to 3.0.1