Socket
Socket
Sign inDemoInstall

eslint-plugin-cypress

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-cypress - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

circle.yml

33

index.js

@@ -0,22 +1,17 @@

const globals = require('globals')
module.exports = {
env: {
browser: true,
environments: {
globals: {
globals: Object.assign(globals.browser, globals.mocha, {
cy: false,
Cypress: false,
expect: false,
assert: false,
}),
parserOptions: {
ecmaVersion: 2017,
},
},
},
parserOptions: {
ecmaVersion: 6,
},
globals: {
cy: true,
Cypress: true,
describe: true,
context: true,
it: true,
before: true,
beforeEach: true,
after: true,
afterEach: true,
expect: true,
assert: true,
}
}

@@ -1,24 +0,1 @@

{
"name": "eslint-plugin-cypress",
"version": "1.1.0",
"description": "An ESLint plugin for projects that use Cypress",
"main": "index.js",
"author": "Chris Breiding (chris@cypress.io)",
"license": "MIT",
"keywords": [
"eslint",
"eslintplugin",
"cypress"
],
"repository": {
"type": "git",
"url": "git+https://github.com/cypress-io/eslint-plugin-cypress.git"
},
"bugs": {
"url": "https://github.com/cypress-io/eslint-plugin-cypress/issues"
},
"homepage": "https://github.com/cypress-io/eslint-plugin-cypress#readme",
"peerDependencies": {
"eslint": ">= 3.2.1"
}
}
{"name":"eslint-plugin-cypress","version":"2.0.0","description":"An ESLint plugin for projects using Cypress","main":"index.js","author":"Chris Breiding (chris@cypress.io)","license":"MIT","keywords":["eslint","eslintplugin","cypress"],"repository":{"type":"git","url":"git+https://github.com/cypress-io/eslint-plugin-cypress.git"},"bugs":{"url":"https://github.com/cypress-io/eslint-plugin-cypress/issues"},"homepage":"https://github.com/cypress-io/eslint-plugin-cypress#readme","peerDependencies":{"eslint":">= 3.2.1"},"dependencies":{"globals":"^11.0.1"},"devDependencies":{"condition-circle":"1.5.0","github-post-release":"1.13.1","husky":"^0.14.3","semantic-release":"8.2.0","simple-commit-message":"3.3.1"},"scripts":{"precommit":"eslint *.js","semantic-release":"semantic-release pre && npm publish --access public && semantic-release post"},"release":{"verifyConditions":"condition-circle","analyzeCommits":"simple-commit-message","generateNotes":"github-post-release"}}
# Cypress ESLint Plugin
An ESLint plugin for projects that use Cypress.
An ESLint plugin for projects using [Cypress](https://cypress.io) for tests.
Specifies globals for Cypress (`cy` & `Cypress`) as well as browser and mocha globals.
## Installation
```sh
npm install eslint-plugin-cypress --save-dev
```
## Usage
```js
// .eslintrc
Add an `.eslintrc` file to your `cypress` directory with the following:
```json
// my-project/cypress/.eslintrc
{
"plugins": [
"cypress"
]
],
"env": {
"cypress/globals": true
}
}
```
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