@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 โ
Parameter | Type | Description |
---|---|---|
gitIgnorePath ? | string | The 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 โ
Parameter | Type | Description |
---|---|---|
paths | string [] | 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 โ
Parameter | Type |
---|---|
tsconfigRootDir | string |
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[];