-
Notifications
You must be signed in to change notification settings - Fork 9
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
Prettier plugin added to Cypress tests #240
Conversation
{ | ||
"singleQuote": true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier setup
`createWidget(name)` - use any name from `functional/cypress-tests/cypress/fixtures/Widgets.js` for example: `Widgets.whiteSpace.name` - this will add configured widget to current board. Widget type will be deducted from name prop. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation update
"eslint-config-prettier": "^6.9.0", | ||
"eslint-plugin-cypress": "^2.8.1", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"husky": "^4.0.6", | ||
"lint-staged": "^9.5.0", | ||
"prettier": "^1.19.1", | ||
"pretty-quick": "^2.0.1" | ||
}, | ||
"scripts": { | ||
"test": "npm install & npx cypress run --browser chrome" | ||
"test": "npm install & npx cypress run --browser chrome", | ||
"prettier": "prettier --write \"cypress/**/*.{js,ts,json}\"" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Cognifide/cogboard" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"cypress/**/*.{js,ts,json}": [ | ||
"pretty-quick --staged", | ||
"git add" | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier setup
Description
With
prettier
we will have consistent formatting of JS code of our test files.Motivation and Context
Consistent formatting.
Types of changes
Checklist:
I hereby agree to the terms of the Cogboard Contributor License Agreement.