@pragmatic-divops/eslint-config-cypress 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +101 -0
- package/example.js +6 -0
- package/index.js +1 -0
- package/package.json +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License Copyright (c) 2020 Matt Travi
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
7
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
8
|
+
subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# eslint-config-cypress
|
|
2
|
+
|
|
3
|
+
Shareable config for ESLint for projects that use Cypress, which extends [@form8ion/eslint-config-cypress](https://github.com/form8ion/eslint-config-cypress)
|
|
4
|
+
|
|
5
|
+
<!--status-badges start -->
|
|
6
|
+
|
|
7
|
+
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
|
|
8
|
+
|
|
9
|
+
<!--status-badges end -->
|
|
10
|
+
|
|
11
|
+
## Table of Contents
|
|
12
|
+
|
|
13
|
+
* [Usage](#usage)
|
|
14
|
+
* [Installation](#installation)
|
|
15
|
+
* [Example](#example)
|
|
16
|
+
* [Contributing](#contributing)
|
|
17
|
+
* [Dependencies](#dependencies)
|
|
18
|
+
* [Verification](#verification)
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
<!--consumer-badges start -->
|
|
23
|
+
|
|
24
|
+
[![MIT license][license-badge]][license-link]
|
|
25
|
+
[![npm][npm-badge]][npm-link]
|
|
26
|
+
|
|
27
|
+
<!--consumer-badges end -->
|
|
28
|
+
|
|
29
|
+
### Installation
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
$ npm install @pragmatic-divops/eslint-config-cypress --save-dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Example
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
module.exports = {
|
|
39
|
+
extends: [
|
|
40
|
+
'@pragmatic-divops',
|
|
41
|
+
'@pragmatic-divops/cypress'
|
|
42
|
+
]
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Contributing
|
|
47
|
+
|
|
48
|
+
<!--contribution-badges start -->
|
|
49
|
+
|
|
50
|
+
[![PRs Welcome][PRs-badge]][PRs-link]
|
|
51
|
+
[![Conventional Commits][commit-convention-badge]][commit-convention-link]
|
|
52
|
+
[![Commitizen friendly][commitizen-badge]][commitizen-link]
|
|
53
|
+
[![semantic-release][semantic-release-badge]][semantic-release-link]
|
|
54
|
+
[![Renovate][renovate-badge]][renovate-link]
|
|
55
|
+
|
|
56
|
+
<!--contribution-badges end -->
|
|
57
|
+
|
|
58
|
+
### Dependencies
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
$ nvm install
|
|
62
|
+
$ npm install
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Verification
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
$ npm test
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
[PRs-link]: http://makeapullrequest.com
|
|
72
|
+
|
|
73
|
+
[PRs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
|
|
74
|
+
|
|
75
|
+
[commit-convention-link]: https://conventionalcommits.org
|
|
76
|
+
|
|
77
|
+
[commit-convention-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
|
|
78
|
+
|
|
79
|
+
[commitizen-link]: http://commitizen.github.io/cz-cli/
|
|
80
|
+
|
|
81
|
+
[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
|
|
82
|
+
|
|
83
|
+
[semantic-release-link]: https://github.com/semantic-release/semantic-release
|
|
84
|
+
|
|
85
|
+
[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
|
|
86
|
+
|
|
87
|
+
[renovate-link]: https://renovatebot.com
|
|
88
|
+
|
|
89
|
+
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNjkgMzY5Ij48Y2lyY2xlIGN4PSIxODkuOSIgY3k9IjE5MC4yIiByPSIxODQuNSIgZmlsbD0iI2ZmZTQyZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUgLTYpIi8+PHBhdGggZmlsbD0iIzhiYjViNSIgZD0iTTI1MSAyNTZsLTM4LTM4YTE3IDE3IDAgMDEwLTI0bDU2LTU2YzItMiAyLTYgMC03bC0yMC0yMWE1IDUgMCAwMC03IDBsLTEzIDEyLTktOCAxMy0xM2ExNyAxNy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wLTE1eiIvPjxwYXRoIGZpbGw9IiNlYjZlMmQiIGQ9Ik0yNjAgMjMzbC00LTRjLTYtNi0xNy02LTIzIDAtNyA3LTcgMTcgMCAyNGw0IDRjLTQtNS00LTExIDAtMTZsOC04YzQtNCAxMS00IDE1IDB6Ii8+PHBhdGggZmlsbD0iIzEzYWNiZCIgZD0iTTEzNCAyNDhjLTQgMC04LTItMTEtNWwtMjMtMjNhMTYgMTYgMCAwMTAtMjNMMjAxIDk2YTE2IDE2IDAgMDEyMiAwbDI0IDI0YzYgNiA2IDE2IDAgMjJMMTQ2IDI0M2MtMyAzLTcgNS0xMiA1em03OC0xNDdsLTQgMi0xMDEgMTAxYTYgNiAwIDAwMCA5bDIzIDIzYTYgNiAwIDAwOSAwbDEwMS0xMDFhNiA2IDAgMDAwLTlsLTI0LTIzLTQtMnoiLz48cGF0aCBmaWxsPSIjYmY0NDA0IiBkPSJNMjg0IDMwNGMtNCAwLTgtMS0xMS00bC00Ny00N2MtNi02LTYtMTYgMC0yMmw4LThjNi02IDE2LTYgMjIgMGw0NyA0NmM2IDcgNiAxNyAwIDIzbC04IDhjLTMgMy03IDQtMTEgNHptLTM5LTc2Yy0xIDAtMyAwLTQgMmwtOCA3Yy0yIDMtMiA3IDAgOWw0NyA0N2E2IDYgMCAwMDkgMGw3LThjMy0yIDMtNiAwLTlsLTQ2LTQ2Yy0yLTItMy0yLTUtMnoiLz48L3N2Zz4=
|
|
90
|
+
|
|
91
|
+
[github-actions-ci-link]: https://github.com/pragmatic-divops/eslint-config-cypress/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
|
|
92
|
+
|
|
93
|
+
[github-actions-ci-badge]: https://github.com/pragmatic-divops/eslint-config-cypress/workflows/Node.js%20CI/badge.svg
|
|
94
|
+
|
|
95
|
+
[license-link]: LICENSE
|
|
96
|
+
|
|
97
|
+
[license-badge]: https://img.shields.io/github/license/pragmatic-divops/eslint-config-cypress.svg
|
|
98
|
+
|
|
99
|
+
[npm-link]: https://www.npmjs.com/package/@pragmatic-divops/eslint-config-cypress
|
|
100
|
+
|
|
101
|
+
[npm-badge]: https://img.shields.io/npm/v/@pragmatic-divops/eslint-config-cypress.svg
|
package/example.js
ADDED
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {extends: '@form8ion/cypress'};
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pragmatic-divops/eslint-config-cypress",
|
|
3
|
+
"description": "Shareable config for ESLint for projects that use Cypress",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "1.0.3",
|
|
6
|
+
"files": [
|
|
7
|
+
"example.js",
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"runkitExampleFilename": "./example.js",
|
|
14
|
+
"repository": "pragmatic-divops/eslint-config-cypress",
|
|
15
|
+
"bugs": "https://github.com/pragmatic-divops/eslint-config-cypress/issues",
|
|
16
|
+
"homepage": "https://npm.im/@pragmatic-divops/eslint-config-cypress",
|
|
17
|
+
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "npm-run-all --print-label --parallel lint:*",
|
|
20
|
+
"lint:lockfile": "lockfile-lint",
|
|
21
|
+
"lint:md": "remark . --frail",
|
|
22
|
+
"generate:md": "remark . --output",
|
|
23
|
+
"lint:sensitive": "ban",
|
|
24
|
+
"lint:js": "eslint .",
|
|
25
|
+
"lint:peer": "npm ls >/dev/null"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@form8ion/eslint-config-cypress": "1.3.26"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@pragmatic-divops/commitlint-config": "1.0.5",
|
|
32
|
+
"@pragmatic-divops/eslint-config": "1.0.23",
|
|
33
|
+
"@pragmatic-divops/remark-preset": "2.0.1",
|
|
34
|
+
"ban-sensitive-files": "1.9.16",
|
|
35
|
+
"cz-conventional-changelog": "3.3.0",
|
|
36
|
+
"husky": "7.0.2",
|
|
37
|
+
"lockfile-lint": "4.6.2",
|
|
38
|
+
"npm-run-all": "4.1.5",
|
|
39
|
+
"remark-cli": "10.0.0",
|
|
40
|
+
"remark-toc": "8.0.0",
|
|
41
|
+
"remark-usage": "10.0.0"
|
|
42
|
+
}
|
|
43
|
+
}
|