Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@payloadcms/eslint-config

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/eslint-config

The official ESLint config for Payload CMS.


Version published
Weekly downloads
6.4K
increased by1.75%
Maintainers
4
Weekly downloads
 
Created
Source

NPM Bundle Size

Payload CMS ESLint Config

An ESLint Config for Payload CMS projects.

Installation

$ npm i --save-dev @payloadcms/eslint-config
$ npm info @payloadcms/eslint-config peerDependencies
$ npm i --save-dev <dependency>@<version> # for each dependency in the above output
$ # or
$ yarn add --dev @payloadcms/eslint-config
$ yarn info @payloadcms/eslint-config peerDependencies
$ yarn add --dev <dependency>@<version> # for each dependency in the above output

Usage

There are a number of configurations for consumption, all of which are packaged together as the default export — or they can be selectively extended, which prevents the path names from being written shorthand.

{
  "extends": "@payloadcms"
  // or selectively extend any config(s)
  // "extends": [
  //   "@payloadcms/eslint-config/configs/base",
  //   "@payloadcms/eslint-config/configs/jest",
  //   "@payloadcms/eslint-config/configs/react",
  // ]
}

If using Webpack, install and configure eslint-loader to have loaded files automatically linted.

{
  test: /\.js$/,
  exclude: /node_modules/,
  loader: 'eslint-loader',
  options: {
    fix: true,
    emitWarning: true,
  },
}

For working examples, see the demo app.

Demo

$ git clone git@github.com:payloadcms/eslint-config.git
$ yarn
$ yarn demo
$ open http://localhost:3000

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) Payload CMS

Keywords

FAQs

Package last updated on 16 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc