-
Notifications
You must be signed in to change notification settings - Fork 41
chore: fix linting of test-app and remove webkit from e2e testing #1798
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: fix linting of test-app and remove webkit from e2e testing #1798
Conversation
Specifically, autogenerated files shouldn't be being linted or modified.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| // | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> |
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.
@chelseapinka @NSeydoux this file was broken by the recent changes, specifically, we need to exclude these files from license-header and linting/prettier.
| "lint": "npm run lint:check", | ||
| "lint:fix": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write", | ||
| "lint:check": "npm run lint:eslint && npm run lint:prettier -- --check", | ||
| "lint:eslint": "eslint --config .eslintrc.js \"src/\" \"e2e/\" --ignore-pattern \"e2e/**/*js\"", |
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.
This is done with a new rule in .eslintignore and .prettierignore
| // process.env.CI === "true" ? "in CI" : "locally" | ||
| // }. Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1`, | ||
| // }, | ||
| // }, |
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.
Keeping it here just in case we want to get it back after ESS is fixed.
| *.snap | ||
| *.env | ||
| *.env.* | ||
| **/.next/ |
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.
missing newline here, not a big deal
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.
eh, ooops, we can fix it later.
No description provided.