chore: fix eslint-related issues (#2690)

* chore: 🤖 add .eslintignore for e2e-tests directory

* chore: 🤖 add auto-fixable eslint changes

* chore: 🤖 make js tasks more explicit to avoid race conditions

avoid having js files be in two separate concurrent branches where tasks
could result in race-condition writes

* chore: 🤖 expand .eslintignore to include more generated dirs

* chore: 🤖 fix additional lint-staged tasks

Fix additional lint-staged tasks that could result in race conditions
This commit is contained in:
hashicc authored and GitHub committed 2025-02-13 17:09:10 -05:00
1 parent f12ae90aba
commit c5fdbfd62d
9 files changed
+21 -17

No files matched your search

+2 -2
View File
@@ -82,8 +82,8 @@
"configPath": "tests/dummy/config"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.{scss,yaml}": "prettier --write"
}
}
+2 -2
View File
@@ -77,8 +77,8 @@
"configPath": "tests/dummy/config"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.{scss,yaml}": "prettier --write"
}
}
+2 -2
View File
@@ -98,8 +98,8 @@
"configPath": "tests/dummy/config"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.{scss,yaml}": "prettier --write"
}
}
+3 -3
View File
@@ -107,9 +107,9 @@
"configPath": "tests/dummy/config"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.scss": "stylelint --fix",
"*.{js,scss,mdx,yaml}": "prettier --write"
"*.scss": ["stylelint --fix", "prettier --write"],
"*.{mdx,yaml}": "prettier --write"
}
}
+4
View File
@@ -0,0 +1,4 @@
# e2e test output
admin/artifacts
desktop/artifacts
playwright-report
+2 -2
View File
@@ -303,11 +303,11 @@ test.describe('Credential Panel tests', () => {
// Empty string and null should not be visible
await expect(
authedPage.getByRole('listitem').filter({ hasText: 'nested.key3' }),
).not.toBeVisible();
).toBeHidden();
await expect(
authedPage.getByRole('listitem').filter({ hasText: 'nested.key4' }),
).not.toBeVisible();
).toBeHidden();
await authedPage
.getByRole('listitem')
+2 -2
View File
@@ -42,7 +42,7 @@
"node": "20.* || 22.*"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.js": ["eslint --fix", "prettier --write"],
"*.{scss,yaml}": "prettier --write"
}
}
+2 -2
View File
@@ -107,8 +107,8 @@
"edition": "octane"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.{scss,yaml}": "prettier --write"
}
}
+2 -2
View File
@@ -119,8 +119,8 @@
"edition": "octane"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.js": ["eslint --fix", "prettier --write"],
"*.hbs": "ember-template-lint --fix",
"*.{js,scss,yaml}": "prettier --write"
"*.{scss,yaml}": "prettier --write"
}
}