eslint-plugin-kolibri
Advanced tools
Comparing version 0.13.0-dev.5 to 0.13.0-dev.6
@@ -8,2 +8,3 @@ 'use strict'; | ||
const GROUP_WATCH = 'watch'; | ||
const GROUP_$TRS = '$trs'; | ||
@@ -27,2 +28,3 @@ const PROPERTY_LABEL = { | ||
GROUP_METHODS, | ||
GROUP_$TRS, | ||
GROUP_WATCH, | ||
@@ -29,0 +31,0 @@ PROPERTY_LABEL, |
@@ -45,3 +45,3 @@ 'use strict'; | ||
* Get an array of watchers names. | ||
* @param {Object} obj Vue objec | ||
* @param {Object} obj Vue object | ||
*/ | ||
@@ -215,2 +215,16 @@ getWatchersNames(obj) { | ||
}, | ||
/** | ||
* Report unused translation definitions. | ||
*/ | ||
reportUnusedTranslations(context, definitions, uses) { | ||
const unused = definitions.filter(prop => !uses.includes(prop.name)); | ||
unused.forEach(prop => { | ||
context.report({ | ||
node: prop.node, | ||
message: `Unused translation defined for ${prop.node.name}`, | ||
}); | ||
}); | ||
}, | ||
}; |
{ | ||
"name": "eslint-plugin-kolibri", | ||
"version": "0.13.0-dev.5", | ||
"version": "0.13.0-dev.6", | ||
"description": "Custom rules.", | ||
@@ -5,0 +5,0 @@ "author": "Learning Equality", |
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
83402
18
3540