@orchestrator-ui/eslint-config-custom 1.3.1 → 2.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.
@@ -1,10 +1,10 @@
1
1
 
2
- > @orchestrator-ui/eslint-config-custom@1.3.1 build
2
+ > @orchestrator-ui/eslint-config-custom@2.0.0 build
3
3
  > tsup index.js --format esm
4
4
 
5
5
  CLI Building entry: index.js
6
- CLI tsup v8.3.5
6
+ CLI tsup v8.4.0
7
7
  CLI Target: node16
8
8
  ESM Build start
9
- ESM dist/index.mjs 1.32 KB
10
- ESM ⚡️ Build success in 17ms
9
+ ESM dist/index.js 1.35 KB
10
+ ESM ⚡️ Build success in 23ms
package/CHANGELOG.md CHANGED
@@ -1,121 +1,140 @@
1
1
  # @orchestrator-ui/eslint-config-custom
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 85509b5: Updates to latest npm packages versions. Updates to eslint 9
8
+
9
+ ## 1.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 56e2537: Fixes rights issue in github action
14
+ - b7fe3ee: Adds github action permission to publish with provenance
15
+
16
+ ## 1.4.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 85fca33: Adds npm provenance flag
21
+
3
22
  ## 1.3.1
4
23
 
5
24
  ### Patch Changes
6
25
 
7
- - 3bfe651: Updates npm packages to latest versions
26
+ - 3bfe651: Updates npm packages to latest versions
8
27
 
9
28
  ## 1.3.0
10
29
 
11
30
  ### Minor Changes
12
31
 
13
- - ef169fc: 1108 For the no-console rule allowing warnings too
32
+ - ef169fc: 1108 For the no-console rule allowing warnings too
14
33
 
15
34
  ## 1.2.1
16
35
 
17
36
  ### Patch Changes
18
37
 
19
- - 09f3e09: Fixes markdown in README files
38
+ - 09f3e09: Fixes markdown in README files
20
39
 
21
40
  ## 1.2.0
22
41
 
23
42
  ### Minor Changes
24
43
 
25
- - c122786: Adds README files to be displayed on NPM. Adds Apache 2.0 license.
44
+ - c122786: Adds README files to be displayed on NPM. Adds Apache 2.0 license.
26
45
 
27
46
  ## 1.1.3
28
47
 
29
48
  ### Patch Changes
30
49
 
31
- - 9d8b7e0: Downgrades typescript-eslint-plugin
50
+ - 9d8b7e0: Downgrades typescript-eslint-plugin
32
51
 
33
52
  ## 1.1.2
34
53
 
35
54
  ### Patch Changes
36
55
 
37
- - 6646b65: Fixes rule extend
56
+ - 6646b65: Fixes rule extend
38
57
 
39
58
  ## 1.1.1
40
59
 
41
60
  ### Patch Changes
42
61
 
43
- - 126f2be: Fix eslint-plugin dependency
62
+ - 126f2be: Fix eslint-plugin dependency
44
63
 
45
64
  ## 1.1.0
46
65
 
47
66
  ### Minor Changes
48
67
 
49
- - 1bed1cb: Add prettier and plugings to eslint config package
68
+ - 1bed1cb: Add prettier and plugings to eslint config package
50
69
 
51
70
  ## 1.0.0
52
71
 
53
72
  ### Major Changes
54
73
 
55
- - 507399b: R1 Release
74
+ - 507399b: R1 Release
56
75
 
57
76
  ## 0.3.1
58
77
 
59
78
  ### Patch Changes
60
79
 
61
- - 5be68af: Exposing @typescript-eslint/eslint-plugin as dependency instead of devDependency
80
+ - 5be68af: Exposing @typescript-eslint/eslint-plugin as dependency instead of devDependency
62
81
 
63
82
  ## 0.3.0
64
83
 
65
84
  ### Minor Changes
66
85
 
67
- - c8c6e10: Update npm dependency versions
86
+ - c8c6e10: Update npm dependency versions
68
87
 
69
88
  ## 0.2.0
70
89
 
71
90
  ### Minor Changes
72
91
 
73
- - 2747ef2: Remove turborepo linting rule
92
+ - 2747ef2: Remove turborepo linting rule
74
93
 
75
94
  ## 0.1.0
76
95
 
77
96
  ### Minor Changes
78
97
 
79
- - ef5eace: Updates all major dependencies including Typescript to version 5 and NextJS to version 14
98
+ - ef5eace: Updates all major dependencies including Typescript to version 5 and NextJS to version 14
80
99
 
81
100
  ## 0.0.7
82
101
 
83
102
  ### Patch Changes
84
103
 
85
- - 39c896a: Moves all devDependencies into the dependencies section
104
+ - 39c896a: Moves all devDependencies into the dependencies section
86
105
 
87
106
  ## 0.0.6
88
107
 
