Skip to content

Configurations Reference

Following the ESLint conventions for sharing configurations, each of the configurations are named with a different prefix to indicate what kind of configuration it is.

Each configuration might consist of 1 or more sub configurations. Each of the tables below contains information about what rules have been configured for each sub configuration and for what files.

Some of the rules have URL links to documentation; you can click on the name of the rule to see the associated documentation page.

Dynamic Loading

This page is actually dynamically created based on the configuration objects exported by the Lint plugin alongside some clever Vue magic

This does mean that some of the configurations might have weird names as they are directly loaded from the recommended configurations provided from plugins.

js/recommended Configuration

SA Recommended Javascript Configuration > ExtendedConfig[0]

SA Recommended Javascript Configuration

Rules for cjs files

jsdoc/recommended Configuration

jsdoc/recommended

jsdoc/recommended

  • Applies to:
    • **/*.ts
    • **/*.tsx
  • Rules
    RuleSeverityOptions
    jsdoc/no-typeswarn

md/recommended Configuration

Markdown Files

style/recommended Configuration

style/recommended

ts/recommended Configuration

Global Typescript Rules__typescript-eslint/base

  • Applies to:
    • **/*.{ts,tsx}
  • Plugins Required:

    • @typescript-eslint/eslint-plugin
  • This configuration has no rules.

Global Typescript Rules__typescript-eslint/recommended

Global Typescript Rules

tsx/recommended Configuration

SA TSX Config > ExtendedConfig[1]

SA TSX Config

vitest/recommended Configuration

SA Recommended Vitest Config > vitest/recommended

  • Applies to:
    • **/__tests__/**/*.ts*
    • **/__mocks__/**/*.ts*
    • **/vitest.*.ts
  • Plugins Required:

    • vitest
  • Rules
    RuleSeverityOptions
    vitest/expect-expecterror
    vitest/no-commented-out-testserror
    vitest/no-conditional-expecterror
    vitest/no-disabled-testswarn
    vitest/no-focused-testserror
    vitest/no-identical-titleerror
    vitest/no-import-node-testerror
    vitest/no-interpolation-in-snapshotserror
    vitest/no-mocks-importerror
    vitest/no-standalone-expecterror
    vitest/no-unneeded-async-expect-functionerror
    vitest/prefer-called-exactly-once-witherror
    vitest/require-local-test-context-for-concurrent-snapshotserror
    vitest/valid-describe-callbackerror
    vitest/valid-expecterror
    vitest/valid-expect-in-promiseerror
    vitest/valid-titleerror

SA Recommended Vitest Config

  • Applies to:
    • **/__tests__/**/*.ts*
    • **/__mocks__/**/*.ts*
    • **/vitest.*.ts
  • Plugins Required:

    • vitest
  • Rules
    RuleSeverityOptions
    no-empty-patternoff
    @stylistic/quotesoff
    vitest/expect-expecterror
    [ { "assertFunctionNames": [ "expect*" ] } ]
    vitest/no-alias-methodsoff
    vitest/no-conditional-expectoff
    vitest/no-exportoff
    vitest/no-focused-testswarn
    [ { "fixable": false } ]
    vitest/require-top-level-describeoff
    vitest/prefer-hooks-on-topwarn
    vitest/valid-describe-callbackoff
    vitest/valid-expect-in-promiseerror
    import/extensionserror
    [ "never", { "config": "ignore" } ]