mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
drop type-aware ESLint to stop the lint OOM (#6602)
This commit is contained in:
@@ -143,7 +143,9 @@ export default defineConfig(
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Stricter rules that not all sub-folders are conformant to yet
|
// Stricter rules that not all sub-folders are conformant to yet.
|
||||||
|
// Keep this non-type-aware: `parserOptions.project`/`projectService` here OOMs
|
||||||
|
// the lint step (builds the whole TS program); tsc covers type correctness.
|
||||||
{
|
{
|
||||||
files: srcGlobs,
|
files: srcGlobs,
|
||||||
ignores: [
|
ignores: [
|
||||||
@@ -158,15 +160,8 @@ export default defineConfig(
|
|||||||
"editor/src/core/types/**/*.{js,mjs,jsx,ts,tsx}",
|
"editor/src/core/types/**/*.{js,mjs,jsx,ts,tsx}",
|
||||||
"editor/src/core/utils/**/*.{js,mjs,jsx,ts,tsx}",
|
"editor/src/core/utils/**/*.{js,mjs,jsx,ts,tsx}",
|
||||||
],
|
],
|
||||||
languageOptions: {
|
|
||||||
parserOptions: {
|
|
||||||
project: true,
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
"@typescript-eslint/no-explicit-any": "error",
|
"@typescript-eslint/no-explicit-any": "error",
|
||||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Config for browser scripts
|
// Config for browser scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user