UNPKG

linted

Version:

ESLint mono-plugin bundler with strict, opinionated defaults for JavaScript, TypeScript, Svelte, HTML, CSS, JSON, JSONC, and YAML.

22 lines (18 loc) 521 B
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"], } satisfies TsParserOptions, }, };