Skip to content

@dovenv/eslint-config - API documentation โ€‹

Functions โ€‹

includeGitIgnore() โ€‹

ts
function includeGitIgnore(gitIgnorePath?: string): Config

Include the contents of a .gitignore file in ESLint's ignore configuration.

Parameters โ€‹

ParameterTypeDescription
gitIgnorePath?stringThe path to the .gitignore file. If not provided, the .gitignore file in the current working directory will be used.

Returns โ€‹

Config

An object that ESLint can use to ignore files.


setIgnoreConfig() โ€‹

ts
function setIgnoreConfig(paths: string[]): Config

Set paths to ignore in ESLint.

Parameters โ€‹

ParameterTypeDescription
pathsstring[]An array of paths to ignore.

Returns โ€‹

Config

  • An object with a single property, ignores, that is an array of paths to ignore.

Example โ€‹

ts
const config = setIgnoreConfig( [
	'./static/*',
	'./public/*',
])

setTsConfig() โ€‹

ts
function setTsConfig(tsconfigRootDir: string): Config

Parameters โ€‹

ParameterType
tsconfigRootDirstring

Returns โ€‹

Config

References โ€‹

default โ€‹

Renames and re-exports config

Variables โ€‹

config โ€‹

ts
const config: Config[];

cssConfig โ€‹

ts
const cssConfig: Config[];

YAML Eslint config

See โ€‹

https://github.com/aminya/eslint-plugin-yaml#readme


generalConfig โ€‹

ts
const generalConfig: Config[];

htmlConfig โ€‹

ts
const htmlConfig: Config[];

HTML Eslint config

See โ€‹

https://www.npmjs.com/package/eslint-plugin-html


jsConfig โ€‹

ts
const jsConfig: Config[];

jsonConfig โ€‹

ts
const jsonConfig: Config[];

mdConfig โ€‹

ts
const mdConfig: Config[];

MARKDOWN eslint config

See โ€‹

https://gitlab.com/pawelbbdrozd/eslint-plugin-markdownlint


schemaConfig โ€‹

ts
const schemaConfig: Config[];

tomlConfig โ€‹

ts
const tomlConfig: Config[];

tsConfig โ€‹

ts
const tsConfig: Config[];

vueConfig โ€‹

ts
const vueConfig: Config[];

yamlConfig โ€‹

ts
const yamlConfig: Config[];