/** * File extensions for JS- and TS-based files, provided to facilitate * programmatic construction of globs used in configs. */ export declare const extensions: { /** * File extensions (without leading .) for standard JS-based files supported by typescript-eslint. * * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx']` */ js: string[]; /** * File extensions (without leading .) for standard TS-based files supported by typescript-eslint. * * The value of this property is the array `['mts', 'ts', 'cts', 'tsx']` */ ts: string[]; /** * File extensions (without leading .) for both standard JS- and TS-based files supported by typescript-eslint. * * The value of this property is the array `['mjs', 'js', 'cjs', 'jsx', 'mts', 'ts', 'cts', 'tsx', ]` */ jsts: string[]; }; /** * Globs for JS- and TS-based files supported by typescript-eslint, in order to * simplify typical configurations. */ export declare const globs: { /** * Glob to match standard JS-based files supported by typescript-eslint. * * The value of this glob is the string "**/*.{mjs,js,cjs,jsx}" * * @example * ```ts * import { defineConfig } from 'eslint/config'; * import tseslint from 'typescript-eslint'; * * export default defineConfig( * // other configs... * { * name: 'disable-type-checked-rules-for-JavaScript', * files: [tseslint.globs.js], * extends: [ * tseslint.configs.disableTypeChecked, * ], * }, * ); * ``` */ js: string; /** * Glob to match standard TS-based files supported by typescript-eslint. * * The value of this glob is the string "**/*.{mts,ts,cts,tsx}" * * @example * ```ts * import { defineConfig } from 'eslint/config'; * import tseslint from 'typescript-eslint'; * * export default defineConfig( * // other configs... * { * name: 'config-for-TypeScript', * files: [tseslint.globs.ts], * extends: [ * tseslint.configs.recommended, * ] * }, * ); * ``` */ ts: string; /** * Glob to match both standard JS- and TS-based files supported by typescript-eslint. * * The value of this glob is the string "**/*.{mjs,js,cjs,jsx,mts,ts,cts,tsx}" * * @example * ```ts * import { defineConfig } from 'eslint/config'; * import tseslint from 'typescript-eslint'; * * export default defineConfig( * // other configs... * { * name: 'config-for-TypeScript/JavaScript', * files: [tseslint.globs.jsts], * extends: [ * tseslint.configs.recommended, * ], * }, * ); * ``` */ jsts: string; /** * Glob to match TypeScript declaration files (.d.ts, .d.css.ts, .d.other-file-type.ts). * * The value of this glob is the string "**/*.{d.ts,d.*ts}" * * @example * ```ts * import { defineConfig } from 'eslint/config'; * import tseslint from 'typescript-eslint'; * * export default defineConfig( * // other configs... * { * name: 'disable-rules-for-declaration-files', * files: [tseslint.globs.tsDeclaration], * rules: { * // Disable rules that are problematic in declaration files * 'no-var': 'off', * }, * }, * ); * ``` */ tsDeclaration: string; };