89
108
  ### Patch Changes
90
109
 
91
- - ce48846: Updates linting rules to ban all console statements except console.error()
110
+ - ce48846: Updates linting rules to ban all console statements except console.error()
92
111
 
93
112
  ## 0.0.5
94
113
 
95
114
  ### Patch Changes
96
115
 
97
- - 6597ac1: Test release after adding absolute imports (issue 414)
116
+ - 6597ac1: Test release after adding absolute imports (issue 414)
98
117
 
99
118
  ## 0.0.4
100
119
 
101
120
  ### Patch Changes
102
121
 
103
- - 6d680f6: Test release before adding absolute imports (issue 414)
122
+ - 6d680f6: Test release before adding absolute imports (issue 414)
104
123
 
105
124
  ## 0.0.3
106
125
 
107
126
  ### Patch Changes
108
127
 
109
- - 3f17e71: Adds eslint dependency
128
+ - 3f17e71: Adds eslint dependency
110
129
 
111
130
  ## 0.0.2
112
131
 
113
132
  ### Patch Changes
114
133
 
115
- - 0cef169: Splitted WFO in separate packages
134
+ - 0cef169: Splitted WFO in separate packages
116
135
 
117
136
  ## 0.0.1
118
137
 
119
138
  ### Patch Changes
120
139
 
