eslint-plugin-moka
Advanced tools
Comparing version
@@ -5,2 +5,6 @@ Changelog | ||
## 0.0.9 | ||
- Fix bug of rule "lingui-mark", i18nMark literal.([#12](https://github.com/southerncross/eslint-plugin-moka/pull/12)) | ||
## 0.0.8 | ||
@@ -7,0 +11,0 @@ |
@@ -160,5 +160,11 @@ module.exports = { | ||
if (node.parent.type === 'CallExpression' && isLogMessage(node.parent.callee)) { | ||
// console.log(`${name}, 你好`) | ||
return true; | ||
} | ||
if (node.parent.type === 'CallExpression' && isI18nMethod(node.parent.callee, ['i18nMark'])) { | ||
// i18nMark(`${name}, 你好`) | ||
return true; | ||
} | ||
if (node.parent.type === 'TaggedTemplateExpression' && ( | ||
@@ -168,2 +174,3 @@ isI18nMethod(node.parent.tag, ['t']) || | ||
)) { | ||
// i18n.t`${name}, 你好` | ||
return true; | ||
@@ -170,0 +177,0 @@ } |
{ | ||
"name": "eslint-plugin-moka", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Eslint Plugin of Moka", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,2 +42,5 @@ 'use strict'; | ||
{ | ||
code: "i18nMark(`${name},你好`)", | ||
}, | ||
{ | ||
code: "i18n.plural({ value: count, other: '等#人' })", | ||
@@ -44,0 +47,0 @@ }, |
24290
1.87%712
1.28%