ViewLint Logo

ViewLint

Configure ViewLint

Configure Targets, Views, Scopes, and Rules

ViewLint is designed to be easily configurable and extensible to every use case. You can start with no rules, and build up to only the rules that you need. However, we also provide a built-in bundle of rules that makes it easy to get started with ViewLint and build up to your usecase.

ViewLint is primarily configured with a viewlint.config.ts file, which contains information about how you want to lint your websites. You can also specify a custom configuration file with the command line.

If you used the quick start, you already have a working config. This section explains how it works and how to customize it.

Here are some of the options you can configure in ViewLint. If you are unfamiliar with the terminology or the ViewLint mental model, read more in Core Concepts.

  • Rules: Pieces of Playwright code that ViewLint Engine runs to detect issues
  • Views: Perform authentication, or take general actions on your page before linting
  • Scope: Change what part of the page you lint
  • Plugins: Third-party plugisn to define rules, languages, and configurations for ViewLint

Table of Contents

On this page