Skip to content

Commit

Permalink
fix(cypress): eslint for cypress remove cypress imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Fewwy committed Oct 12, 2022
1 parent cb15295 commit 12f5746
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},
},
plugins: ['prettier', 'rulesdir'],
extends: ['eslint:recommended', 'prettier', 'plugin:prettier/recommended', 'plugin:react/recommended'],
extends: ['eslint:recommended', 'prettier', 'plugin:prettier/recommended', 'plugin:react/recommended', 'plugin:cypress/recommended'],
rules: {
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
'prettier/prettier': ['error', { singleQuote: true }],
Expand Down
6 changes: 2 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"react": "^16.14.0 || ^17.0.0",
"react-dom": "^16.14.0 || ^17.0.0",
"react-redux": ">=7.0.0",
"react-router-dom": "^5.0.0"
"react-router-dom": "^5.0.0",
"cypress": "^10.9.0"
},
"dependencies": {
"@redhat-cloud-services/types": "^0.0.10",
Expand All @@ -47,8 +48,5 @@
"devDependencies": {
"@types/react": "^16.14.32"
},
"optionalDependencies": {
"cypress": "^10.9.0"
},
"sideEffects": false
}
1 change: 0 additions & 1 deletion packages/utils/src/CypressUtils/PaginationUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cy } from 'cypress';
import { DROPDOWN_ITEM, DROPDOWN_TOGGLE, PAGINATION_MENU, TOOLBAR } from './selectors';

const DEFAULT_ROW_COUNT = 20;
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/CypressUtils/TableUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Cypress, cy } from 'cypress';
import _ from 'lodash';

import { ROW, TABLE, TBODY, TITLE } from './selectors';
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/CypressUtils/UIFilters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cy } from 'cypress';
/*
Utilities related to URL parameters passed for table filtering
*/
Expand Down

0 comments on commit 12f5746

Please sign in to comment.