linted
Version:
ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.
23 lines (18 loc) • 714 B
text/typescript
import type { ParserOptions } from "@typescript-eslint/types";
// DOC: https://typescript-eslint.io/packages/parser/#configuration
type TsParserOptions = ParserOptions & {
disallowAutomaticSingleRunInference?: boolean;
};
export default {
languageOptions: {
parser: "ts",
parserOptions: {
ecmaFeatures: {
globalReturn: true,
},
projectService: true,
warnOnUnsupportedTypeScriptVersion: false,
extraFileExtensions: [".svelte"] /* BUG: Needed to avoid performance issues in Svelte/TS projects: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
} satisfies TsParserOptions,
},
};