Skip to content

Commit

Permalink
Updating the linter and fixing the errors found
Browse files Browse the repository at this point in the history
  • Loading branch information
OlehBabenkoo committed Feb 5, 2024
1 parent bdd68c2 commit 9ba2c72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
ecmaVersion: 'latest',
},
extends: ['plugin:cypress/recommended', 'eslint:recommended'],
ignorePatterns: ['node_modules/', 'reports/'],
rules: {
quotes: [
'error',
Expand Down
4 changes: 2 additions & 2 deletions cypress/src/components/ProductList.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import QuickView from '../modals/QuickView';

export default class ProductList {
homeTabsContainerLocator = '#home-page-tabs'
bestSellersBtnLocator = '.blockbestsellers'
homeTabsContainerLocator = '#home-page-tabs';
bestSellersBtnLocator = '.blockbestsellers';
productsContainerLocator = '.tab-content';
productContainerLocator = '.product-container';
productDiscountLocator = '#blockbestsellers .right-block .price-percent-reduction';
Expand Down
2 changes: 1 addition & 1 deletion cypress/src/modals/QuickView.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export default class QuickView {
});
});
return this;
}
}
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": " Automation Mentoring project (JavaScript, Cypress ^10, Mochawesome reporter, CI/CD GitHub,)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint .",
"lint-debug": "eslint . --debug"
},
"repository": {
"type": "git",
Expand All @@ -18,8 +20,9 @@
"homepage": "https://github.com/VadimNastoyashchy/cypressautomationpracticecom#readme",
"devDependencies": {
"cypress": "10.2.0",
"eslint-plugin-cypress": "2.12.1",
"mochawesome": "7.1.3",
"cypress-iframe": "1.0.1"
"cypress-iframe": "1.0.1",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.12.1",
"mochawesome": "7.1.3"
}
}

0 comments on commit 9ba2c72

Please sign in to comment.