@widergy/eslint-config 1.0.6 → 1.1.1

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,4 +1,4 @@
1
- version: 2
1
+ version: 2.1
2
2
 
3
3
  aliases:
4
4
  - &widergy-context
@@ -17,14 +17,46 @@ jobs:
17
17
  - run: yarn install
18
18
  - run: npx semantic-release
19
19
 
20
+ publish:
21
+ docker:
22
+ - image: cimg/node:22.18.0
23
+ steps:
24
+ - checkout
25
+ - run:
26
+ name: Install and configure AWS CLI
27
+ command: yarn aws-configure
28
+ - run:
29
+ name: Publish to CodeArtifact
30
+ command: |
31
+ CODEARTIFACT_TOKEN=$(AWS_ACCESS_KEY_ID=$WIDERGYAPP_AWS_ACCESS_KEY_ID \
32
+ AWS_SECRET_ACCESS_KEY=$WIDERGYAPP_AWS_SECRET_ACCESS_KEY \
33
+ aws codeartifact get-authorization-token \
34
+ --domain $CODEARTIFACT_DOMAIN \
35
+ --domain-owner $CODEARTIFACT_DOMAIN_OWNER \
36
+ --region us-east-1 \
37
+ --query authorizationToken \
38
+ --output text)
39
+ CODEARTIFACT_HOST="${CODEARTIFACT_URL#https://}"
40
+ printf "registry=%s/npm/npm/\n//%s/npm/npm/:_authToken=%s\n" \
41
+ "$CODEARTIFACT_URL" "$CODEARTIFACT_HOST" "$CODEARTIFACT_TOKEN" \
42
+ > /tmp/codeartifact.npmrc
43
+ npm publish --userconfig /tmp/codeartifact.npmrc
20
44
 
21
45
  workflows:
22
- version: 2
23
- test_and_release:
46
+ release:
24
47
  jobs:
25
48
  - release:
26
49
  <<: *widergy-context
27
50
  filters:
28
51
  branches:
