Skip to content

Commit

Permalink
Fix recommended rule (BuilderIO#981)
Browse files Browse the repository at this point in the history
* fix rule

* publish
  • Loading branch information
samijaber authored Jan 13, 2023
1 parent df6d58f commit a9b1344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Empty file added .yarn/versions/c4fd8fbc.yml
Empty file.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/eslint-plugin-mitosis",
"version": "0.0.13",
"version": "0.0.14",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const PLUGIN_NAME = '@builder.io/mitosis' as const;

type RulesKeys = `${typeof PLUGIN_NAME}/${keyof typeof rules}`;

const recommendedRules: Record<RulesKeys, string> = {
const recommendedRules: Record<RulesKeys, 'error' | 'warn' | 'off' | 0 | 1 | 2> = {
'@builder.io/mitosis/css-no-vars': 'error',
'@builder.io/mitosis/jsx-callback-arg-name': 'error',
'@builder.io/mitosis/jsx-callback-arrow-function': 'error',
Expand All @@ -20,7 +20,7 @@ const recommendedRules: Record<RulesKeys, string> = {
'@builder.io/mitosis/use-state-var-declarator': 'error',
'@builder.io/mitosis/static-control-flow': 'error',
'@builder.io/mitosis/no-var-name-same-as-prop-name': 'error',
'@builder.io/mitosis/no-map-function-in-jsx-return-body': 'warning',
'@builder.io/mitosis/no-map-function-in-jsx-return-body': 'warn',
};

export default {
Expand Down

0 comments on commit a9b1344

Please sign in to comment.