@contentful/eslint-config-backend
TypeScript icon, indicating that this package has built-in type declarations

11.0.2 • Public • Published

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.

/@contentful/eslint-config-backend/

    Package Sidebar

    Install

    npm i @contentful/eslint-config-backend

    Weekly Downloads

    559

    Version

    11.0.2

    License

    UNLICENSED

    Unpacked Size

    77.9 kB

    Total Files

    22

    Last publish

    Collaborators

    • it-internal
    • whydah-gally
    • contentful-ecosystem
    • michaelpearce