"prefer-const":"error",// Enforces the use of `const` for variables that are never reassigned
"no-undef":"off",// Disables the rule that disallows the use of undeclared variables (TypeScript handles this)
"no-extra-semi":["error"],// Disallows unnecessary semicolons for TypeScript-specific syntax
"import-x/extensions":["error","never",{json:"always"}],// Enforces no extension for imports unless json
},
},
{
name:"eslint-tests",
files:["test/**/**.test.ts"],
languageOptions:{
parser:parser,
parserOptions:{
project:["./tsconfig.json"],
},
},
plugins:{
"@typescript-eslint":tseslint,
},
rules:{
"@typescript-eslint/no-floating-promises":"error",// Require Promise-like statements to be handled appropriately. - https://typescript-eslint.io/rules/no-floating-promises/
"@typescript-eslint/no-misused-promises":"error",// Disallow Promises in places not designed to handle them. - https://typescript-eslint.io/rules/no-misused-promises/