@protacon/muster-booking-frontend 1.29.0 → 1.30.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.
@@ -0,0 +1,91 @@
1
+ import js from "@eslint/js";
2
+ import tseslint from "typescript-eslint";
3
+ import prettierPlugin from "eslint-plugin-prettier";
4
+ import prettierConfig from "eslint-config-prettier";
5
+
6
+ export default [
7
+ {
8
+ ignores: [
9
+ "**/dist/**",
10
+ "**/node_modules/**",
11
+ "*.config.*",
12
+ "webpack.config.js",
13
+ "eslint.config.mjs",
14
+ "**/public/**",
15
+ ],
16
+ },
17
+
18
+ // Javascript configuration
19
+ js.configs.recommended,
20
+ {
21
+ files: ["**/*.js", "**/*.jsx"],
22
+ languageOptions: {
23
+ parserOptions: {
24
+ ecmaVersion: 2018,
25
+ sourceType: "module",
26
+ ecmaFeatures: {
27
+ jsx: true,
28
+ },
29
+ },
30
+ globals: {
31
+ React: "readonly",
32
+ window: "readonly",
33
+ document: "readonly",
34
+ localStorage: "readonly",
35
+ console: "readonly",
36
+ },
37
+ },
38
+ plugins: {
39
+ prettier: prettierPlugin,
40
+ },
41
+ rules: {
42
+ "prettier/prettier": "error",
43
+ "prefer-const": "error",
44
+ "no-console": ["error", { allow: ["warn", "error", "info"] }],
45
+ "no-unused-vars": [
46
+ "warn",
47
+ { varsIgnorePattern: "^(React|App|BookingComponent)$" },
48
+ ],
49
+ },
50
+ },
51
+
52
+ // Typescript configuration
53
+ ...tseslint.configs.recommendedTypeChecked.map((config) => ({
54
+ ...config,
55
+ files: ["**/*.ts", "**/*.tsx"],
56
+ })),
57
+ {
58
+ files: ["**/*.ts", "**/*.tsx"],
59
+ languageOptions: {
60
+ parser: tseslint.parser,
61
+ parserOptions: {
62
+ project: "./tsconfig.json",
63
+ tsconfigRootDir: import.meta.dirname,
64
+ },
65
+ },
66
+ plugins: {
67
+ "@typescript-eslint": tseslint.plugin,
68
+ prettier: prettierPlugin,
69
+ },
70
+ rules: {
71
+ "prettier/prettier": "error",
72
+ "@typescript-eslint/no-unused-vars": "warn",
73
+ "@typescript-eslint/no-explicit-any": "warn",
74
+ "@typescript-eslint/prefer-for-of": "error",
75
+ "@typescript-eslint/no-empty-function": "warn",
76
+ "@typescript-eslint/no-unsafe-member-access": "off",
77
+ "@typescript-eslint/no-unsafe-assignment": "off",
78
+ "@typescript-eslint/no-unsafe-argument": "off",
79
+ "@typescript-eslint/no-unsafe-call": "off",
80
+ "@typescript-eslint/no-unsafe-return": "off",
81
+ "@typescript-eslint/only-throw-error": "off",
82
+ "@typescript-eslint/unbound-method": "off",
83
+ "@typescript-eslint/no-floating-promises": "off",
84
+ "no-empty": "off",
85
+ "prefer-const": "error",
86
+ "no-console": ["error", { allow: ["warn", "error", "info"] }],
87
+ },
88
+ },
89
+
90
+ prettierConfig,
91
+ ];
package/package.json CHANGED
@@ -4,13 +4,15 @@
4
4
  "author": "Muster by Pinja",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "/dist/index.bundle.js",
