Skip to content

DecampsRenan/formiz-eslint-plugin

Repository files navigation

@formiz/eslint-plugin

Setup

yarn add -D @formiz/eslint-plugin

Then, add @formiz in the plugins section of your .eslintrc file.

Available rules

  • @formiz/no-empty-use-form

Development

Test the rules locally

First, you will want to use yalc (because of issues with yarn link)

yarn global add yalc

Then, start the dev server:

yarn dev # Reload the project on each update and publish it to yalc

Now, go into the project you want to test your rules against:

yalc add -D @formiz/eslint-plugin

Don't forget to reinstall with yarn, npm or pnpm (or whatever package manager you are using) so the eslint plugin will be correctly installed

Now you can follow the Setup section of this readme in the repo you want to test the local rule.

About

Recommended set of rules when working with Formiz

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published