Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

core/src

@santi020k/eslint-config-basic

Defined in: core/src/types.ts:88

Enum for specialized ESLint extensions and strict rule sets

BestPractices: "best-practices"

Defined in: core/src/types.ts:99

Built-in best-practice rules: no-console, no-alert, cyclomatic complexity, max nesting depth. No extra dependencies required.

Perfectionist: "perfectionist"

Defined in: core/src/types.ts:93

Regexp: "regexp"

Defined in: core/src/types.ts:89

Security: "security"

Defined in: core/src/types.ts:92

Sonarjs: "sonarjs"

Defined in: core/src/types.ts:91

Unicorn: "unicorn"

Defined in: core/src/types.ts:90

Defined in: core/src/types.ts:66

Enum for linting non-JS/TS file formats

Graphql: "graphql"

Defined in: core/src/types.ts:72

Jsonc: "jsonc"

Defined in: core/src/types.ts:69

Markdown: "markdown"

Defined in: core/src/types.ts:68

Mdx: "mdx"

Defined in: core/src/types.ts:67

Toml: "toml"

Defined in: core/src/types.ts:71

Yaml: "yaml"

Defined in: core/src/types.ts:70


Defined in: core/src/types.ts:43

Enum for application-level runtime dependencies and styling

I18next: "i18next"

Defined in: core/src/types.ts:45

Stencil: "stencil"

Defined in: core/src/types.ts:46

Storybook: "storybook"

Defined in: core/src/types.ts:49

Tailwind: "tailwind"

Defined in: core/src/types.ts:44

TanstackQuery: "tanstack-query"

Defined in: core/src/types.ts:47

TanstackRouter: "tanstack-router"

Defined in: core/src/types.ts:48


Defined in: core/src/types.ts:35

Enum for Next.js mode options

AppRouter: "app-router"

Defined in: core/src/types.ts:37

Pages: "pages"

Defined in: core/src/types.ts:36


Defined in: core/src/types.ts:128

Enum for named presets

All: "all"

Defined in: core/src/types.ts:134

All configs + all optionals

Basic: "basic"

Defined in: core/src/types.ts:131

Core JS config only

Browser: "browser"

Defined in: core/src/types.ts:140

Core + TS + Browser runtime

Node: "node"

Defined in: core/src/types.ts:137

Core + TS + Node runtime


Defined in: core/src/types.ts:113

Enum for runtime environment presets

Browser: "browser"

Defined in: core/src/types.ts:119

Only Browser globals (window, document, etc.)

Node: "node"

Defined in: core/src/types.ts:116

Only Node.js globals (process, __dirname, etc.)

Universal: "universal"

Defined in: core/src/types.ts:122

Both Node.js and Browser globals (default)


Defined in: core/src/types.ts:105

Enum for settings options in ESLint

Gitignore: "gitignore"

Defined in: core/src/types.ts:106

NoGitignore: "no-gitignore"

Defined in: core/src/types.ts:107


Defined in: core/src/types.ts:55

Enum for testing frameworks and environments

Cypress: "cypress"

Defined in: core/src/types.ts:59

Jest: "jest"

Defined in: core/src/types.ts:58

Playwright: "playwright"

Defined in: core/src/types.ts:57

TestingLibrary: "testing-library"

Defined in: core/src/types.ts:60

Vitest: "vitest"

Defined in: core/src/types.ts:56


Defined in: core/src/types.ts:78

Enum for integrating external standalone utilities

Cspell: "cspell"

Defined in: core/src/types.ts:80

Jsdoc: "jsdoc"

Defined in: core/src/types.ts:81

Prettier: "prettier"

Defined in: core/src/types.ts:79

Swagger: "swagger"

Defined in: core/src/types.ts:82

Defined in: core/src/types.ts:192

ESLint configuration interface

optional detectedFrameworks?: DetectedFrameworkName[]

Defined in: core/src/types.ts:258

Frameworks detected from package.json by detectProjectOptions(). This is informational — use it to display what was auto-detected. To actually enable framework linting you still need to import the framework package and pass it via frameworks.<name>.

optional extensions?: Extension[]

Defined in: core/src/types.ts:216

List of specialized ESLint rules and extensions

optional formats?: Format[]

Defined in: core/src/types.ts:210

Additional non-JS/TS file formats to lint

optional frameworks?: object

Defined in: core/src/types.ts:238

Framework and library specific configurations. Each value must be the imported config from the corresponding @santi020k/eslint-config-<framework> package — boolean values are not accepted.

optional angular?: ImportedFramework

optional astro?: ImportedFramework

optional expo?: ImportedFramework

optional nest?: ImportedFramework

optional next?: ImportedFramework

optional qwik?: ImportedFramework