7
- "version": "1.29.0",
7
+ "version": "1.30.0",
8
8
  "scripts": {
9
9
  "start": "webpack-dev-server",
10
10
  "build": "cross-env NODE_ENV=production OUTPUT=library webpack --progress",
11
11
  "build-web": "cross-env NODE_ENV=production webpack",
12
- "lint": "eslint --ext js,jsx,ts,tsx .",
13
- "test": "echo \"Error: no test specified\" && exit 1",
12
+ "lint": "tsc --noEmit && eslint .",
13
+ "fix-lint": "eslint . --fix",
14
+ "prettier": "npx prettier . --check",
15
+ "fix-prettier": "npx prettier . --write",
14
16
  "copywebconfig": "cp web.config dist\\web.config"
15
17
  },
16
18
  "dependencies": {
@@ -39,30 +41,32 @@
39
41
  "@babel/preset-react": "^7.12.13",
40
42
  "@babel/preset-typescript": "^7.13.0",
41
43
  "@babel/runtime": "^7.13.10",
44
+ "@eslint/js": "^9.23.0",
42
45
  "@types/googlemaps": "^3.43.3",
43
46
  "@types/moment-timezone": "^0.5.30",
44
47
  "@types/react-redux": "^7.1.16",
45
- "@typescript-eslint/eslint-plugin": "^2.34.0",
46
- "@typescript-eslint/parser": "^1.13.0",
47
48
  "awesome-typescript-loader": "^5.2.1",
48
- "babel-eslint": "^10.1.0",
49
49
  "babel-loader": "^8.2.2",
50
50
  "copy-webpack-plugin": "^9.0.0",
51
51
  "cross-env": "^5.2.1",
52
52
  "css-loader": "^3.6.0",
53
- "eslint": "^6.8.0",
54
- "eslint-plugin-react": "^7.23.1",
53
+ "eslint": "^9.23.0",
54
+ "eslint-config-prettier": "^10.1.8",
55
+ "eslint-plugin-prettier": "^5.5.4",
56
+ "eslint-plugin-react": "^7.37.4",
57
+ "globals": "^16.0.0",
55
58
  "html-webpack-plugin": "^5.5.0",
56
59
  "mini-css-extract-plugin": "^2.7.2",
57
60
  "react": "^18.2.0",
58
61
  "react-dom": "^18.2.0",
59
62
  "react-redux": "^7.2.3",
60
63
  "source-map-loader": "^0.2.4",
61
- "typescript": "^3.9.9",
64
+ "typescript": "^5.8.2",
65
+ "typescript-eslint": "^8.27.0",
62
66
  "webpack": "5.98.0",
63
67
  "webpack-bundle-analyzer": "4.10.2",
64
- "webpack-cli": "6.0.1",
65
- "webpack-dev-server": "5.2.1",
68
+ "webpack-cli": "^5.0.1",
69
+ "webpack-dev-server": "^4.11.1",
66
70
  "webpack-node-externals": "3.0.0"
67
71
  }
68
72
  }
package/slack.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "version": "1",
3
- "actions": [
4
- {
5
- "type": "pull_request",
6
- "channel": "#team-muster-dev",
7
- "enabled": false
8
- },
9
- {
10
- "type": "review_request",
11
- "channel": "#team-muster-dev"
12
- },
13
- {
14
- "type": "review_status",
15
- "channel": "#team-muster-dev"
16
- }
17
- ]
2
+ "version": "1",
3
+ "actions": [
4
+ {
5
+ "type": "pull_request",
6
+ "channel": "#team-muster-dev",
7
+ "enabled": false
8
+ },
9
+ {
10
+ "type": "review_request",
11
+ "channel": "#team-muster-dev"
12
+ },
13
+ {
14
+ "type": "review_status",
15
+ "channel": "#team-muster-dev"
16
+ }
17
+ ]
18
18
  }
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "module": "commonjs",
3
+ "esModuleInterop": true,
4
+ "resolveJsonModule": true,
5
+ "target": "es6",
6
+ "moduleResolution": "node",
7
+ "sourceMap": true,
8
+
9
+ "downlevelIteration": true,
10
+ "compilerOptions": {
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "jsx": "react",
14
+ "skipLibCheck": true
15
+ }
16
+ }