Skip to content

LLM Resources

@dovenv/lint - Examples โ€‹

Eslint example โ€‹

Check โ€‹

bash
dovenv lint eslint

Fix โ€‹

bash
dovenv lint eslint --fix

Complete example โ€‹

This is a example that contains a lot of lint configuration

Dovenv configuration file โ€‹

ts
import { defineConfig } from '@dovenv/core'

import { lintPlugin } from '../src/main'

export default defineConfig( lintPlugin( {
	commitlint : { gitmoji: true },
	stylelint  : {
		configFile : 'stylelint.config.js',
		files      : '**/*.css',
	},
	staged  : { '**/*.{js,ts,jsx,tsx}': 'eslint' },
	publint : {
		this     : {},
		examples : { pkgDir: '../examples' },
	},
	custom : {
		test : async ( { run } ) => {

			await run.staged( { '**/*.{js,ts,jsx,tsx}': 'eslint' } )

		},
		test2 : async ( { run } ) => {

			await run.eslint( { flags: [ '--fix' ] } )

		},
	},
} ) )

Use in CLI โ€‹

bash
dovenv lint [cmd]