0.0.16 • Published 1 year ago
@builder.io/eslint-plugin-mitosis v0.0.16
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
- css-no-vars
- jsx-callback-arg-name
- jsx-callback-arrow-function
- no-assign-props-to-state
- no-async-methods-on-state
- no-conditional-logic-in-component-render
- no-state-destructuring
- no-var-declaration-in-jsx
- no-var-declaration-or-assignment-in-component
- no-var-name-same-as-state-property
- only-default-function-and-imports
- ref-no-current
- use-state-var-declarator
0.0.16
1 year ago
0.0.15
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.11-2
3 years ago
0.0.11-1
3 years ago
0.0.11-4
3 years ago
0.0.11-3
3 years ago
0.0.10
3 years ago
0.0.11-5
3 years ago
0.0.11-0
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.1
3 years ago
0.0.1-2
3 years ago
0.0.1-1
3 years ago
0.0.1-0
3 years ago