diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5fa3e9e2..e95064bd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,5 @@ -module.exports = { +/** @type {import("eslint").Linter.Config} */ +const config = { root: true, parser: "@typescript-eslint/parser", extends: [ @@ -8,7 +9,6 @@ module.exports = { "prettier" ], plugins: ["@typescript-eslint"], - ignorePatterns: ["*.cjs"], overrides: [ { files: ["*.svelte"], @@ -29,3 +29,5 @@ module.exports = { node: true } }; + +module.exports = config; diff --git a/package.json b/package.json index 85981e30..78fbb15c 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@sveltejs/adapter-static": "^2.0.3", "@sveltejs/kit": "^1.27.0", "@total-typescript/ts-reset": "^0.5.1", + "@types/eslint": "^8.44.6", "@types/node": "^20.8.8", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 553d83c7..ea33d4cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ devDependencies: '@total-typescript/ts-reset': specifier: ^0.5.1 version: 0.5.1 + '@types/eslint': + specifier: ^8.44.6 + version: 8.44.6 '@types/node': specifier: ^20.8.8 version: 20.8.8 @@ -787,6 +790,13 @@ packages: resolution: {integrity: sha512-SLg07AS9z1Ab2LU+QxzU8RCmzsja80ywjf/t5oqw+4NSH20gIGlhLOrBDm1L3PBWzPa4+wkgFQVZAjE6Ioj2ug==} dev: true + /@types/eslint@8.44.6: + resolution: {integrity: sha512-P6bY56TVmX8y9J87jHNgQh43h6VVU+6H7oN7hgvivV81K2XY8qJZ5vqPy/HdUoVIelii2kChYVzQanlswPWVFw==} + dependencies: + '@types/estree': 1.0.3 + '@types/json-schema': 7.0.14 + dev: true + /@types/estree@1.0.3: resolution: {integrity: sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==} dev: true