New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-moka

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-moka - npm Package Compare versions

Comparing version

to
0.0.9

4

CHANGELOG.md

@@ -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 @@ }

2

package.json
{
"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 @@ },