-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
chore: improve linting #25235
chore: improve linting #25235
Changes from 30 commits
e683cf8
ca10890
35ac2e0
0921d79
4eddcef
b6326f4
f7abbd6
d4fd6df
33243f2
453de59
563617f
d7d9ee7
2751d09
bb0e134
db2d2c0
8467c4c
18e3e70
23de19f
9f926df
9688185
117de56
5eb2c30
366e04e
a387a77
f4b2464
5f348d0
8e3060d
dc63c07
13dfca7
966347a
9590db3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"extends": "../.eslintrc.js", | ||
"rules": { | ||
"no-restricted-syntax": [ | ||
"error", | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ | |
"extends": [ | ||
"plugin:promise/recommended", | ||
"plugin:@cypress/dev/general" | ||
], | ||
"rules": {} | ||
] | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,6 @@ | |
"ensure-deps": "./scripts/ensure-dependencies.sh", | ||
"get-next-version": "node scripts/get-next-version.js", | ||
"postinstall": "node ./scripts/run-postInstall.js", | ||
"jscodeshift": "jscodeshift -t ./node_modules/js-codemod/transforms/arrow-function-arguments.js", | ||
"lint": "lerna run lint --no-bail --concurrency 2", | ||
"lint-changed": "lint-changed", | ||
"prepare-release-artifacts": "node ./scripts/prepare-release-artifacts.js", | ||
|
@@ -176,9 +175,6 @@ | |
"inquirer": "3.3.0", | ||
"inquirer-confirm": "2.0.3", | ||
"jest": "24.9.0", | ||
"js-codemod": "cpojer/js-codemod", | ||
"jscodemods": "https://github.com/cypress-io/jscodemods.git#01b546e", | ||
"jscodeshift": "0.7.0", | ||
Comment on lines
-179
to
-181
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing these 3 historical deps got rid of 249 transitive dependencies and 74 MB: Before:
After:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! I wonder if there's a tool we can use to detect unused dependencies and prune more? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's called depcheck: https://github.com/depcheck/depcheck I want to add this to the repo at some point for sure. |
||
"lazy-ass": "1.6.0", | ||
"lerna": "3.20.2", | ||
"lint-staged": "11.1.2", | ||
|
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.
I'm not totally sure what the right thing to do here is, I made this change to fix the lint error from
no-unused-vars
but this doesn't look exactly right. ShouldE
on line 14 extendSubject
instead ofHTMLElement
? @jordanpowell88 any ideas?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.
Doe we need
Chainable
to haveSubject
? We might be able to omit it. Should it just beThere 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.
We have some examples in the docs that don't pass
Subject
toChainable
: https://docs.cypress.io/guides/tooling/typescript-support#Types-for-Custom-Commands