@bigbinary/neeto-commons-frontend 2.0.96 → 2.0.97

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.
@@ -1,94 +0,0 @@
1
- const path = require("path");
2
-
3
- const { mergeDeepLeft } = require("ramda");
4
-
5
- const rootOfTheProject = path.join(__dirname, "../../../../../../");
6
- const pathToTranslationsDir = "src/translations";
7
- const pathToResolveFile = "resolve.js";
8
- const pathToJsConfigFile = "jsconfig.json";
9
-
10
- const loadJS = jsPath => {
11
- try {
12
- return require(path.join(rootOfTheProject, jsPath));
13
- } catch {
14
- return {};
15
- }
16
- };
17
-
18
- const commonResolve = loadJS(
19
- "node_modules/@bigbinary/neeto-commons-frontend/configs/nanos/webpack/resolve.js"
20
- );
21
- const projectResolve = loadJS(pathToResolveFile);
22
- const resolve = mergeDeepLeft(projectResolve, commonResolve);
23
-
24
- module.exports = {
25
- rules: {
26
- "@bigbinary/neeto/file-name-and-export-name-standards": [
27
- "warn",
28
- {
29
- basePath: path.join(rootOfTheProject, "src"),
30
- default: {
31
- filenameCase: "camelCase",
32
- exportnameCase: "camelCase",
33
- },
34
- configs: [
35
- {
36
- filenameCase: "camelCase",
37
- exportnameCase: "CONSTANT_CASE",
38
- includes: ["/**/constants.{js,jsx}", "/**/constants/**"],
39
- },
40
- {
41
- filenameCase: "camelCase",
42
- includes: ["/**/utils.{js,jsx}", "/**/utils/**"],
43
- },
44
- {
45
- filenameCase: "snake_case",
46
- exportnameCase: "camelCase",
47
- includes: "/apis/**",
48
- },
49
- {
50
- filenameCase: "camelCase",
51
- exportnameCase: "camelCase",
52
- includes: "/channels/**",
53
- },
54
- {
55
- filenameCase: "camelCase",
56
- exportnameCase: "camelCase",
57
- includes: "/**/hooks/**",
58
- },
59
- {
60
- filenameCase: "camelCase",
61
- includes: "/lib/**",
62
- },
63
- {
64
- filenameCase: "camelCase",
65
- exportnameCase: "camelCase",
66
- includes: "/**/stores/**",
67
- },
68
- {
69
- filenameCase: "PascalCase",
70
- exportnameCase: "PascalCase",
71
- includes: ["/components/**", "/*.jsx"],
72
- },
73
- ],
74
- },
75
- ],
76
- "@bigbinary/neeto/no-axios-import-outside-apis": ["error", resolve.alias],
77
- "@bigbinary/neeto/no-missing-localization": [
78
- "error",
79
- {
80
- translationsDir: path.join(rootOfTheProject, pathToTranslationsDir),
81
- languages: ["en"],
82
- },
83
- ],
84
- "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve.alias],
85
- "@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
86
- "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": [
87
- "error",
88
- {
89
- jsconfigFilePath: path.join(rootOfTheProject, pathToJsConfigFile),
90
- aliasFilePath: path.join(rootOfTheProject, pathToResolveFile),
91
- },
92
- ],
93
- },
94
- };
@@ -1,34 +0,0 @@
1
- const path = require("path");
2
-
3
- const { mergeDeepLeft } = require("ramda");
4
-
5
- const rootOfTheProject = path.join(__dirname, "../../../../../../");
6
- const pathToResolveFile = "resolve.js";
7
-
8
- const loadJS = jsPath => {
9
- try {
10
- return require(path.join(rootOfTheProject, jsPath));
11
- } catch {
12
- return {};
13
- }
14
- };
15
-
16
- const commonResolve = loadJS(
17
- "node_modules/@bigbinary/neeto-commons-frontend/configs/nextjs/webpack/resolve.js"
18
- );
19
- const projectResolve = loadJS(pathToResolveFile);
20
- const resolve = mergeDeepLeft(projectResolve, commonResolve);
21
-
22
- module.exports = {
23
- rules: {
24
- "@bigbinary/neeto/file-name-and-export-name-standards": "off",
25
- "@bigbinary/neeto/no-axios-import-outside-apis": "off",
26
- "@bigbinary/neeto/no-missing-localization": "off",
27
- "@bigbinary/neeto/prefix-neeto-ui-import-alias": ["error", resolve.alias],
28
- "@bigbinary/neeto/use-react-query-for-managing-remote-data": "off",
29
- "@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
30
- "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync":
31
- "off",
32
- "@bigbinary/neeto/use-neetoui-classes": "off",
33
- },
34
- };