orc-scripts 3.0.0-dev.0 → 4.0.0-dev.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-scripts",
3
- "version": "3.0.0-dev.0",
3
+ "version": "4.0.0-dev.7",
4
4
  "description": "Scripts toolbox for Orckestra",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -38,17 +38,21 @@
38
38
  },
39
39
  "homepage": "https://github.com/Orckestra/orc-scripts#readme",
40
40
  "dependencies": {
41
- "@babel/cli": "^7.0.0",
42
- "@babel/core": "^7.0.0",
43
- "@babel/plugin-proposal-class-properties": "^7.8.3",
44
- "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
45
- "@babel/plugin-proposal-optional-chaining": "^7.9.0",
41
+ "@babel/cli": "^7.24.7",
42
+ "@babel/core": "^7.24.7",
43
+ "@babel/eslint-parser": "^7.24.7",
46
44
  "@babel/plugin-syntax-dynamic-import": "^7.0.0",
47
- "@babel/plugin-transform-computed-properties": "^7.0.0",
48
- "@babel/plugin-transform-destructuring": "^7.8.3",
49
- "@babel/plugin-transform-react-jsx": "^7.0.0",
50
- "@babel/plugin-transform-template-literals": "^7.0.0",
51
- "@babel/preset-env": "^7.0.0",
45
+ "@babel/plugin-transform-class-properties": "^7.24.7",
46
+ "@babel/plugin-transform-computed-properties": "^7.24.7",
47
+ "@babel/plugin-transform-destructuring": "^7.24.7",
48
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
49
+ "@babel/plugin-transform-numeric-separator": "^7.24.7",
50
+ "@babel/plugin-transform-object-rest-spread": "^7.24.7",
51
+ "@babel/plugin-transform-optional-chaining": "^7.24.7",
52
+ "@babel/plugin-transform-private-methods": "^7.24.7",
53
+ "@babel/plugin-transform-react-jsx": "^7.24.7",
54
+ "@babel/plugin-transform-template-literals": "^7.24.7",
55
+ "@babel/preset-env": "^7.24.7",
52
56
  "@formatjs/intl-getcanonicallocales": "^1.4.6",
53
57
  "@formatjs/intl-pluralrules": "^3.4.10",
54
58
  "@gustavnikolaj/async-main-wrap": "^3.0.1",
@@ -56,12 +60,13 @@
56
60
  "@loadable/component": "5.13.1",
57
61
  "@material-ui/core": "^4.9.14",
58
62
  "@material-ui/lab": "^4.0.0-alpha.57",
59
- "@typescript-eslint/eslint-plugin": "^2.34.0",
60
- "@typescript-eslint/parser": "^2.0.0",
63
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
64
+ "@typescript-eslint/parser": "^7.14.1",
61
65
  "@welldone-software/why-did-you-render": "^4.2.5",
66
+ "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
62
67
  "babel-core": "7.0.0-bridge.0",
63
- "babel-eslint": "^10.0.1",
64
68
  "babel-loader": "^8.3.0",
69
+ "babel-plugin-formatjs": "^10.5.16",
65
70
  "babel-plugin-react-intl-auto": "^3.1.0",
66
71
  "babel-plugin-root-import": "^6.5.0",
67
72
  "babel-plugin-styled-components": "^1.10.6",
@@ -74,17 +79,17 @@
74
79
  "date-fns": "^2",
75
80
  "dotenv": "^8.0.0",
76
81
  "enzyme": "^3.11.0",
77
- "enzyme-adapter-react-16": "^1.15.2",
78
- "eslint": "^6.1.0",
79
- "eslint-config-react-app": "^5.1.0",
80
- "eslint-plugin-flowtype": "^4.7.0",
81
- "eslint-plugin-import": "^2.14.0",
82
- "eslint-plugin-jsx-a11y": "^6.1.2",
83
- "eslint-plugin-react": "^7.11.1",
84
- "eslint-plugin-react-hooks": "^2.5.1",
82
+ "eslint": "^8.57.0",
83
+ "eslint-config-react-app": "^7.0.1",
84
+ "eslint-plugin-flowtype": "^8.0.3",
85
+ "eslint-plugin-import": "^2.29.1",
86
+ "eslint-plugin-jsx-a11y": "^6.9.0",
87
+ "eslint-plugin-react": "^7.34.3",
88
+ "eslint-plugin-react-hooks": "^4.6.2",
85
89
  "extract-react-intl-messages": "^4.1.1",
86
90
  "file-loader": "^6.2.0",
87
91
  "full-icu": "^1.3.1",
92
+ "globals": "^15.8.0",
88
93
  "husky": "^4.0.0",
89
94
  "icu4c-data": "^0.64.2",
90
95
  "identity-obj-proxy": "^3.0.0",
@@ -102,11 +107,11 @@
102
107
  "normalizr": "^3.3.0",
103
108
  "pkg-dir": "^4.0.0",
104
109
  "polished": "^3.4.2",
105
- "prettier": "^2.0.2",
106
- "react": "^16.12.0",
110
+ "prettier": "^3.3.2",
111
+ "react": "^17.0.2",
107
112
  "react-big-calendar": "^0.33.2",
108
113
  "react-datepicker": "^3.0.0",
109
- "react-dom": "^16.12.0",
114
+ "react-dom": "^17.0.2",
110
115
  "react-hot-loader": "^4.12.18",
111
116
  "react-intl": "5.6.5",
112
117
  "react-measure": "^2.1.2",
@@ -149,7 +154,7 @@
149
154
  },
150
155
  "sideEffects": false,
151
156
  "lint-staged": {
152
- "*.{js,json,md}": [
157
+ "*.{js,json,md,mjs}": [
153
158
  "prettier --write"
154
159
  ],
155
160
  "*.js": [
@@ -0,0 +1,45 @@
1
+ import globals from "globals";
2
+ import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
3
+ import pluginReactHookConfig from "eslint-plugin-react-hooks"
4
+
5
+ export default [
6
+ { files: ["**/*.{js,mjs,cjs,jsx}"] },
7
+ { languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
8
+ { files: ["**/*.js"], languageOptions: { sourceType: "module" } },
9
+ { languageOptions: { globals: { ...globals.browser, ...globals.node } } },
10
+ pluginReactConfig,
11
+ {
12
+ plugins: {
13
+ "react-hooks": pluginReactHookConfig,
14
+ },
15
+ rules: pluginReactHookConfig.configs.recommended.rules,
16
+ },
17
+ {
18
+ files: ["**/*.test.js"],
19
+ rules: {
20
+ "react/jsx-key": "off",
21
+ }
22
+ },
23
+ {
24
+ "settings": {
25
+ "react": {
26
+ "version": "detect"
27
+ }
28
+ },
29
+ languageOptions: {
30
+ globals: {
31
+ SUPPORTED_LOCALES: false,
32
+ OVERTURE_APPLICATION: false,
33
+ DEPENDENCIES: false,
34
+ BUILD_ID: false,
35
+ BUILD_NUMBER: false,
36
+ },
37
+ },
38
+ rules: {
39
+ "jsx-a11y/href-no-hash": "off",
40
+ "react/prop-types": "off",
41
+ "react/no-children-prop": "off",
42
+ "react/display-name": "off",
43
+ }
44
+ }
45
+ ];
@@ -1,4 +1,4 @@
1
1
  import Enzyme from "enzyme";
2
- import Adapter from "enzyme-adapter-react-16";
2
+ import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
3
3
 
4
4
  Enzyme.configure({ adapter: new Adapter() });
@@ -1,9 +1,11 @@
1
- module.exports = {
1
+ const config = {
2
2
  useTabs: true,
3
+ tabWidth: 2,
3
4
  trailingComma: "all",
4
5
  printWidth: 120,
5
6
  arrowParens: "avoid",
6
7
  endOfLine: "auto",
7
- tabWidth: 2,
8
8
  semi: true,
9
9
  };
10
+
11
+ export default config;
package/eslint.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./src/config/eslintrc");
package/prettier.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./src/config/prettier.config");
@@ -1,15 +0,0 @@
1
- const eslintrc = {
2
- extends: ["react-app"],
3
- rules: {
4
- "jsx-a11y/href-no-hash": "off",
5
- },
6
- globals: {
7
- SUPPORTED_LOCALES: false,
8
- OVERTURE_APPLICATION: false,
9
- DEPENDENCIES: false,
10
- BUILD_ID: false,
11
- BUILD_NUMBER: false,
12
- },
13
- };
14
-
15
- module.exports = eslintrc;