Skip to content

Add Cypress config #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 11.0.0 - 2023-04-20

- Include cypress config

## 11.0.0-alpha.7 - Mar 7 2023

- Update JSDoc rules
Expand Down
22 changes: 22 additions & 0 deletions cypress.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
extends: ['plugin:cypress/recommended'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.cy.{js,ts,tsx}'],
},
],
},
overrides: [
{
files: ['**/*.spec.*', '**/*.cy.*'],
rules: {
'jest/expect-expect': 'off',
'jest/valid-expect-in-promise': 'off',
'jest/valid-expect': 'off',
'@babel/no-unused-expressions': 'off',
},
},
],
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'@fs/eslint-config-frontier-react/es6',
'@fs/eslint-config-frontier-react/json',
'@fs/eslint-config-frontier-react/jest',
'@fs/eslint-config-frontier-react/cypress',
'@fs/eslint-config-frontier-react/dont-need-lodash',
'@fs/eslint-config-frontier-react/prettierSetup', // Always have prettier last so it can override format rules in the extends before it
],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fs/eslint-config-frontier-react",
"version": "11.0.0-alpha.8",
"version": "11.0.0",
"description": "A common ESLint configuration setup for frontier apps",
"main": "index.js",
"engines": {
Expand Down Expand Up @@ -43,6 +43,7 @@
"@typescript-eslint/parser": "^5.55.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-cypress": "^2.13.2",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
Expand Down