Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npm run lint
npm run format:check
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Add files here to ignore them from prettier formatting

**/package-lock.json

**/*.js
**/*.?js
**/*.ts
**/*.?ts
**/*.md

test-project/cypress/
9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"trailingComma": "all",
"arrowParens": "always",
"singleQuote": true
}
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ To add a new rule:
* Run `eslint-doc-generator` to generate automated documentation sections (see [Document generation](#document-generation) below)
* Review documentation changes
* Run `npm run lint`
* Run `npm run format`
* Run `npm test` to run [Vitest](https://vitest.dev/)
* Make sure all tests are passing
* Add the rule to [flat.js](https://github.com/cypress-io/eslint-plugin-cypress/blob/master/lib/flat.js)
Expand Down
5 changes: 4 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ jobs:
name: Show ESLint version
command: npx eslint --version
- run:
name: Lint code
name: Lint code with ESLint
command: npm run lint
- run:
name: Lint code with Prettier
command: npm run format:check

test-v9:
executor: docker-executor
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@
"eslint-plugin-eslint-plugin": "^6.4.0",
"eslint-plugin-mocha": "^11.1.0",
"husky": "^9.1.7",
"prettier": "^3.5.3",
"semantic-release": "24.2.5",
"vitest": "^3.1.4"
},
"scripts": {
"lint": "eslint",
"lint-fix": "eslint --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"semantic-release": "semantic-release",
"test": "vitest run",
"prepare": "husky"
Expand Down