optional react?: ImportedFramework

optional remix?: ImportedFramework

optional solid?: ImportedFramework

optional svelte?: ImportedFramework

optional vue?: ImportedFramework

optional libraries?: Library[]

Defined in: core/src/types.ts:204

List of application-level dependencies configurations

optional nextMode?: NextMode

Defined in: core/src/types.ts:231

Next.js specific routing mode

optional preset?: Preset

Defined in: core/src/types.ts:228

High-level configuration preset

optional runtime?: Runtime

Defined in: core/src/types.ts:225

Runtime environment preset (Node, Browser, Universal)

optional settings?: Setting[]

Defined in: core/src/types.ts:219

List of global settings and behavioral flags

optional strict?: boolean

Defined in: core/src/types.ts:222

If true, all ‘warn’ rules are promoted to ‘error’

optional testing?: Testing[]

Defined in: core/src/types.ts:207

List of testing frameworks and testing environments

optional tools?: Tool[]

Defined in: core/src/types.ts:213

List of integrations for external standalone tools

optional tsconfigRootDir?: string

Defined in: core/src/types.ts:198

Root directory of the project. Required if multiple candidate TSConfigRootDirs are present.

optional typescript?: boolean | TsOptions

Defined in: core/src/types.ts:201

Enable TypeScript support with optional settings


Defined in: core/src/types.ts:185

TypeScript configuration options

optional project?: string | boolean | string[]

Defined in: core/src/types.ts:186

DetectedFrameworkName = "react" | "next" | "astro" | "expo" | "vue" | "svelte" | "solid" | "angular" | "nest" | "qwik" | "remix"

Defined in: core/src/types.ts:169

Framework names that can be auto-detected by detectProjectOptions. These are informational only — you still need to import and pass the actual framework config via frameworks.<name> in eslintConfig().


FlatConfigArray = TSESLint.FlatConfig.ConfigArray

Defined in: core/src/types.ts:264

Type alias for ESLint flat config array


ImportedFramework = FlatConfigArray | { default: FlatConfigArray | ((options?) => FlatConfigArray); } | ((options?) => FlatConfigArray)

Defined in: core/src/types.ts:159

Type to handle both direct config arrays and imported modules with a default export. User-facing framework options should always pass imported config arrays/modules explicitly — boolean values are not accepted and will throw a descriptive error.

const coreConfig: TSESLint.FlatConfig.ConfigArray

Defined in: core/src/index.ts:128

Core JavaScript ESLint configuration (Universal runtime by default) This is included by default in all configurations


const gitignore: TSESLint.FlatConfig.ConfigArray

Defined in: core/src/settings/gitignore.ts:13


const GLOB_ASTRO: string[]

Defined in: core/src/types.ts:13


const GLOB_JS: string[]

Defined in: core/src/types.ts:6

Global file patterns for JavaScript-compatible files


const GLOB_JS_TS: string[]

Defined in: core/src/types.ts:10


const GLOB_JS_TS_ALL: string[]

Defined in: core/src/types.ts:15


const GLOB_SLOT: string[]

Defined in: core/src/types.ts:14


const GLOB_SVELTE: string[]

Defined in: core/src/types.ts:12


const GLOB_TS: string[]

Defined in: core/src/types.ts:8


const GLOB_VIRTUAL_TS: string[]

Defined in: core/src/types.ts:17


const GLOB_VUE: string[]

Defined in: core/src/types.ts:11


const groups: string[][]

Defined in: core/src/rules.ts:3


const ReactConfigKeys: readonly ["react", "next", "expo", "remix"]

Defined in: core/src/types.ts:147

Array of configurations that require React Note: These are now used internally for auto-detection and globals


const rules: TSESLint.Linter.RulesRecord

Defined in: core/src/rules.ts:35

createCoreConfig(runtime?): ConfigArray

Defined in: core/src/index.ts:45

Creates the core config with the specified runtime globals

Runtime = Runtime.Universal

ConfigArray


detectProjectOptions(cwd?): EslintConfigOptions

Defined in: core/src/utils/detection.ts:16

Automatically detects project settings based on package.json content

string = ...

Current working directory (defaults to process.cwd())

EslintConfigOptions

Detected ESLint configuration options


getGlobalsForRuntime(runtime?): GlobalsConfig | undefined

Defined in: core/src/index.ts:23

Returns the appropriate globals for the given runtime option

Runtime = Runtime.Universal

GlobalsConfig | undefined


hasReactConfig(options?): boolean

Defined in: core/src/utils/index.ts:9

Checks if the provided EslintConfigOptions includes any React-specific configurations.

EslintConfigOptions

ESLint configuration options.

boolean

True if any React configuration is detected, false otherwise.

Renames and re-exports coreConfig

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.