@bigbinary/eslint-plugin-neeto 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -525,6 +525,7 @@
|
|
|
525
525
|
var DIFFERENT_PROPS_MUST_BE_OUTSIDE = "Props with different key and value should be outside the spread attribute";
|
|
526
526
|
var PROP_KEY_VALUE_DUPLICATE = "Prop key and value names should not be repeated";
|
|
527
527
|
var USE_WITH_IMMUTABLE_ACTIONS_WRAPPER = 'Use "withImmutableActions" wrapper from "neeto-commons-frontend" inside zustand create. Refer: https://bit.ly/withimmutableactions';
|
|
528
|
+
var USE_WITH_T_HOC_IN_DUMB_COMPONENTS = 'Use "withT" HOC from "neeto-commons-frontend" instead of useTranslation hook in Dumb components';
|
|
528
529
|
|
|
529
530
|
var PACKAGES_TO_CHECK = ["@bigbinary/neeto-molecules", "@bigbinary/neetoui", "@bigbinary/neeto-commons-frontend"];
|
|
530
531
|
|
|
@@ -5957,7 +5958,7 @@
|
|
|
5957
5958
|
if (hasHooksOtherThanTranslationHook) return;
|
|
5958
5959
|
context.report({
|
|
5959
5960
|
node: node,
|
|
5960
|
-
message:
|
|
5961
|
+
message: USE_WITH_T_HOC_IN_DUMB_COMPONENTS,
|
|
5961
5962
|
fix: function fix(fixer) {
|
|
5962
5963
|
var fixers = [];
|
|
5963
5964
|
var _arrowFunctionExpress = _toArray(arrowFunctionExpression.params),
|