Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-i18next

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-i18next - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### 6.0.3 (2023-06-13)
### 6.0.2 (2023-06-06)

@@ -7,0 +9,0 @@

2

lib/helper/index.js

@@ -15,3 +15,3 @@ const { DOM_TAGS, SVG_TAGS } = require('../constants');

const blacklistAttrs = ['placeholder', 'alt', 'aria-label', 'value'];
const blacklistAttrs = ['placeholder', 'alt', 'aria-label', 'value', 'title'];
function isAllowedDOMAttr(tag, attr) {

@@ -18,0 +18,0 @@ if (isSvgTag(tag)) return true;

{
"name": "eslint-plugin-i18next",
"version": "6.0.2",
"version": "6.0.3",
"description": "ESLint plugin for i18n",

@@ -5,0 +5,0 @@ "keywords": [

@@ -30,2 +30,3 @@ i18nextXt('taa');

<button aria-label="Close" type="button" />
<div title="pink flower">🌸</div>
</>

@@ -7,3 +7,3 @@ const testFile = require('../../helpers/testFile');

invalid: [
{ ...testFile('invalid.jsx'), errors: 14 },
{ ...testFile('invalid.jsx'), errors: 15 },
{

@@ -10,0 +10,0 @@ code: `export const validationSchema = Yup.object({

@@ -15,5 +15,5 @@ const testFile = require('../../helpers/testFile');

],
invalid: [{ ...testFile('invalid.jsx'), errors: 14 }],
invalid: [{ ...testFile('invalid.jsx'), errors: 15 }],
};
runTest('no-literal-string: callees', cases);

@@ -6,5 +6,5 @@ const testFile = require('../../helpers/testFile');

valid: [{ code: 'const a = "absfoo";<DIV abc="bcd" />' }],
invalid: [{ ...testFile('invalid.jsx'), errors: 14 }],
invalid: [{ ...testFile('invalid.jsx'), errors: 15 }],
};
runTest('no-literal-string: default', cases);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc