orc-scripts 4.0.0-dev.7 → 4.0.0

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/eslint.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./src/config/eslintrc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-scripts",
3
- "version": "4.0.0-dev.7",
3
+ "version": "4.0.0",
4
4
  "description": "Scripts toolbox for Orckestra",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -38,21 +38,17 @@
38
38
  },
39
39
  "homepage": "https://github.com/Orckestra/orc-scripts#readme",
40
40
  "dependencies": {
41
- "@babel/cli": "^7.24.7",
42
- "@babel/core": "^7.24.7",
43
- "@babel/eslint-parser": "^7.24.7",
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",
44
46
  "@babel/plugin-syntax-dynamic-import": "^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",
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",
56
52
  "@formatjs/intl-getcanonicallocales": "^1.4.6",
57
53
  "@formatjs/intl-pluralrules": "^3.4.10",
58
54
  "@gustavnikolaj/async-main-wrap": "^3.0.1",
@@ -60,13 +56,12 @@
60
56
  "@loadable/component": "5.13.1",
61
57
  "@material-ui/core": "^4.9.14",
62
58
  "@material-ui/lab": "^4.0.0-alpha.57",
63
- "@typescript-eslint/eslint-plugin": "^7.14.1",
64
- "@typescript-eslint/parser": "^7.14.1",
59
+ "@typescript-eslint/eslint-plugin": "^2.34.0",
60
+ "@typescript-eslint/parser": "^2.0.0",
65
61
  "@welldone-software/why-did-you-render": "^4.2.5",
66
- "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
67
62
  "babel-core": "7.0.0-bridge.0",
63
+ "babel-eslint": "^10.0.1",
68
64
  "babel-loader": "^8.3.0",
69
- "babel-plugin-formatjs": "^10.5.16",
70
65
  "babel-plugin-react-intl-auto": "^3.1.0",
71
66
  "babel-plugin-root-import": "^6.5.0",
72
67
  "babel-plugin-styled-components": "^1.10.6",
@@ -79,17 +74,17 @@
79
74
  "date-fns": "^2",
80
75
  "dotenv": "^8.0.0",
81
76
  "enzyme": "^3.11.0",
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",
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",
89
85
  "extract-react-intl-messages": "^4.1.1",
90
86
  "file-loader": "^6.2.0",
91
87
  "full-icu": "^1.3.1",
92
- "globals": "^15.8.0",
93
88
  "husky": "^4.0.0",
94
89
  "icu4c-data": "^0.64.2",
95
90
  "identity-obj-proxy": "^3.0.0",
@@ -107,11 +102,11 @@
107
102
  "normalizr": "^3.3.0",
108
103
  "pkg-dir": "^4.0.0",
109
104
  "polished": "^3.4.2",
110
- "prettier": "^3.3.2",
111
- "react": "^17.0.2",
105
+ "prettier": "^2.0.2",
106
+ "react": "^16.12.0",
112
107
  "react-big-calendar": "^0.33.2",
113
108
  "react-datepicker": "^3.0.0",
114
- "react-dom": "^17.0.2",
109
+ "react-dom": "^16.12.0",
115
110
  "react-hot-loader": "^4.12.18",
116
111
  "react-intl": "5.6.5",
117
112
  "react-measure": "^2.1.2",
@@ -154,7 +149,7 @@
154
149
  },
155
150
  "sideEffects": false,
156
151
  "lint-staged": {
157
- "*.{js,json,md,mjs}": [
152
+ "*.{js,json,md}": [
158
153
  "prettier --write"
159
154
  ],
160
155
  "*.js": [
package/prettier.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./src/config/prettier.config");
@@ -0,0 +1,15 @@
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;
@@ -1,4 +1,4 @@
1
1
  import Enzyme from "enzyme";
2
- import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
2
+ import Adapter from "enzyme-adapter-react-16";
3
3
 
4
4
  Enzyme.configure({ adapter: new Adapter() });
@@ -1,11 +1,9 @@
1
- const config = {
1
+ module.exports = {
2
2
  useTabs: true,
3
- tabWidth: 2,
4
3
  trailingComma: "all",
5
4
  printWidth: 120,
6
5
  arrowParens: "avoid",
7
6
  endOfLine: "auto",
7
+ tabWidth: 2,
8
8
  semi: true,
9
9
  };
10
-
11
- export default config;
@@ -1,45 +0,0 @@
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
- ];