Skip to content

Add cy files to our overrides for tests and non-production code to not include our extra rules that are not needed for that #21

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

Merged
merged 2 commits into from
Sep 30, 2024
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
12 changes: 11 additions & 1 deletion es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ module.exports = {
},
overrides: [
{
files: ['*.stories.*', '*test*', '**/test/**', '**/*mock*/**', '*mock*', '**/setupTests.*', '**/fixtures/**'],
files: [
'*.stories.*',
'*test*',
'**/test/**',
'**/*mock*/**',
'*mock*',
'**/setupTests.*',
'**/fixtures/**',
'**/*.cy.*',
],
rules: {
'no-alert': 'off',
'no-console': 'off',
Expand All @@ -114,6 +123,7 @@ module.exports = {
'test-selectors/onKeyUp': 'off',
'test-selectors/onSubmit': 'off',
'import/prefer-default-export': 'off',
'promise/catch-or-return': 'off',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fs/eslint-config-tree",
"version": "6.1.0",
"version": "6.1.1",
"description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.",
"main": "index.js",
"repository": {
Expand Down