@bigbinary/eslint-plugin-neeto 1.6.3 → 1.6.4

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -247,7 +247,7 @@
247
247
  const NO_ROUTES_ASSIGNMENT = "`routes` or its nested properties should not be assigned to other variables.";
248
248
  const NO_ROUTES_REASSIGNMENT = "`routes` or its nested properties should not be re-assigned.";
249
249
  const NO_NAMESPACE_SPECIFIER_IMPORT_FOR_RAMDA_MESSAGE = 'Use `import { methodsToImport } from "ramda"` instead';
250
- const PREFER_EAGER_VALIDATION_MESSAGE = "Prefer to use Formik defaults for `validateOnBlur` and `validateOnChange` to ensure eager validation. Refer https://courses.bigbinaryacademy.com/learn-react/#validation-in-formik";
250
+ const PREFER_EAGER_VALIDATION_MESSAGE = "Prefer to use Formik defaults for `validateOnBlur` and `validateOnChange` to ensure eager validation. Refer https://courses.bigbinaryacademy.com/learn-react/formik-forms/formik-best-practices";
251
251
  const PREFIX_NEETO_UI_IMPORT_ALIAS_MESSAGE = "Aliases for anything imported from neetoUI or neetoIcons should start with `NeetoUI`";
252
252
  const REPLACE_WITH_HANDLE_META_CLICK = "Replace with handleMetaClick function";
253
253
  const ROUTE_SHOULD_BE_A_STRING = "Route should be a plain string literal.";
@@ -256,7 +256,7 @@
256
256
  const ROUTES_CONSTANT_SHOULD_BE_DECLARED = "A constant object named `routes` should be declared inside routes.js";
257
257
  const ROUTES_SHOULD_USE_DEFAULT_EXPORT = "`routes` should be exported using the default export method.";
258
258
  const UNNECESSARY_CREATE_CONSUMER = "`createSubscription` function from `neetocommon/utils` invalidates the need of `createConsumer`";
259
- const USE_ARRAY_METHODS = "Use array methods (forEach, map, filter, reduce, etc) instead of 'for' loop. Refer 'Advanced Array Methods' section in https://courses.bigbinaryacademy.com/learn-javascript/array-methods-3/indexof-and-lastindexof/";
259
+ const USE_ARRAY_METHODS = "Use array methods (forEach, map, filter, reduce, etc) instead of 'for' loop. Refer 'Advanced Array Methods' section in https://courses.bigbinaryacademy.com/learn-javascript/array-methods-2";
260
260
  const USE_AXIOS_CONFIG_FOR_PASSING_QUERY_PARAMETERS_MESSAGE = "Use 'params attribute in axios configuration' to pass query parameters.";
261
261
  const USE_CREATE_SUBSCRIPTION_FROM_NEETO_COMMONS = "Use `createSubscription` from @bigbinary/neeto-commons-frontend/utils instead. Refer: https://github.com/bigbinary/neeto-commons-frontend/blob/main/docs/utils/createSubscription.md";
262
262
  const USE_INLINE_SVG_FOR_RENDER = "Use inline SVG instead of img tag for rendering SVGs";
@@ -281,13 +281,13 @@
281
281
  const USE_REACT_QUERY_FOR_MANAGING_REMOTE_DATA = "API calls should be managed using React Query";
282
282
  const FILES_INSIDE_REACT_QUERY_FOLDER_SHOULD_END_WITH_API = "Files inside reactQuery folder should end with Api";
283
283
  const USE_ZUSTAND_FOR_GLOBAL_STATE_MANAGEMENT = "Use zustand for global state management";
284
- const AVOID_T_FUNCTIONS_IN_STRING_INTERPOLATION = "Translation function should not be used in string interpolation. Instead use a single translation key for the entire string. Refer: https://courses.bigbinaryacademy.com/learn-react/#localization-best-practices";
285
- const AVOID_MULTIPLE_T_FUNCTIONS_UNDER_SAME_PARENT = "Avoid using multiple translation functions under the same JSX parent. Instead use a single translation function with a single key. Refer: https://courses.bigbinaryacademy.com/learn-react/#localization-best-practices";
286
- const USE_TRANS_COMPONENTS_AND_VALUES_PROPS = "Instead of using numbered tags in translation string use `components` and `values` props of `Trans` to use named tag in translation string. Refer: https://courses.bigbinaryacademy.com/learn-react/#localization-best-practices";
284
+ const AVOID_T_FUNCTIONS_IN_STRING_INTERPOLATION = "Translation function should not be used in string interpolation. Instead use a single translation key for the entire string. Refer: https://courses.bigbinaryacademy.com/learn-react/locale-translations/adding-localization-to-smile-cart";
285
+ const AVOID_MULTIPLE_T_FUNCTIONS_UNDER_SAME_PARENT = "Avoid using multiple translation functions under the same JSX parent. Instead use a single translation function with a single key. Refer: https://courses.bigbinaryacademy.com/learn-react/locale-translations/adding-localization-to-smile-cart";
286
+ const USE_TRANS_COMPONENTS_AND_VALUES_PROPS = "Instead of using numbered tags in translation string use `components` and `values` props of `Trans` to use named tag in translation string. Refer: https://courses.bigbinaryacademy.com/learn-react/locale-translations/adding-localization-to-smile-cart";
287
287
  const USE_TRANSLATION_HOOK_IN_COMPONENTS = "Use translation function from `useTranslation()` hook in components.";
288
288
  const USE_COMPONENTS_CHILDREN_PROP_IN_TRANS = "Use components children prop instead of label prop in `Trans` component to avoid multiple translation keys.";
289
- const USE_I18NEXT_PLURALS = "Use plurals that comes with the `i18next` package for hard-coded strings. Refer: https://courses.bigbinaryacademy.com/learn-react/";
290
- const USE_PLURALIZE_PACKAGE = "Use `pluralize` package for dynamic values. Refer: https://courses.bigbinaryacademy.com/learn-react/";
289
+ const USE_I18NEXT_PLURALS = "Use plurals that comes with the `i18next` package for hard-coded strings. Refer: https://courses.bigbinaryacademy.com/learn-react/locale-translations/adding-localization-to-smile-cart";
290
+ const USE_PLURALIZE_PACKAGE = "Use `pluralize` package for dynamic values.";
291
291
  const USE_COPY_TO_CLIPBOARD_FROM_NEETO_COMMONS = "Use `copyToClipboard` from `@bigbinary/neeto-commons-frontend` package. Refer: https://github.com/bigbinary/neeto-commons-frontend/blob/main/docs/utils/copyToClipboard.md";
292
292
  const USE_ZUSTAND_PICK_TRANSFORMER = "Replace the boilerplate with zustand-pick syntax offered by babel-preset-neeto. Refer: https://github.com/bigbinary/babel-preset-neeto/blob/main/docs/zustand-pick.md";
293
293
  const HARD_CODED_STRING_SHOULD_BE_LOCALIZED = "Hard-coded string should be localized";
@@ -596,7 +596,7 @@
596
596
  });
597
597
 
598
598
  var name = "@bigbinary/eslint-plugin-neeto";
599
- var version = "1.6.2";
599
+ var version = "1.6.3";
600
600
  var main = "dist/index.js";
601
601
  var license = "UNLICENSED";
602
602
  var scripts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/eslint-plugin-neeto",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "main": "dist/index.js",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {