Skip to content

Commit

Permalink
feat: add galaxy/vue-ref-style
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed May 10, 2024
1 parent 7970f59 commit ee23640
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flat/galaxy/vue/reactivity-transform.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default [
'galaxy/valid-vue-reactivity-transform-props': 'warn',
// 将 Reactivity Transform 的副作用变量标记为已使用
'galaxy/vue-reactivity-transform-uses-vars': 'error',
// 禁止混用 Ref 定义和 Reactivity Transform
'galaxy/vue-ref-style': 'error',
},
},
]
2 changes: 2 additions & 0 deletions galaxy/vue/reactivity-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ module.exports = {
'galaxy/valid-vue-reactivity-transform-props': 'warn',
// 将 Reactivity Transform 的副作用变量标记为已使用
'galaxy/vue-reactivity-transform-uses-vars': 'error',
// 禁止混用 Ref 定义和 Reactivity Transform
'galaxy/vue-ref-style': 'error',
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint": ">=8.50.0",
"eslint-import-resolver-alias": ">=1.1.2",
"eslint-import-resolver-typescript": ">=3.5.4",
"eslint-plugin-galaxy": ">=1.20.0",
"eslint-plugin-galaxy": ">=1.33.0",
"eslint-plugin-import": ">=2.27.0",
"eslint-plugin-react": ">=7.29.0",
"eslint-plugin-react-hooks": ">=3.0.0",
Expand Down

0 comments on commit ee23640

Please sign in to comment.