core/src
@santi020k/eslint-config-basic
Enumerations
Section titled “Enumerations”Extension
Section titled “Extension”Defined in: core/src/types.ts:88
Enum for specialized ESLint extensions and strict rule sets
Enumeration Members
Section titled “Enumeration Members”BestPractices
Section titled “BestPractices”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
Section titled “Perfectionist”Perfectionist:
"perfectionist"
Defined in: core/src/types.ts:93
Regexp
Section titled “Regexp”Regexp:
"regexp"
Defined in: core/src/types.ts:89
Security
Section titled “Security”Security:
"security"
Defined in: core/src/types.ts:92
Sonarjs
Section titled “Sonarjs”Sonarjs:
"sonarjs"
Defined in: core/src/types.ts:91
Unicorn
Section titled “Unicorn”Unicorn:
"unicorn"
Defined in: core/src/types.ts:90
Format
Section titled “Format”Defined in: core/src/types.ts:66
Enum for linting non-JS/TS file formats
Enumeration Members
Section titled “Enumeration Members”Graphql
Section titled “Graphql”Graphql:
"graphql"
Defined in: core/src/types.ts:72
Jsonc:
"jsonc"
Defined in: core/src/types.ts:69
Markdown
Section titled “Markdown”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
Library
Section titled “Library”Defined in: core/src/types.ts:43
Enum for application-level runtime dependencies and styling
Enumeration Members
Section titled “Enumeration Members”I18next
Section titled “I18next”I18next:
"i18next"
Defined in: core/src/types.ts:45
Stencil
Section titled “Stencil”Stencil:
"stencil"
Defined in: core/src/types.ts:46
Storybook
Section titled “Storybook”Storybook:
"storybook"
Defined in: core/src/types.ts:49
Tailwind
Section titled “Tailwind”Tailwind:
"tailwind"
Defined in: core/src/types.ts:44
TanstackQuery
Section titled “TanstackQuery”TanstackQuery:
"tanstack-query"
Defined in: core/src/types.ts:47
TanstackRouter
Section titled “TanstackRouter”TanstackRouter:
"tanstack-router"
Defined in: core/src/types.ts:48
NextMode
Section titled “NextMode”Defined in: core/src/types.ts:35
Enum for Next.js mode options
Enumeration Members
Section titled “Enumeration Members”AppRouter
Section titled “AppRouter”AppRouter:
"app-router"
Defined in: core/src/types.ts:37
Pages:
"pages"
Defined in: core/src/types.ts:36
Preset
Section titled “Preset”Defined in: core/src/types.ts:128
Enum for named presets
Enumeration Members
Section titled “Enumeration Members”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
Section titled “Browser”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
Runtime
Section titled “Runtime”Defined in: core/src/types.ts:113
Enum for runtime environment presets
Enumeration Members
Section titled “Enumeration Members”Browser
Section titled “Browser”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
Section titled “Universal”Universal:
"universal"
Defined in: core/src/types.ts:122
Both Node.js and Browser globals (default)
Setting
Section titled “Setting”Defined in: core/src/types.ts:105
Enum for settings options in ESLint
Enumeration Members
Section titled “Enumeration Members”Gitignore
Section titled “Gitignore”Gitignore:
"gitignore"
Defined in: core/src/types.ts:106
NoGitignore
Section titled “NoGitignore”NoGitignore:
"no-gitignore"
Defined in: core/src/types.ts:107
Testing
Section titled “Testing”Defined in: core/src/types.ts:55
Enum for testing frameworks and environments
Enumeration Members
Section titled “Enumeration Members”Cypress
Section titled “Cypress”Cypress:
"cypress"
Defined in: core/src/types.ts:59
Jest:
"jest"
Defined in: core/src/types.ts:58
Playwright
Section titled “Playwright”Playwright:
"playwright"
Defined in: core/src/types.ts:57
TestingLibrary
Section titled “TestingLibrary”TestingLibrary:
"testing-library"
Defined in: core/src/types.ts:60
Vitest
Section titled “Vitest”Vitest:
"vitest"
Defined in: core/src/types.ts:56
Defined in: core/src/types.ts:78
Enum for integrating external standalone utilities
Enumeration Members
Section titled “Enumeration Members”Cspell
Section titled “Cspell”Cspell:
"cspell"
Defined in: core/src/types.ts:80
Jsdoc:
"jsdoc"
Defined in: core/src/types.ts:81
Prettier
Section titled “Prettier”Prettier:
"prettier"
Defined in: core/src/types.ts:79
Swagger
Section titled “Swagger”Swagger:
"swagger"
Defined in: core/src/types.ts:82
Interfaces
Section titled “Interfaces”EslintConfigOptions
Section titled “EslintConfigOptions”Defined in: core/src/types.ts:192
ESLint configuration interface
Properties
Section titled “Properties”detectedFrameworks?
Section titled “detectedFrameworks?”
optionaldetectedFrameworks?: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>.
extensions?
Section titled “extensions?”
optionalextensions?:Extension[]
Defined in: core/src/types.ts:216
List of specialized ESLint rules and extensions
formats?
Section titled “formats?”
optionalformats?:Format[]
Defined in: core/src/types.ts:210
Additional non-JS/TS file formats to lint
frameworks?
Section titled “frameworks?”
optionalframeworks?: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.
angular?
Section titled “angular?”
optionalangular?:ImportedFramework
astro?
Section titled “astro?”
optionalastro?:ImportedFramework
optionalexpo?:ImportedFramework
optionalnest?:ImportedFramework
optionalnext?:ImportedFramework
optionalqwik?:ImportedFramework
react?
Section titled “react?”
optionalreact?:ImportedFramework
remix?
Section titled “remix?”
optionalremix?:ImportedFramework
solid?
Section titled “solid?”
optionalsolid?:ImportedFramework
svelte?
Section titled “svelte?”
optionalsvelte?:ImportedFramework
optionalvue?:ImportedFramework
libraries?
Section titled “libraries?”
optionallibraries?:Library[]
Defined in: core/src/types.ts:204
List of application-level dependencies configurations
nextMode?
Section titled “nextMode?”
optionalnextMode?:NextMode
Defined in: core/src/types.ts:231
Next.js specific routing mode
preset?
Section titled “preset?”
optionalpreset?:Preset
Defined in: core/src/types.ts:228
High-level configuration preset
runtime?
Section titled “runtime?”
optionalruntime?:Runtime
Defined in: core/src/types.ts:225
Runtime environment preset (Node, Browser, Universal)
settings?
Section titled “settings?”
optionalsettings?:Setting[]
Defined in: core/src/types.ts:219
List of global settings and behavioral flags
strict?
Section titled “strict?”
optionalstrict?:boolean
Defined in: core/src/types.ts:222
If true, all ‘warn’ rules are promoted to ‘error’
testing?
Section titled “testing?”
optionaltesting?:Testing[]
Defined in: core/src/types.ts:207
List of testing frameworks and testing environments
tools?
Section titled “tools?”
optionaltools?:Tool[]
Defined in: core/src/types.ts:213
List of integrations for external standalone tools
tsconfigRootDir?
Section titled “tsconfigRootDir?”
optionaltsconfigRootDir?:string
Defined in: core/src/types.ts:198
Root directory of the project. Required if multiple candidate TSConfigRootDirs are present.
typescript?
Section titled “typescript?”
optionaltypescript?:boolean|TsOptions
Defined in: core/src/types.ts:201
Enable TypeScript support with optional settings
TsOptions
Section titled “TsOptions”Defined in: core/src/types.ts:185
TypeScript configuration options
Properties
Section titled “Properties”project?
Section titled “project?”
optionalproject?:string|boolean|string[]
Defined in: core/src/types.ts:186
Type Aliases
Section titled “Type Aliases”DetectedFrameworkName
Section titled “DetectedFrameworkName”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
Section titled “FlatConfigArray”FlatConfigArray =
TSESLint.FlatConfig.ConfigArray
Defined in: core/src/types.ts:264
Type alias for ESLint flat config array
ImportedFramework
Section titled “ImportedFramework”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.
Variables
Section titled “Variables”coreConfig
Section titled “coreConfig”
constcoreConfig: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
gitignore
Section titled “gitignore”
constgitignore:TSESLint.FlatConfig.ConfigArray
Defined in: core/src/settings/gitignore.ts:13
GLOB_ASTRO
Section titled “GLOB_ASTRO”
constGLOB_ASTRO:string[]
Defined in: core/src/types.ts:13
GLOB_JS
Section titled “GLOB_JS”
constGLOB_JS:string[]
Defined in: core/src/types.ts:6
Global file patterns for JavaScript-compatible files
GLOB_JS_TS
Section titled “GLOB_JS_TS”
constGLOB_JS_TS:string[]
Defined in: core/src/types.ts:10
GLOB_JS_TS_ALL
Section titled “GLOB_JS_TS_ALL”
constGLOB_JS_TS_ALL:string[]
Defined in: core/src/types.ts:15
GLOB_SLOT
Section titled “GLOB_SLOT”
constGLOB_SLOT:string[]
Defined in: core/src/types.ts:14
GLOB_SVELTE
Section titled “GLOB_SVELTE”
constGLOB_SVELTE:string[]
Defined in: core/src/types.ts:12
GLOB_TS
Section titled “GLOB_TS”
constGLOB_TS:string[]
Defined in: core/src/types.ts:8
GLOB_VIRTUAL_TS
Section titled “GLOB_VIRTUAL_TS”
constGLOB_VIRTUAL_TS:string[]
Defined in: core/src/types.ts:17
GLOB_VUE
Section titled “GLOB_VUE”
constGLOB_VUE:string[]
Defined in: core/src/types.ts:11
groups
Section titled “groups”
constgroups:string[][]
Defined in: core/src/rules.ts:3
ReactConfigKeys
Section titled “ReactConfigKeys”
constReactConfigKeys: 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
construles:TSESLint.Linter.RulesRecord
Defined in: core/src/rules.ts:35
Functions
Section titled “Functions”createCoreConfig()
Section titled “createCoreConfig()”createCoreConfig(
runtime?):ConfigArray
Defined in: core/src/index.ts:45
Creates the core config with the specified runtime globals
Parameters
Section titled “Parameters”runtime?
Section titled “runtime?”Runtime = Runtime.Universal
Returns
Section titled “Returns”ConfigArray
detectProjectOptions()
Section titled “detectProjectOptions()”detectProjectOptions(
cwd?):EslintConfigOptions
Defined in: core/src/utils/detection.ts:16
Automatically detects project settings based on package.json content
Parameters
Section titled “Parameters”string = ...
Current working directory (defaults to process.cwd())
Returns
Section titled “Returns”Detected ESLint configuration options
getGlobalsForRuntime()
Section titled “getGlobalsForRuntime()”getGlobalsForRuntime(
runtime?):GlobalsConfig|undefined
Defined in: core/src/index.ts:23
Returns the appropriate globals for the given runtime option
Parameters
Section titled “Parameters”runtime?
Section titled “runtime?”Runtime = Runtime.Universal
Returns
Section titled “Returns”GlobalsConfig | undefined
hasReactConfig()
Section titled “hasReactConfig()”hasReactConfig(
options?):boolean
Defined in: core/src/utils/index.ts:9
Checks if the provided EslintConfigOptions includes any React-specific configurations.
Parameters
Section titled “Parameters”options?
Section titled “options?”ESLint configuration options.
Returns
Section titled “Returns”boolean
True if any React configuration is detected, false otherwise.
References
Section titled “References”jsConfig
Section titled “jsConfig”Renames and re-exports coreConfig
Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.