Skip to content

Commit 1486944

Browse files
authored
Merge pull request #39 from fs-webdev/cypress
Add Cypress config
2 parents 071f02e + 5aeaa31 commit 1486944

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 11.1.0 - 2024-08-15
4+
5+
- Include cypress config
6+
37
## 11.0.2 - Jun 5th 2024
48

59
- allowFunctions for react/jsx-no-bind

cypress.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
extends: ['plugin:cypress/recommended'],
3+
overrides: [
4+
{
5+
files: ['**/*.spec.*', '**/*.cy.*'],
6+
rules: {
7+
'jest/expect-expect': 'off',
8+
'jest/valid-expect-in-promise': 'off',
9+
'jest/valid-expect': 'off',
10+
'@babel/no-unused-expressions': 'off',
11+
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/*.cy.*', '**/*.spec.*'] }],
12+
},
13+
},
14+
],
15+
}

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'@fs/eslint-config-frontier-react/es6',
99
'@fs/eslint-config-frontier-react/json',
1010
'@fs/eslint-config-frontier-react/jest',
11+
'@fs/eslint-config-frontier-react/cypress',
1112
'@fs/eslint-config-frontier-react/dont-need-lodash',
1213
'@fs/eslint-config-frontier-react/prettierSetup', // Always have prettier last so it can override format rules in the extends before it
1314
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fs/eslint-config-frontier-react",
3-
"version": "11.0.2",
3+
"version": "11.1.0",
44
"description": "A common ESLint configuration setup for frontier apps",
55
"main": "index.js",
66
"engines": {
@@ -44,6 +44,7 @@
4444
"@typescript-eslint/parser": "^6.9.1",
4545
"eslint-config-airbnb": "^19.0.4",
4646
"eslint-config-prettier": "^9.0.0",
47+
"eslint-plugin-cypress": "^3.5.0",
4748
"eslint-plugin-html": "^7.1.0",
4849
"eslint-plugin-import": "^2.29.0",
4950
"eslint-plugin-jest": "^27.6.0",

0 commit comments

Comments
 (0)