29
- only:
30
- - master
52
+ only: master
53
+
54
+ publish:
55
+ jobs:
56
+ - publish:
57
+ <<: *widergy-context
58
+ filters:
59
+ tags:
60
+ only: /^v.*/
61
+ branches:
62
+ ignore: /.*/
package/CHANGELOG.md CHANGED
@@ -1,30 +1,43 @@
1
- ## [1.0.6](https://github.com/widergy/eslint-config/compare/v1.0.5...v1.0.6) (2026-04-16)
1
+ ## [1.1.1](https://github.com/widergy/eslint-config/compare/v1.1.0...v1.1.1) (2026-09-03)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * test org deploy ([ca146b3](https://github.com/widergy/eslint-config/commit/ca146b36f9731fd7bad9a7c933ad251051496644))
6
+ * publish on master ([2ed7be4](https://github.com/widergy/eslint-config/commit/2ed7be44242d101dd4fa4c4a585bd2d8a7f88f0d))
7
7
 
8
- ## [1.0.5](https://github.com/widergy/eslint-config/compare/v1.0.4...v1.0.5) (2026-02-12)
8
+ # [1.1.0](https://github.com/widergy/eslint-config/compare/v1.0.6...v1.1.0) (2026-08-25)
9
9
 
10
+ ### Novedades y Mejoras
10
11
 
11
- ### Bug Fixes
12
+ * Mejoras internas de la plataforma [#15](https://github.com/widergy/eslint-config/pull/15) [`353f00b`](https://github.com/widergy/eslint-config/commit/353f00b) [`340f4eb`](https://github.com/widergy/eslint-config/commit/340f4eb) [DEV-794](https://widergy.atlassian.net/browse/DEV-794)
12
13
 
13
- * [DEV-766] remove typeaware rules ([#14](https://github.com/widergy/eslint-config/issues/14)) ([7fa3785](https://github.com/widergy/eslint-config/commit/7fa3785b3c8475b6a7462d3d95bcc3380ba93c3e))
14
+ ### Correcciones
14
15
 
15
- ## [1.0.4](https://github.com/widergy/eslint-config/compare/v1.0.3...v1.0.4) (2026-02-11)
16
+ * Se actualizó la documentación para reflejar el uso correcto de los comandos de análisis de código [#16](https://github.com/widergy/eslint-config/pull/16) [DEV-999](https://widergy.atlassian.net/browse/DEV-999)
16
17
 
18
+ ## [1.0.6](https://github.com/widergy/eslint-config/compare/v1.0.5...v1.0.6) (2026-04-16)
17
19
 
18
- ### Bug Fixes
20
+ ### Novedades y Mejoras
19
21
 
20
- * [DEV-766] tsconfig ([#13](https://github.com/widergy/eslint-config/issues/13)) ([29705cd](https://github.com/widergy/eslint-config/commit/29705cd0476b01fb6b043054d9392c5f32397dbd))
22
+ * Mejoras internas de la plataforma [`489b124`](https://github.com/widergy/eslint-config/commit/489b124) [`ca146b3`](https://github.com/widergy/eslint-config/commit/ca146b3)
21
23
 
22
- ## [1.0.3](https://github.com/widergy/eslint-config/compare/v1.0.2...v1.0.3) (2026-02-10)
24
+ ## [1.0.5](https://github.com/widergy/eslint-config/compare/v1.0.4...v1.0.5) (2026-02-12)
23
25
 
26
+ ### Correcciones
24
27
 
25
- ### Bug Fixes
28
+ * Se corrigieron problemas en la configuración de análisis de código que podían generar errores inesperados durante el desarrollo de proyectos JavaScript, React y React Native. [#14](https://github.com/widergy/eslint-config/pull/14) [DEV-766](https://widergy.atlassian.net/browse/DEV-766)
29
+
30
+ ## [1.0.4](https://github.com/widergy/eslint-config/compare/v1.0.3...v1.0.4) (2026-02-11)
31
+
32
+ ### Correcciones
33
+
34
+ * Mejoras internas de la plataforma [#13](https://github.com/widergy/eslint-config/pull/13) [DEV-766](https://widergy.atlassian.net/browse/DEV-766)
35
+
36
+ ## [1.0.3](https://github.com/widergy/eslint-config/compare/v1.0.2...v1.0.3) (2026-02-10)
37
+
38
+ ### Novedades y Mejoras
26
39
 
27
- * [DEV-766] forbid-prop-types and readme docs ([#12](https://github.com/widergy/eslint-config/issues/12)) ([1da5cfd](https://github.com/widergy/eslint-config/commit/1da5cfd574d4df59d6453b2637c200965ced5636))
40
+ * Mejoras internas de la plataforma [#12](https://github.com/widergy/eslint-config/pull/12) [DEV-766](https://widergy.atlassian.net/browse/DEV-766)
28
41
 
29
42
  ## [1.0.2](https://github.com/widergy/eslint-config/compare/v1.0.1...v1.0.2) (2025-12-18)
30
43
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @widergy/eslint-config
1
+ # @widergy/eslint-config
2
2
 
3
3
  Widergy's shared ESLint configuration, supporting JavaScript, TypeScript, React, and React Native.
4
4
 
@@ -31,7 +31,7 @@ To handle retrocompatibility with previous errors and avoid blocking the migrati
31
31
 
32
32
  ```json
33
33
  "scripts": {
34
- "lint-suppress": "eslint src --cache --suppress-all"
34
+ "lint-suppress": "eslint src --suppress-all"
35
35
  }
36
36
  ```
37
37
 
@@ -40,21 +40,93 @@ To handle retrocompatibility with previous errors and avoid blocking the migrati
40
40
  - **Do not run this daily**. Only use it when you change rules and want to ignore new legacy errors.
41
41
 
42
42
  2. **Update `lint` script**:
43
- Modify your `lint` script to use the cache and prune unused suppressions:
43
+ Modify your `lint` script to prune unused suppressions:
44
44
 
45
45
  ```json
46
46
  "scripts": {
47
- "lint": "eslint src --cache --prune-suppressions"
47
+ "lint": "eslint src --prune-suppressions"
48
48
  }
49
49
  ```
50
50
 
51
- - `--cache`: Speeds up future linting processes. **Add `.eslintcache` to your `.gitignore`**.
52
51
  - `--prune-suppressions`: Automatically removes suppressions for rules that are no longer violated.
53
52
 
54
53
  3. **Git Hooks**:
55
54
  - It is recommended to run the linting process in the **`prepush`** hook of your repository.
56
55
  - If you are currently using `precommit`, consider moving it to `prepush` to avoid slowing down commits.
57
56
 
57
+ ## CircleCI
58
+
59
+ The linter runs on CircleCI as a dedicated `pr-checks` pipeline, separate from the main deploy pipeline. It is triggered on demand by commenting `run-ci` on a pull request — no CI minutes are spent on every push.
60
+
61
+ ### Lint job (`pr-checks.yml`)
62
+
63
+ Create `.circleci/pr-checks.yml`. Replace `<NODE_VERSION>` with the Node.js version your project uses (e.g. `20.19`). If your project requires syncing gitignored assets or loading config files before linting (e.g. via `yarn sync` or `yarn loadConfig`), add those steps before `Run lint`.
64
+
65
+ ```yaml
66
+ version: 2.1
67
+
68
+ commands:
69
+ cache-yarn:
70
+ steps:
71
+ - restore_cache:
72
+ keys:
73
+ - yarn-deps-{{ checksum "yarn.lock" }}
74
+ - run: yarn install --frozen-lockfile
75
+ - save_cache:
76
+ paths:
77
+ - ~/.cache/yarn
78
+ key: yarn-deps-{{ checksum "yarn.lock" }}
79
+
80
+ jobs:
81
+ lint:
82
+ docker:
83
+ - image: cimg/node:<NODE_VERSION>
84
+ steps:
85
+ - checkout
86
+ - cache-yarn
87
+ - run:
88
+ name: Run lint
89
+ command: yarn lint
90
+
91
+ workflows:
92
+ pr-checks:
93
+ jobs:
94
+ - lint
95
+ ```
96
+
97
+ ### CircleCI pipeline setup
98
+
99
+ Once `pr-checks.yml` is merged to the default branch, configure a new pipeline in CircleCI using the GitHub App integration:
100
+
101
+ 1. In the [CircleCI app](https://app.circleci.com), open the project and go to **Project Settings → Project Setup**.
102
+ 2. Click **Add GitHub Pipeline**.
103
+ 3. Set **Config filepath** to `.circleci/pr-checks.yml` (leave Config source and Checkout source as the repo default).
104
+ 4. Under **Trigger on...**, click **GitHub trigger +** and configure:
105
+ - **Trigger event**: PR comment
106
+ - **Comment text**: `run-ci` (exact match)
107
+ 5. Save.
108
+
109
+ > [!NOTE]
110
+ > This creates a pipeline completely independent from the main `config.yml` deploy pipeline. It only runs when the exact comment `run-ci` is posted on a PR. The trigger uses CircleCI's native GitHub App integration — no additional GitHub Actions workflow is needed.
111
+
112
+ ## Repositories with CircleCI lint configured
113
+
114
+ The following repositories have `.circleci/pr-checks.yml` and the CircleCI pipeline already set up. **Update this list when the setup is completed in a new repository.**
115
+
116
+ | Repository | Type |
117
+ |---|---|
118
+ | [AgentGO-Chat-Web](https://github.com/widergy/AgentGO-Chat-Web) | App |
119
+ | [AgentGO-Backoffice-Web](https://github.com/widergy/AgentGO-Backoffice-Web) | App |
120
+ | [Customer-Hub-Web](https://github.com/widergy/Customer-Hub-Web) | App |
121
+ | [UtilityGO-Office-Mobile](https://github.com/widergy/UtilityGO-Office-Mobile) | App |
122
+ | [UtilityGO-Office-Web](https://github.com/widergy/UtilityGO-Office-Web) | App |
123
+ | [UtilityGO-Totem-Web](https://github.com/widergy/UtilityGO-Totem-Web) | App |
124
+ | [Energy-UI](https://github.com/widergy/Energy-UI) | Library |
125
+ | [Energy-UI-Mobile](https://github.com/widergy/Energy-UI-Mobile) | Library |
126
+ | [UtilityGO-Smart-Bill-Mobile](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile) | Library |
127
+ | [UtilityGO-Smart-Bill-Web](https://github.com/widergy/UtilityGO-Smart-Bill-Web) | Library |
128
+ | [web-utils](https://github.com/widergy/web-utils) | Library |
129
+
58
130
  ## Usage
59
131
 
60
132
  Import the specific configuration based on your project type in your `eslint.config.js` file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/eslint-config",
3
- "version": "1.0.6",
3
+ "version": "1.1.1",
4
4
  "description": "Widergy ESLint configuration",
5
5
  "type": "module",
6
6
  "author": "widergy",
@@ -21,7 +21,8 @@
21
21
  "widergy"
22
22
  ],
23
23
  "scripts": {
24
- "lint": "eslint ."
24
+ "lint": "eslint .",
25
+ "aws-configure": "bash scripts/aws-configure.sh"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "@babel/core": "^7.22.10",
@@ -0,0 +1,6 @@
1
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
2
+ unzip awscliv2.zip
3
+ sudo ./aws/install
4
+ aws configure set aws_access_key_id $WIDERGYAPP_AWS_ACCESS_KEY_ID
5
+ aws configure set aws_secret_access_key $WIDERGYAPP_AWS_SECRET_ACCESS_KEY
6
+ aws configure set default.region us-east-1