Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit c4b08c4

Browse files
committed
fix: add missing/fix incorrect deps
close #144 close #145
1 parent bbf6a8f commit c4b08c4

File tree

10 files changed

+14858
-13288
lines changed

10 files changed

+14858
-13288
lines changed

.codesandbox/ci.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"node": "18",
2+
"node": "20",
33
"installCommand": "codesandbox:install",
44
"packages": [
55
"eslint-plugin-sonar"

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
- push
55
- pull_request
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
ci:
913
name: Lint and Test with Node.js ${{ matrix.node }}
@@ -12,21 +16,25 @@ jobs:
1216
node:
1317
- 18
1418
- 20
19+
# - 22
1520
runs-on: ubuntu-latest
1621
steps:
1722
- name: Checkout Repo
1823
uses: actions/checkout@v4
1924
with:
2025
submodules: true
2126

27+
- name: Enable Corepack
28+
run: corepack enable
29+
2230
- name: Setup Node.js ${{ matrix.node }}
2331
uses: actions/setup-node@v4
2432
with:
2533
node-version: ${{ matrix.node }}
2634
cache: yarn
2735

2836
- name: Install Dependencies
29-
run: yarn --frozen-lockfile --ignore-engines
37+
run: yarn --immutable
3038

3139
- name: Build, Lint and Test
3240
run: |

.github/workflows/codeql.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
schedule:
1111
- cron: '2 20 * * 4'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
analyze:
1519
name: Analyze

.github/workflows/release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
fetch-depth: 0
1818
submodules: true
1919

20-
- name: Setup Node.js LTS
20+
- name: Enable Corepack
21+
run: corepack enable
22+
23+
- name: Setup Node.js 20
2124
uses: actions/setup-node@v4
2225
with:
23-
node-version: lts/*
26+
node-version: 20
2427
cache: yarn
2528

2629
- name: Install Dependencies
27-
run: yarn --frozen-lockfile
30+
run: yarn --immutable
2831

2932
# required for committing before releasing
3033
- name: Build
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};

.yarnrc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
5+
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
6+
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"

eslint-plugin-sonar/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"dependencies": {
4040
"@babel/eslint-parser": "^7.24.5",
4141
"@eslint-community/regexpp": "^4.10.0",
42-
"@typescript-eslint/eslint-plugin": "^6.16.0",
42+
"@typescript-eslint/eslint-plugin": "^7.8.0",
43+
"@typescript-eslint/utils": "^7.8.0",
4344
"builtin-modules": "^3.3.0",
4445
"bytes": "^3.1.2",
4546
"eslint-plugin-jsx-a11y": "^6.8.0",

package.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,45 @@
1010
"SonarJS",
1111
"eslint-plugin-sonar"
1212
],
13-
"packageManager": "yarn@1.22.21",
13+
"packageManager": "yarn@4.7.0",
1414
"scripts": {
1515
"build": "run-s build:lib build:readme",
1616
"build:lib": "rollup -c",
1717
"build:readme": "node scripts/readme.js",
1818
"clean": "rimraf eslint-plugin-sonar/lib",
1919
"codesandbox:install": "git submodule update --init && yarn",
20-
"lint": "run-p lint:*",
20+
"lint": "run-p 'lint:*'",
2121
"lint:es": "eslint . --cache --max-warnings 10 -f friendly",
2222
"lint:tsc": "tsc --noEmit",
23-
"prepare": "patch-package && simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
23+
"prepare": "patch-package && simple-git-hooks || exit 0",
2424
"release": "node scripts/private.js && changeset publish",
2525
"test": "node eslint-plugin-sonar",
2626
"typecov": "type-coverage"
2727
},
2828
"devDependencies": {
29-
"@1stg/common-config": "^10.0.0",
30-
"@changesets/changelog-github": "^0.5.0",
31-
"@changesets/cli": "^2.27.1",
29+
"@1stg/commitlint-config": "^4.0.0",
30+
"@1stg/lint-staged": "^4.0.0",
31+
"@1stg/remark-preset": "^2.0.0",
32+
"@1stg/simple-git-hooks": "^0.2.4",
33+
"@changesets/changelog-github": "^0.5.1",
34+
"@changesets/cli": "^2.28.1",
35+
"@commitlint/cli": "^18.6.1",
3236
"@rollup/plugin-alias": "^5.1.0",
3337
"@rollup/plugin-json": "^6.1.0",
38+
"@unts/patch-package": "^8.1.1",
39+
"eslint": "^8.57.0",
3440
"eslint-define-config": "^2.1.0",
41+
"eslint-formatter-friendly": "^7.0.0",
3542
"globals": "^15.2.0",
43+
"lint-staged": "^15.4.3",
3644
"minimatch": "^9.0.3",
37-
"patch-package": "^8.0.0",
45+
"npm-run-all2": "^7.0.2",
3846
"rollup": "^4.17.2",
3947
"rollup-plugin-ts": "^3.4.5",
48+
"simple-git-hooks": "^2.11.1",
49+
"svelte": "^5.22.5",
4050
"type-coverage": "^2.27.1",
41-
"yarn-deduplicate": "^6.0.2"
51+
"typescript": "5.4.3"
4252
},
4353
"resolutions": {
4454
"@typescript-eslint/eslint-plugin": "^7.8.0",
@@ -48,7 +58,6 @@
4858
"@typescript-eslint/type-utils": "^7.8.0",
4959
"@typescript-eslint/utils": "^7.8.0",
5060
"eslint": "^8.57.0",
51-
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
5261
"eslint-plugin-sonar": "link:eslint-plugin-sonar",
5362
"eslint-plugin-sonarjs": "^1.0.3",
5463
"prettier": "^3.2.5",

patches/@1stg+eslint-config+8.0.0.patch

-13
This file was deleted.

0 commit comments

Comments
 (0)