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

eslint-plugin-kolibri

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-kolibri - npm Package Compare versions

Comparing version 0.13.0-dev.5 to 0.13.0-dev.6

lib/rules/vue-no-unused-translations.js

2

lib/constants.js

@@ -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}`,
});
});
},
};

2

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

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