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

@side/eslint-config-cypress

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@side/eslint-config-cypress

An ESLint configuration which enables lint rules for Cypress tests.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@side/eslint-config-cypress

An ESLint configuration which enables lint rules for Cypress tests.

Installation

Install this package, and ensure you have installed its peer dependencies.

yarn info @side/eslint-config-cypress peerDependencies

yarn add -D @side/eslint-config-cypress

Usage

Once all peer dependencies have been added to your project, extend this configuration in your project's .eslintrc.js.

.eslintrc.js

module.exports = {
  overrides: [
    {
      files: ['**/cypress/**/*.js'],
      extends: ['@side/cypress'],
    },
  ],
};

Note: Make sure to extend this as an override so you can specify the exact Cypress test files you want these rules to be run against. Please reference the eslint-config-cypress documentation for more details.

Notes

  • Cypress is not a peerDependency since this lint config can be used at a different level than Cypress is being used. For example in Side repos which contain apps, the lint config is at the top level and Cypress is currently installed at the package level.

FAQs

Package last updated on 10 Jul 2024

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