aboutsummaryrefslogtreecommitdiff
path: root/test/eslint-config.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-24 23:47:57 -0500
committerGitHub <noreply@github.com>2024-02-25 04:47:57 +0000
commit73169f06dff767020718a5715eba97d3575ba7e1 (patch)
tree99d458f9d2ca74e67dbb4bccd148ef549f7ce2cf /test/eslint-config.test.js
parenta21948daf6210f67955ae4f98a81e21b8cf9f1f2 (diff)
Turn on @typescript-eslint/no-unsafe-argument (#728)24.2.26.0
Diffstat (limited to 'test/eslint-config.test.js')
-rw-r--r--test/eslint-config.test.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/eslint-config.test.js b/test/eslint-config.test.js
index bddde695..47e347dd 100644
--- a/test/eslint-config.test.js
+++ b/test/eslint-config.test.js
@@ -55,8 +55,8 @@ function removeLibraryDependencies(dependencies) {
}
/**
- * @param {{[key: string]: boolean}|undefined} env1
- * @param {{[key: string]: boolean}} env2
+ * @param {import('test/eslint-config').MinimalEslintConfigEnv|undefined} env1
+ * @param {import('test/eslint-config').MinimalEslintConfigEnv} env2
* @returns {boolean}
*/
function envMatches(env1, env2) {
@@ -92,7 +92,7 @@ const targets = [
paths: [
'ext/js/templates/sandbox/template-renderer-frame-main.js'
],
- /** @type {{[key: string]: boolean}} */
+ /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */
env: {
webextensions: false
}
@@ -102,7 +102,7 @@ const targets = [
paths: [
'ext/js/dictionary/dictionary-worker-main.js'
],
- /** @type {{[key: string]: boolean}} */
+ /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */
env: {
browser: false,
worker: true
@@ -113,7 +113,7 @@ const targets = [
paths: [
'ext/js/background/background-main.js'
],
- /** @type {{[key: string]: boolean}} */
+ /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */
env: {
browser: false,
serviceworker: true
@@ -123,7 +123,7 @@ const targets = [
describe('Eslint configuration', () => {
const eslintConfigPath = '.eslintrc.json';
- /** @type {import('core').SafeAny} */
+ /** @type {import('test/eslint-config').MinimalEslintConfig} */
const eslintConfig = parseJson(readFileSync(join(rootDir, eslintConfigPath), 'utf8'));
describe.each(targets)('Environment is $name', ({name, paths, env}) => {
test('Entry exists', async ({expect}) => {