@bigbinary/neeto-audit-frontend 1.0.3 → 1.0.5
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/.github/CODEOWNERS +1 -0
- package/common/.husky/frontend/pre-push +7 -0
- package/common/.husky/nano/pre-push +9 -0
- package/common/eslint/extension/.eslintrc.js +10 -0
- package/common/eslint/nano/.eslintrc.js +14 -0
- package/common/prettier/extension/.prettierrc.js +16 -0
- package/common/prettier/extension/tailwind.config.js +29 -0
- package/common/recommendedDependencies/common.js +49 -0
- package/common/recommendedDependencies/extension.js +18 -1
- package/common/recommendedDependencies/frontend.js +10 -47
- package/common/recommendedDependencies/index.js +4 -2
- package/common/recommendedDependencies/nano.js +73 -0
- package/dist/index.js +14951 -2211
- package/package.json +13 -6
- package/src/cli.js +4 -32
- package/src/constants/index.js +3 -0
- package/src/utils/index.js +121 -10
- package/src/verifiers/currentNodeVersion/index.js +3 -3
- package/src/verifiers/eslint/constants.js +2 -4
- package/src/verifiers/eslint/index.js +17 -7
- package/src/verifiers/husky/constants.js +4 -0
- package/src/verifiers/husky/index.js +29 -6
- package/src/verifiers/index.js +5 -6
- package/src/verifiers/prettier/constants.js +0 -4
- package/src/verifiers/prettier/index.js +15 -7
- package/src/verifiers/recommendedPackageVersions/constants.js +5 -5
- package/src/verifiers/recommendedPackageVersions/index.js +44 -19
- package/src/verifiers/recommendedPackageVersions/utils.js +23 -19
- /package/common/.husky/{_ → common/_}/husky.sh +0 -0
- /package/common/.husky/{helpers → common/helpers}/lint_staged.sh +0 -0
- /package/common/.husky/{helpers → common/helpers}/neeto_audit_frontend.sh +0 -0
- /package/common/.husky/{helpers → common/helpers}/prevent_conflict_markers.sh +0 -0
- /package/common/.husky/{helpers → common/helpers}/prevent_pushing_to_main.sh +0 -0
- /package/common/.husky/{pre-commit → common/pre-commit} +0 -0
- /package/common/.husky/{pre-push → extension/pre-push} +0 -0
- /package/common/eslint/{.eslintrc.js → common/.eslintrc.js} +0 -0
- /package/common/prettier/{.prettierrc.js → common/.prettierrc.js} +0 -0
- /package/common/prettier/{tailwind.config.js → common/tailwind.config.js} +0 -0
package/.github/CODEOWNERS
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
+
. "$(dirname "$0")/helpers/prevent_pushing_to_main.sh"
|
|
4
|
+
. "$(dirname "$0")/helpers/verify_neeto_audit.sh"
|
|
5
|
+
. "$(dirname "$0")/helpers/neeto_audit_frontend.sh"
|
|
6
|
+
|
|
7
|
+
prevent_pushing_to_main
|
|
8
|
+
verify_neeto_audit
|
|
9
|
+
neeto_audit_frontend
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const { mergeDeepLeft } = require("ramda");
|
|
2
|
+
const defaultConfiguration = require("@bigbinary/neeto-commons-frontend/configs/nanos/eslint/index.js");
|
|
3
|
+
|
|
4
|
+
module.exports = mergeDeepLeft(
|
|
5
|
+
{
|
|
6
|
+
globals: { chrome: "readonly" },
|
|
7
|
+
rules: { "@bigbinary/neeto/use-webpack-alias": "off" },
|
|
8
|
+
},
|
|
9
|
+
defaultConfiguration
|
|
10
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const defaultConfig = require("@bigbinary/neeto-commons-frontend/configs/eslint/index.js");
|
|
2
|
+
|
|
3
|
+
const { mergeDeepLeft } = require("ramda");
|
|
4
|
+
|
|
5
|
+
module.exports = mergeDeepLeft(
|
|
6
|
+
{
|
|
7
|
+
rules: {
|
|
8
|
+
"@bigbinary/neeto/no-missing-localization": "off",
|
|
9
|
+
"@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync":
|
|
10
|
+
"off",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultConfig
|
|
14
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
tailwindConfig: "./tailwind.config.js",
|
|
3
|
+
trailingComma: "es5",
|
|
4
|
+
arrowParens: "avoid",
|
|
5
|
+
printWidth: 80,
|
|
6
|
+
tabWidth: 2,
|
|
7
|
+
useTabs: false,
|
|
8
|
+
semi: true,
|
|
9
|
+
quoteProps: "as-needed",
|
|
10
|
+
jsxSingleQuote: false,
|
|
11
|
+
singleQuote: false,
|
|
12
|
+
bracketSpacing: true,
|
|
13
|
+
bracketSameLine: false,
|
|
14
|
+
proseWrap: "always",
|
|
15
|
+
endOfLine: "lf",
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const defaultConfigurations = require("@bigbinary/neeto-commons-frontend/configs/nanos/tailwind.js");
|
|
2
|
+
const { mergeDeepLeft } = require("ramda");
|
|
3
|
+
|
|
4
|
+
module.exports = mergeDeepLeft(
|
|
5
|
+
{
|
|
6
|
+
theme: {
|
|
7
|
+
extend: {
|
|
8
|
+
colors: {
|
|
9
|
+
purple: {
|
|
10
|
+
50: "#F6F8FD",
|
|
11
|
+
100: "#EEF0FB",
|
|
12
|
+
200: "#D4DAF4",
|
|
13
|
+
300: "#BBC3EE",
|
|
14
|
+
400: "#8796E1",
|
|
15
|
+
500: "#5469D4",
|
|
16
|
+
600: "#4C5FBF",
|
|
17
|
+
700: "#323F7F",
|
|
18
|
+
800: "#262F5F",
|
|
19
|
+
900: "#192040",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
borderWidth: ["last"],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
defaultConfigurations
|
|
29
|
+
);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const DEPENDENCIES = {};
|
|
2
|
+
|
|
3
|
+
const DEV_DEPENDENCIES = {
|
|
4
|
+
"@babel/core": "7.22.9",
|
|
5
|
+
"@babel/eslint-parser": "7.22.9",
|
|
6
|
+
"@babel/plugin-transform-runtime": "7.22.9",
|
|
7
|
+
"@babel/preset-env": "7.22.9",
|
|
8
|
+
"@babel/preset-react": "7.22.5",
|
|
9
|
+
"@babel/preset-typescript": "7.22.5",
|
|
10
|
+
"@babel/runtime": "7.22.6",
|
|
11
|
+
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
12
|
+
"@bigbinary/eslint-plugin-neeto": "1.1.2",
|
|
13
|
+
"@bigbinary/neeto-audit-frontend": "1.0.5",
|
|
14
|
+
autoprefixer: "10.4.14",
|
|
15
|
+
"babel-loader": "9.1.3",
|
|
16
|
+
"babel-plugin-istanbul": "6.1.1",
|
|
17
|
+
"babel-plugin-js-logger": "1.0.17",
|
|
18
|
+
"babel-plugin-macros": "3.1.0",
|
|
19
|
+
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
20
|
+
"babel-preset-react": "6.24.1",
|
|
21
|
+
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
22
|
+
eslint: "8.45.0",
|
|
23
|
+
"eslint-config-prettier": "8.8.0",
|
|
24
|
+
"eslint-plugin-cypress": "2.13.3",
|
|
25
|
+
"eslint-plugin-import": "2.27.5",
|
|
26
|
+
"eslint-plugin-jam3": "0.2.3",
|
|
27
|
+
"eslint-plugin-json": "3.1.0",
|
|
28
|
+
"eslint-plugin-prettier": "5.0.0",
|
|
29
|
+
"eslint-plugin-promise": "6.1.1",
|
|
30
|
+
"eslint-plugin-react": "7.32.2",
|
|
31
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
32
|
+
"eslint-plugin-unused-imports": "3.0.0",
|
|
33
|
+
husky: "8.0.3",
|
|
34
|
+
"lint-staged": "13.2.3",
|
|
35
|
+
postcss: "8.4.26",
|
|
36
|
+
"postcss-import": "15.1.0",
|
|
37
|
+
"postcss-loader": "7.3.3",
|
|
38
|
+
"postcss-preset-env": "9.0.0",
|
|
39
|
+
prettier: "2.8.8",
|
|
40
|
+
"prettier-plugin-tailwindcss": "0.4.1",
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const PEER_DEPENDENCIES = {};
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
dependencies: DEPENDENCIES,
|
|
47
|
+
devDependencies: DEV_DEPENDENCIES,
|
|
48
|
+
peerDependencies: PEER_DEPENDENCIES,
|
|
49
|
+
};
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
const DEPENDENCIES = {
|
|
1
|
+
const DEPENDENCIES = {
|
|
2
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
3
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
4
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
5
|
+
"@honeybadger-io/react": "2.0.1",
|
|
6
|
+
antd: "4.24.10",
|
|
7
|
+
axios: "1.4.0",
|
|
8
|
+
i18next: "23.2.11",
|
|
9
|
+
"js-logger": "1.6.1",
|
|
10
|
+
ramda: "0.29.0",
|
|
11
|
+
react: "17.0.2",
|
|
12
|
+
"react-dom": "17.0.2",
|
|
13
|
+
"react-i18next": "13.0.2",
|
|
14
|
+
"react-router-dom": "5.3.4",
|
|
15
|
+
"react-toastify": "8.2.0",
|
|
16
|
+
sass: "1.64.0",
|
|
17
|
+
yup: "1.2.0",
|
|
18
|
+
};
|
|
2
19
|
|
|
3
20
|
const DEV_DEPENDENCIES = {};
|
|
4
21
|
|
|
@@ -1,79 +1,42 @@
|
|
|
1
1
|
const DEPENDENCIES = {};
|
|
2
2
|
|
|
3
3
|
const DEV_DEPENDENCIES = {
|
|
4
|
-
"@
|
|
5
|
-
"@
|
|
6
|
-
"@babel/plugin-transform-runtime": "7.22.7",
|
|
7
|
-
"@babel/preset-env": "7.22.7",
|
|
8
|
-
"@babel/preset-react": "7.22.5",
|
|
9
|
-
"@babel/preset-typescript": "7.22.5",
|
|
10
|
-
"@babel/runtime": "7.22.6",
|
|
11
|
-
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
12
|
-
"@bigbinary/eslint-plugin-neeto": "1.0.64",
|
|
13
|
-
"@bigbinary/neeto-audit-frontend": "1.0.3",
|
|
14
|
-
"@bigbinary/neeto-commons-frontend": "2.0.94",
|
|
15
|
-
"@bigbinary/neeto-filters-frontend": "2.11.18",
|
|
16
|
-
"@bigbinary/neeto-icons": "1.12.3",
|
|
4
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
5
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
17
6
|
"@bigbinary/neeto-molecules": "1.0.34",
|
|
18
|
-
"@bigbinary/
|
|
7
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
8
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
19
9
|
"@faker-js/faker": "8.0.2",
|
|
20
10
|
"@honeybadger-io/react": "2.0.1",
|
|
21
11
|
"@rollup/plugin-alias": "5.0.0",
|
|
22
12
|
"@rollup/plugin-babel": "6.0.3",
|
|
23
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
13
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
24
14
|
"@rollup/plugin-json": "6.0.0",
|
|
25
15
|
"@rollup/plugin-node-resolve": "15.1.0",
|
|
26
16
|
"@rollup/plugin-replace": "5.0.2",
|
|
27
17
|
"@svgr/rollup": "8.0.1",
|
|
28
18
|
antd: "4.24.10",
|
|
29
|
-
autoprefixer: "10.4.14",
|
|
30
19
|
axios: "1.4.0",
|
|
31
|
-
"babel-loader": "9.1.3",
|
|
32
|
-
"babel-plugin-istanbul": "6.1.1",
|
|
33
|
-
"babel-plugin-js-logger": "1.0.17",
|
|
34
|
-
"babel-plugin-macros": "3.1.0",
|
|
35
|
-
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
36
|
-
"babel-preset-react": "6.24.1",
|
|
37
|
-
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
38
20
|
classnames: "2.3.2",
|
|
39
|
-
eslint: "8.44.0",
|
|
40
|
-
"eslint-config-prettier": "8.8.0",
|
|
41
|
-
"eslint-plugin-cypress": "2.13.3",
|
|
42
|
-
"eslint-plugin-import": "2.27.5",
|
|
43
|
-
"eslint-plugin-jam3": "0.2.3",
|
|
44
|
-
"eslint-plugin-json": "3.1.0",
|
|
45
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
46
|
-
"eslint-plugin-promise": "6.1.1",
|
|
47
|
-
"eslint-plugin-react": "7.32.2",
|
|
48
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
49
|
-
"eslint-plugin-unused-imports": "2.0.0",
|
|
50
21
|
formik: "2.4.2",
|
|
51
|
-
|
|
52
|
-
i18next: "23.2.8",
|
|
22
|
+
i18next: "23.2.11",
|
|
53
23
|
"js-logger": "1.6.1",
|
|
54
|
-
"lint-staged": "13.2.3",
|
|
55
24
|
"mixpanel-browser": "2.47.0",
|
|
56
|
-
postcss: "8.4.25",
|
|
57
|
-
"postcss-import": "15.1.0",
|
|
58
|
-
"postcss-loader": "7.3.3",
|
|
59
|
-
"postcss-preset-env": "9.0.0",
|
|
60
|
-
prettier: "2.8.8",
|
|
61
|
-
"prettier-plugin-tailwindcss": "0.3.0",
|
|
62
25
|
qs: "6.11.2",
|
|
63
26
|
ramda: "0.29.0",
|
|
64
27
|
react: "17.0.2",
|
|
65
28
|
"react-dom": "17.0.2",
|
|
66
29
|
"react-helmet": "6.1.0",
|
|
67
|
-
"react-i18next": "13.0.
|
|
68
|
-
"react-query": "3.39.3",
|
|
30
|
+
"react-i18next": "13.0.2",
|
|
69
31
|
"react-router-dom": "5.3.4",
|
|
70
32
|
"react-toastify": "8.2.0",
|
|
33
|
+
"react-query": "3.39.3",
|
|
71
34
|
rollup: "2.79.1",
|
|
72
35
|
"rollup-plugin-analyzer": "4.0.0",
|
|
73
36
|
"rollup-plugin-cleaner": "1.0.0",
|
|
74
37
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
75
38
|
"rollup-plugin-styles": "4.0.0",
|
|
76
|
-
sass: "1.
|
|
39
|
+
sass: "1.64.0",
|
|
77
40
|
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
78
41
|
util: "0.12.5",
|
|
79
42
|
yup: "1.2.0",
|
|
@@ -84,7 +47,7 @@ const PEER_DEPENDENCIES = {
|
|
|
84
47
|
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
85
48
|
"@bigbinary/neeto-icons": "^1.9.22",
|
|
86
49
|
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
87
|
-
"@bigbinary/neetoui": "^
|
|
50
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
88
51
|
"@honeybadger-io/react": "^2.0.1",
|
|
89
52
|
axios: "^0.27.2",
|
|
90
53
|
classnames: "^2.3.2",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import common from "./common";
|
|
2
2
|
import extension from "./extension";
|
|
3
|
+
import frontend from "./frontend";
|
|
4
|
+
import nano from "./nano";
|
|
3
5
|
import widget from "./widget";
|
|
4
6
|
|
|
5
|
-
export default { extension, frontend, widget };
|
|
7
|
+
export default { common, extension, frontend, nano, widget };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const DEPENDENCIES = {};
|
|
2
|
+
|
|
3
|
+
const DEV_DEPENDENCIES = {
|
|
4
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
5
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
6
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
7
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
8
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
9
|
+
"@faker-js/faker": "8.0.2",
|
|
10
|
+
"@honeybadger-io/react": "2.0.1",
|
|
11
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
12
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
13
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
14
|
+
"@rollup/plugin-json": "6.0.0",
|
|
15
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
16
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
17
|
+
"@svgr/rollup": "8.0.1",
|
|
18
|
+
antd: "4.24.10",
|
|
19
|
+
axios: "1.4.0",
|
|
20
|
+
classnames: "2.3.2",
|
|
21
|
+
formik: "2.4.2",
|
|
22
|
+
i18next: "23.2.11",
|
|
23
|
+
"js-logger": "1.6.1",
|
|
24
|
+
"mixpanel-browser": "2.47.0",
|
|
25
|
+
qs: "6.11.2",
|
|
26
|
+
ramda: "0.29.0",
|
|
27
|
+
react: "17.0.2",
|
|
28
|
+
"react-dom": "17.0.2",
|
|
29
|
+
"react-helmet": "6.1.0",
|
|
30
|
+
"react-i18next": "13.0.2",
|
|
31
|
+
"react-router-dom": "5.3.4",
|
|
32
|
+
"react-toastify": "8.2.0",
|
|
33
|
+
"react-query": "3.39.3",
|
|
34
|
+
rollup: "2.79.1",
|
|
35
|
+
"rollup-plugin-analyzer": "4.0.0",
|
|
36
|
+
"rollup-plugin-cleaner": "1.0.0",
|
|
37
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
38
|
+
"rollup-plugin-styles": "4.0.0",
|
|
39
|
+
sass: "1.64.0",
|
|
40
|
+
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
41
|
+
util: "0.12.5",
|
|
42
|
+
yup: "1.2.0",
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const PEER_DEPENDENCIES = {
|
|
46
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
47
|
+
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
48
|
+
"@bigbinary/neeto-icons": "^1.9.22",
|
|
49
|
+
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
50
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
51
|
+
"@honeybadger-io/react": "^2.0.1",
|
|
52
|
+
axios: "^0.27.2",
|
|
53
|
+
classnames: "^2.3.2",
|
|
54
|
+
formik: "^2.2.9",
|
|
55
|
+
i18next: "^22.5.1",
|
|
56
|
+
"js-logger": "^1.6.1",
|
|
57
|
+
"mixpanel-browser": "^2.45.0",
|
|
58
|
+
ramda: "^0.29.0",
|
|
59
|
+
react: "17.0.2",
|
|
60
|
+
"react-dom": "17.0.2",
|
|
61
|
+
"react-helmet": "^6.1.0",
|
|
62
|
+
"react-i18next": "^12.3.1",
|
|
63
|
+
"react-query": "3.39.2",
|
|
64
|
+
"react-router-dom": "5.3.0",
|
|
65
|
+
"react-toastify": "8.2.0",
|
|
66
|
+
yup: "^0.32.11",
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default {
|
|
70
|
+
dependencies: DEPENDENCIES,
|
|
71
|
+
devDependencies: DEV_DEPENDENCIES,
|
|
72
|
+
peerDependencies: PEER_DEPENDENCIES,
|
|
73
|
+
};
|