121
- - Converted tsconfig and eslint to standalone NPM package
140
+ - Converted tsconfig and eslint to standalone NPM package
package/dist/index.js ADDED
@@ -0,0 +1,62 @@
1
+ // index.js
2
+ import prettier from "eslint-config-prettier";
3
+ import react from "eslint-plugin-react";
4
+ import reactHooks from "eslint-plugin-react-hooks";
5
+ import { defineConfig, globalIgnores } from "eslint/config";
6
+ import globals from "globals";
7
+ import typescriptEslint from "typescript-eslint";
8
+ import js from "@eslint/js";
9
+ var index_default = defineConfig([
10
+ globalIgnores([
11
+ "node_modules",
12
+ "dist",
13
+ "build",
14
+ "coverage",
15
+ ".next",
16
+ "next.config.js"
17
+ ]),
18
+ {
19
+ files: ["**/*.{js,ts,jsx,tsx}"],
20
+ plugins: { js },
21
+ extends: ["js/recommended"],
22
+ rules: {
23
+ "no-console": ["error", { allow: ["error", "warn"] }]
24
+ }
25
+ },
26
+ {
27
+ files: ["**/*.{js,ts,jsx,tsx}"],
28
+ languageOptions: { globals: globals.browser }
29
+ },
30
+ {
31
+ plugins: {
32
+ "react-hooks": reactHooks
33
+ },
34
+ rules: {
35
+ "react-hooks/rules-of-hooks": "error",
36
+ // Enforce Rules of Hooks
37
+ "react-hooks/exhaustive-deps": "warn"
38
+ // Enforce exhaustive deps in effects
39
+ }
40
+ },
41
+ {
42
+ files: ["**/*.{ts,tsx}"],
43
+ plugins: { typescriptEslint },
44
+ extends: ["typescriptEslint/recommended"],
45
+ rules: {
46
+ "@typescript-eslint/ban-ts-comment": "warn"
47
+ }
48
+ },
49
+ {
50
+ plugins: {
51
+ react
52
+ },
53
+ rules: {
54
+ "react/react-in-jsx-scope": "error",
55
+ "react/jsx-uses-react": "error"
56
+ }
57
+ },
58
+ prettier
59
+ ]);
60
+ export {
61
+ index_default as default
62
+ };
package/index.js CHANGED
@@ -1,21 +1,58 @@
1
- module.exports = {
2
- extends: [
3
- 'plugin:@typescript-eslint/eslint-plugin/recommended',
4
- 'next',
5
- 'next/core-web-vitals',
6
- 'prettier',
7
- ],
8
- rules: {
9
- '@next/next/no-html-link-for-pages': 'off',
10
- '@typescript-eslint/ban-ts-comment': 'warn',
11
- '@typescript-eslint/no-explicit-any': 'error',
12
- 'no-console': ['error', { allow: ['error', 'warn'] }],
13
- 'react/react-in-jsx-scope': 2,
14
- 'react/jsx-uses-react': 2,
1
+ import prettier from 'eslint-config-prettier';
2
+ import react from 'eslint-plugin-react';
3
+ import reactHooks from 'eslint-plugin-react-hooks';
4
+ import { defineConfig, globalIgnores } from 'eslint/config';
5
+ import globals from 'globals';
6
+ import typescriptEslint from 'typescript-eslint';
7
+
8
+ import js from '@eslint/js';
9
+
10
+ export default defineConfig([
11
+ globalIgnores([
12
+ 'node_modules',
13
+ 'dist',
14
+ 'build',
15
+ 'coverage',
16
+ '.next',
17
+ 'next.config.js',
18
+ ]),
19
+ {
20
+ files: ['**/*.{js,ts,jsx,tsx}'],
21
+ plugins: { js },
22
+ extends: ['js/recommended'],
23
+ rules: {
24
+ 'no-console': ['error', { allow: ['error', 'warn'] }],
25
+ },
26
+ },
27
+ {
28
+ files: ['**/*.{js,ts,jsx,tsx}'],
29
+ languageOptions: { globals: globals.browser },
30
+ },
31
+ {
32
+ plugins: {
33
+ 'react-hooks': reactHooks,
34
+ },
35
+ rules: {
36
+ 'react-hooks/rules-of-hooks': 'error', // Enforce Rules of Hooks
37
+ 'react-hooks/exhaustive-deps': 'warn', // Enforce exhaustive deps in effects
38
+ },
39
+ },
40
+ {
41
+ files: ['**/*.{ts,tsx}'],
42
+ plugins: { typescriptEslint },
43
+ extends: ['typescriptEslint/recommended'],
44
+ rules: {
45
+ '@typescript-eslint/ban-ts-comment': 'warn',
46
+ },
15
47
  },
16
- parserOptions: {
17
- babelOptions: {
18
- presets: [require.resolve('next/babel')],
48
+ {
49
+ plugins: {
50
+ react,
51
+ },
52
+ rules: {
53
+ 'react/react-in-jsx-scope': 'error',
54
+ 'react/jsx-uses-react': 'error',
19
55
  },
20
56
  },
21
- };
57
+ prettier,
58
+ ]);
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/eslint-config-custom",
3
- "version": "1.3.1",
3
+ "version": "2.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Contains the eslint configuration used in the Workflow orchestrator frontend projects",
6
+ "main": "index.js",
7
+ "type": "module",
6
8
  "author": {
7
9
  "name": "Workflow Orchestrator Programme",
8
10
  "email": "workfloworchestrator.board@commonsconservancy.org",
@@ -10,7 +12,7 @@
10
12
  },
11
13
  "repository": {
12
14
  "type": "git",
13
- "url": "https://github.com/workfloworchestrator/orchestrator-ui-library.git"
15
+ "url": "git+https://github.com/workfloworchestrator/orchestrator-ui-library.git"
14
16
  },
15
17
  "homepage": "https://www.workfloworchestrator.org",
16
18
  "keywords": [
@@ -24,15 +26,18 @@
24
26
  "dev": "npm run build -- --watch"
25
27
  },
26
28
  "dependencies": {
27
- "@trivago/prettier-plugin-sort-imports": "^4.3.0",
28
- "@typescript-eslint/eslint-plugin": "^8.12.2",
29
- "eslint": "^8.57.0",
29
+ "@eslint/js": "^9.25.1",
30
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
31
+ "eslint": "^9.25.1",
30
32
  "eslint-config-next": "^15.0.1",
31
- "eslint-config-prettier": "^9.1.0",
32
- "eslint-plugin-react": "^7.37.2",
33
- "prettier": "^3.2.5"
33
+ "eslint-config-prettier": "^10.1.2",
34
+ "eslint-plugin-react": "^7.37.5",
35
+ "eslint-plugin-react-hooks": "^5.2.0",
36
+ "globals": "^16.0.0",
37
+ "typescript-eslint": "^8.31.0"
34
38
  },
35
39
  "publishConfig": {
36
- "access": "public"
40
+ "access": "public",
41
+ "provenance": true
37
42
  }
38
43
  }
package/dist/index.mjs DELETED
@@ -1,38 +0,0 @@
1
- var __getOwnPropNames = Object.getOwnPropertyNames;
2
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
- }) : x)(function(x) {
5
- if (typeof require !== "undefined") return require.apply(this, arguments);
6
- throw Error('Dynamic require of "' + x + '" is not supported');
7
- });
8
- var __commonJS = (cb, mod) => function __require2() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
-
12
- // index.js
13
- var require_eslint_config_custom = __commonJS({
14
- "index.js"(exports, module) {
15
- module.exports = {
16
- extends: [
17
- "plugin:@typescript-eslint/eslint-plugin/recommended",
18
- "next",
19
- "next/core-web-vitals",
20
- "prettier"
21
- ],
22
- rules: {
23
- "@next/next/no-html-link-for-pages": "off",
24
- "@typescript-eslint/ban-ts-comment": "warn",
25
- "@typescript-eslint/no-explicit-any": "error",
26
- "no-console": ["error", { allow: ["error", "warn"] }],
27
- "react/react-in-jsx-scope": 2,
28
- "react/jsx-uses-react": 2
29
- },
30
- parserOptions: {
31
- babelOptions: {
32
- presets: [__require.resolve("next/babel")]
33
- }
34
- }
35
- };
36
- }
37
- });
38
- export default require_eslint_config_custom();