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

1.0.0-alpha.3 • 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

.eslintrc.js

module.exports = {
  root: true,
  extends: ['@craftworks/eslint-config-cypress'],
  parser: '@typescript-eslint/parser',
  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"]
}

Peer Dependencies

  • eslint: ^8.56.0
  • typescript: ^4.7.5 || ^5.0.0
  • @typescript-eslint/parser: ^7.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

62

Version

1.0.0-alpha.3

License

MIT

Unpacked Size

7.22 kB

Total Files

11

Last publish

Collaborators

  • zualexander
  • phi_spindler