UNPKG

@nx/eslint

Version:

The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.

30 lines (29 loc) 1.11 kB
import { Linter } from 'eslint'; /** * This configuration is intended to apply to all TypeScript source files. * See the eslint-plugin package for what is in the referenced shareable config. */ export declare const typeScriptOverride: { files: string[]; extends: string[]; /** * Having an empty rules object present makes it more obvious to the user where they would * extend things from if they needed to */ rules: {}; }; /** * This configuration is intended to apply to all JavaScript source files. * See the eslint-plugin package for what is in the referenced shareable config. */ export declare const javaScriptOverride: { files: string[]; extends: string[]; /** * Having an empty rules object present makes it more obvious to the user where they would * extend things from if they needed to */ rules: {}; }; export declare const getGlobalEsLintConfiguration: (unitTestRunner?: string, rootProject?: boolean) => Linter.Config; export declare const getGlobalFlatEslintConfiguration: (format: "cjs" | "mjs", rootProject?: boolean) => string;