Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.78 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.78 KB

Mitosis ESLint plugin

A Mitosis plugin containing rules that help you write valid and idiomatic Mitosis code

Setup

First, make sure you have ESLint setup correctly. Then, install this plugin by running:

yarn add -D @builder.io/eslint-plugin-mitosis

Finally, add the plugin to the plugins array, and the rules you want to the rules array:

module.exports = {
  parserOptions: {
    ecmaFeatures: {
      jsx: true,
    },
  },
  plugins: ['@builder.io/mitosis'],
  extends: [
    // Use this approach for our recommended rules configuration
    'plugin:@builder.io/mitosis/recommended',
  ],
  rules: {
    // Use this to configure rules individually
    '@builder.io/mitosis/css-no-vars': 'error',
  },
};

Rules