eslint-plugin-cypress
Advanced tools
Comparing version 1.1.0 to 2.0.0
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 | ||
} | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1910
29
2
5
16
+ Addedglobals@^11.0.1
+ Addedglobals@11.12.0(transitive)