eslint-plugin-i18next
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -5,2 +5,4 @@ # Changelog | ||
### 6.0.3 (2023-06-13) | ||
### 6.0.2 (2023-06-06) | ||
@@ -7,0 +9,0 @@ |
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1435
67293
40