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

2.0.2 • Public • Published

@craftworks/eslint-config-cypress

NPM version Downloads

An ESLint config optimized for Cypress.

Contains the configs of

and applies a custom config.

Following configurations are provided

Installation

npm install @craftworks/eslint-config-cypress --save-dev

Check for necessary peer dependencies.

Usage

eslint.config.js

import eslintConfigCypress from '@craftworks/eslint-config-cypress';

export default [
  ...eslintConfigCypress,
  {
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.lint.json'],
      },
    },
    rules: {
      // Optional rule overwrites
    },
  },
];

Create a tsconfig.lint.json for your project that defines all the files that should be linted.

{
  "extends": "./tsconfig.json",
  "include": ["cypress"]
}

Note that only flat config is supported.

Peer Dependencies

  • eslint: ^9.0.0
  • @eslint/js: ^9.0.0
  • typescript: ^4.8.4 || ^5.0.0
  • typescript-eslint: ^8.0.0

The minimal node version is 18.18.0.

See package.json for more details

Change Log

See CHANGELOG.md

License

MIT

Package Sidebar

Install

npm i @craftworks/eslint-config-cypress

Weekly Downloads

10

Version

2.0.2

License

MIT

Unpacked Size

9.89 kB

Total Files

15

Last publish

Collaborators

  • zualexander
  • phi_spindler