@bigbinary/eslint-plugin-neeto 1.0.64 → 1.0.65

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 +104 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12,16 +12,16 @@
12
12
  var absolutePath = function absolutePath(jsPath) {
13
13
  return path__default["default"].resolve(__dirname, "../../../..", jsPath);
14
14
  };
15
- var loadJS = function loadJS(jsPath) {
15
+ var loadJS$2 = function loadJS(jsPath) {
16
16
  try {
17
17
  return require(absolutePath(jsPath));
18
18
  } catch (_unused) {
19
19
  return {};
20
20
  }
21
21
  };
22
- var projectResolve = loadJS("config/webpack/resolve.js");
23
- var commonResolve = loadJS("node_modules/@bigbinary/neeto-commons-frontend/configs/webpack/resolve.js");
24
- var resolve = ramda.mergeDeepLeft(projectResolve, commonResolve);
22
+ var projectResolve$2 = loadJS$2("config/webpack/resolve.js");
23
+ var commonResolve$2 = loadJS$2("node_modules/@bigbinary/neeto-commons-frontend/configs/webpack/resolve.js");
24
+ var resolve$2 = ramda.mergeDeepLeft(projectResolve$2, commonResolve$2);
25
25
  var rules = {
26
26
  "@bigbinary/neeto/api-connector-name-should-match-filename": "error",
27
27
  "@bigbinary/neeto/api-connector-should-use-default-export": "error",
@@ -72,7 +72,7 @@
72
72
  "@bigbinary/neeto/hard-coded-strings-should-be-localized": "warn",
73
73
  "@bigbinary/neeto/minimize-zustand-store-access-scope": "error",
74
74
  "@bigbinary/neeto/neetocommons-tips": "warn",
75
- "@bigbinary/neeto/no-axios-import-outside-apis": ["error", resolve.alias],
75
+ "@bigbinary/neeto/no-axios-import-outside-apis": ["error", resolve$2.alias],
76
76
  "@bigbinary/neeto/no-blacklisted-imports": "warn",
77
77
  "@bigbinary/neeto/no-conditional-overlays": "error",
78
78
  "@bigbinary/neeto/no-deprecated-imports-from-zustand": "error",
@@ -91,7 +91,7 @@
91
91
  "@bigbinary/neeto/no-redundant-string-templates": "error",
92
92
  "@bigbinary/neeto/no-routes-destructure-and-reassignment": "error",
93
93
  "@bigbinary/neeto/no-translation-functions-in-string-interpolation": "error",
94
- "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve.alias],
94
+ "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve$2.alias],
95
95
  "@bigbinary/neeto/ramda-tips": "warn",
96
96
  "@bigbinary/neeto/routes-should-be-declared-and-default-exported": "error",
97
97
  "@bigbinary/neeto/routes-should-match-object-path": "error",
@@ -110,7 +110,7 @@
110
110
  "@bigbinary/neeto/use-snake-case-for-api-connector-filename": "error",
111
111
  "@bigbinary/neeto/use-translation-hook-in-components": "error",
112
112
  "@bigbinary/neeto/use-trans-components-and-values-props": "error",
113
- "@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
113
+ "@bigbinary/neeto/use-webpack-alias": ["error", resolve$2.alias],
114
114
  "@bigbinary/neeto/use-zustand-for-global-state-management": "error",
115
115
  "@bigbinary/neeto/use-zustand-pick-transformer": "warn",
116
116
  "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": ["error", {
@@ -136,6 +136,100 @@
136
136
  rules: rules
137
137
  };
138
138
 
139
+ var rootOfTheProject$1 = path__default["default"].join(__dirname, "../../../../");
140
+ var pathToTranslationsDir = "src/translations";
141
+ var pathToResolveFile$1 = "resolve.js";
142
+ var pathToJsConfigFile = "jsconfig.json";
143
+ var loadJS$1 = function loadJS(jsPath) {
144
+ try {
145
+ return require(path__default["default"].join(rootOfTheProject$1, jsPath));
146
+ } catch (_unused) {
147
+ return {};
148
+ }
149
+ };
150
+ var commonResolve$1 = loadJS$1("node_modules/@bigbinary/neeto-commons-frontend/configs/nanos/webpack/resolve.js");
151
+ var projectResolve$1 = loadJS$1(pathToResolveFile$1);
152
+ var resolve$1 = ramda.mergeDeepRight(commonResolve$1, projectResolve$1);
153
+ var nanosRecommended = ramda.mergeDeepRight(recommended, {
154
+ rules: {
155
+ "@bigbinary/neeto/file-name-and-export-name-standards": ["warn", {
156
+ basePath: path__default["default"].join(rootOfTheProject$1, "src"),
157
+ "default": {
158
+ filenameCase: "camelCase",
159
+ exportnameCase: "camelCase"
160
+ },
161
+ configs: [{
162
+ filenameCase: "camelCase",
163
+ exportnameCase: "CONSTANT_CASE",
164
+ includes: ["/**/constants.{js,jsx}", "/**/constants/**"]
165
+ }, {
166
+ filenameCase: "camelCase",
167
+ includes: ["/**/utils.{js,jsx}", "/**/utils/**"]
168
+ }, {
169
+ filenameCase: "snake_case",
170
+ exportnameCase: "camelCase",
171
+ includes: "/apis/**"
172
+ }, {
173
+ filenameCase: "camelCase",
174
+ exportnameCase: "camelCase",
175
+ includes: "/channels/**"
176
+ }, {
177
+ filenameCase: "camelCase",
178
+ exportnameCase: "camelCase",
179
+ includes: "/**/hooks/**"
180
+ }, {
181
+ filenameCase: "camelCase",
182
+ includes: "/lib/**"
183
+ }, {
184
+ filenameCase: "camelCase",
185
+ exportnameCase: "camelCase",
186
+ includes: "/**/stores/**"
187
+ }, {
188
+ filenameCase: "PascalCase",
189
+ exportnameCase: "PascalCase",
190
+ includes: ["/components/**", "/*.jsx"]
191
+ }]
192
+ }],
193
+ "@bigbinary/neeto/no-axios-import-outside-apis": ["error", resolve$1.alias],
194
+ "@bigbinary/neeto/no-missing-localization": ["error", {
195
+ translationsDir: path__default["default"].join(rootOfTheProject$1, pathToTranslationsDir),
196
+ languages: ["en"]
197
+ }],
198
+ "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve$1.alias],
199
+ "@bigbinary/neeto/use-webpack-alias": ["error", resolve$1.alias],
200
+ "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": ["error", {
201
+ jsconfigFilePath: path__default["default"].join(rootOfTheProject$1, pathToJsConfigFile),
202
+ aliasFilePath: path__default["default"].join(rootOfTheProject$1, pathToResolveFile$1)
203
+ }]
204
+ }
205
+ });
206
+
207
+ var rootOfTheProject = path__default["default"].join(__dirname, "../../../../");
208
+ var pathToResolveFile = "resolve.js";
209
+ var loadJS = function loadJS(jsPath) {
210
+ try {
211
+ return require(path__default["default"].join(rootOfTheProject, jsPath));
212
+ } catch (_unused) {
213
+ return {};
214
+ }
215
+ };
216
+ var commonResolve = loadJS("node_modules/@bigbinary/neeto-commons-frontend/configs/nextjs/webpack/resolve.js");
217
+ var projectResolve = loadJS(pathToResolveFile);
218
+ var resolve = ramda.mergeDeepRight(commonResolve, projectResolve);
219
+ var nextjsRecommended = ramda.mergeDeepRight(recommended, {
220
+ rules: {
221
+ "@bigbinary/neeto/file-name-and-export-name-standards": "off",
222
+ "@bigbinary/neeto/no-axios-import-outside-apis": "off",
223
+ "@bigbinary/neeto/no-missing-localization": "off",
224
+ "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve.alias],
225
+ "@bigbinary/neeto/use-react-query-for-managing-remote-data": "off",
226
+ "@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
227
+ "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": "off",
228
+ "@bigbinary/neeto/use-neetoui-classes": "off",
229
+ "@bigbinary/neeto/hard-coded-strings-should-be-localized": "off"
230
+ }
231
+ });
232
+
139
233
  function _arrayWithHoles(arr) {
140
234
  if (Array.isArray(arr)) return arr;
141
235
  }
@@ -25937,7 +26031,9 @@
25937
26031
  "zustand-use-with-immutable-actions-wrapper-inside-create": useWithImmutableActionsWrapperInsideCreate
25938
26032
  },
25939
26033
  configs: {
25940
- recommended: recommended
26034
+ recommended: recommended,
26035
+ "nextjs-recommended": nextjsRecommended,
26036
+ "nanos-recommended": nanosRecommended
25941
26037
  }
25942
26038
  };
25943
26039
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/eslint-plugin-neeto",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "main": "dist/index.js",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {