@open-turo/eslint-config-react 3.0.0 → 5.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,20 +1,28 @@
1
1
  name: CI
2
2
 
3
3
  on:
4
- push:
4
+ workflow_dispatch:
5
+ pull_request:
5
6
 
6
7
  jobs:
7
8
  lint:
8
9
  name: Lint
9
10
  runs-on: ubuntu-latest
10
11
  steps:
11
- - name: Checkout
12
- uses: actions/checkout@v3
13
- with:
14
- fetch-depth: 0
15
12
  - name: Download actionlint
16
13
  run: |
17
14
  mkdir -p "$HOME/bin"
18
15
  bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/bin"
19
16
  echo "${HOME}/bin" >> "$GITHUB_PATH"
20
- - uses: open-turo/action-pre-commit@v1
17
+ - uses: open-turo/actions-node/lint@v5
18
+ with:
19
+ github-token: ${{ secrets.GITHUB_TOKEN }}
20
+ npm-token: ${{ secrets.OPEN_TURO_NPM_TOKEN }}
21
+ test:
22
+ name: Test
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: open-turo/actions-node/test@v5
26
+ with:
27
+ github-token: ${{ secrets.GITHUB_TOKEN }}
28
+ test-flags: --coverage
@@ -1,26 +1,16 @@
1
1
  name: Release
2
+
2
3
  on:
3
4
  push:
4
- branches:
5
- - main
6
- - next
5
+ branches: [main, "[0-9]+.x"]
6
+ workflow_dispatch:
7
7
 
8
8
  jobs:
9
9
  release:
10
+ name: Release
10
11
  runs-on: ubuntu-latest
11
12
  steps:
12
- - name: Checkout
13
- uses: actions/checkout@v3
13
+ - uses: open-turo/actions-node/release@v5
14
14
  with:
15
- fetch-depth: 0
16
- persist-credentials: false
17
- - name: Setup tools
18
- uses: open-turo/action-setup-tools@v1
19
- - name: Install dependencies
20
- run: npm ci
21
- - name: Semantic release
22
- id: release
23
- run: npm run release
24
- env:
25
- GITHUB_TOKEN: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
26
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15
+ github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
16
+ npm-token: ${{ secrets.OPEN_TURO_NPM_TOKEN }}
@@ -21,4 +21,3 @@ jobs:
21
21
  - uses: open-turo/action-renovate@v1
22
22
  with:
23
23
  github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
24
- log-level: debug
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- lts/gallium
1
+ 20.10.0
@@ -1,23 +1,23 @@
1
1
  repos:
2
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v4.4.0
3
+ rev: v4.5.0
4
4
  hooks:
5
5
  - id: check-json
6
6
  - id: check-yaml
7
7
  - id: end-of-file-fixer
8
8
  - id: trailing-whitespace
9
9
  - repo: https://github.com/pre-commit/mirrors-prettier
10
- rev: v2.7.1
10
+ rev: v3.1.0
11
11
  hooks:
12
12
  - id: prettier
13
13
  stages: [commit]
14
14
  - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
15
- rev: v9.5.0
15
+ rev: v9.10.0
16
16
  hooks:
17
17
  - id: commitlint
18
18
  stages: [commit-msg]
19
19
  additional_dependencies: ["@open-turo/commitlint-config-conventional"]
20
20
  - repo: https://github.com/rhysd/actionlint
21
- rev: v1.6.25
21
+ rev: v1.6.26
22
22
  hooks:
23
23
  - id: actionlint
@@ -0,0 +1,17 @@
1
+ # Breaking changes in v5
2
+
3
+ eslint-plugin-unicorn min version is now 49.0.0
4
+
5
+ eslint-plugin-sonarjs min version is now 0.23.0
6
+
7
+ min node version is now 18
8
+
9
+ ## Upgrade instructions
10
+
11
+ Reinstall the peer dependencies in the project:
12
+
13
+ ```shell
14
+ npx install-peerdeps --dev @open-turo/eslint-config
15
+ ```
16
+
17
+ And fix all lint errors.
package/package.json CHANGED
@@ -2,63 +2,66 @@
2
2
  "author": "Turo engineering",
3
3
  "description": "Turo eslint configuration for react",
4
4
  "devDependencies": {
5
- "@commitlint/cli": "17.6.6",
5
+ "@commitlint/cli": "18.4.3",
6
6
  "@open-turo/commitlint-config-conventional": "1.1.0",
7
- "@open-turo/eslint-config-typescript": "4.0.0",
8
- "@open-turo/semantic-release-config": "2.0.1",
9
- "@typescript-eslint/eslint-plugin": "5.62.0",
10
- "@typescript-eslint/parser": "5.62.0",
11
- "eslint": "8.45.0",
12
- "eslint-config-prettier": "8.8.0",
13
- "eslint-import-resolver-typescript": "3.5.5",
14
- "eslint-plugin-import": "2.27.5",
15
- "eslint-plugin-jest": "27.2.3",
7
+ "@open-turo/eslint-config-typescript": "7.0.0",
8
+ "@typescript-eslint/eslint-plugin": "6.14.0",
9
+ "@typescript-eslint/parser": "6.14.0",
10
+ "eslint": "8.55.0",
11
+ "eslint-config-prettier": "9.1.0",
12
+ "eslint-import-resolver-typescript": "3.6.1",
13
+ "eslint-plugin-import": "2.29.1",
14
+ "eslint-plugin-jest": "27.6.0",
16
15
  "eslint-plugin-json": "3.1.0",
17
- "eslint-plugin-jsx-a11y": "6.7.1",
16
+ "eslint-plugin-jsx-a11y": "6.8.0",
18
17
  "eslint-plugin-node": "11.1.0",
19
- "eslint-plugin-prettier": "5.0.0",
20
- "eslint-plugin-react": "7.32.2",
18
+ "eslint-plugin-prettier": "5.0.1",
19
+ "eslint-plugin-react": "7.33.2",
21
20
  "eslint-plugin-react-hooks": "4.6.0",
22
21
  "eslint-plugin-simple-import-sort": "10.0.0",
23
- "eslint-plugin-sonarjs": "^0.19.0",
22
+ "eslint-plugin-sonarjs": "0.23.0",
24
23
  "eslint-plugin-sort-destructure-keys": "1.5.0",
25
- "eslint-plugin-typescript-sort-keys": "2.3.0",
26
- "prettier": "3.0.0",
27
- "semantic-release": "21.0.7"
24
+ "eslint-plugin-typescript-sort-keys": "3.1.0",
25
+ "eslint-plugin-unicorn": "49.0.0",
26
+ "prettier": "3.1.1"
28
27
  },
29
28
  "engines": {
30
- "node": ">= 14"
29
+ "node": ">= 18"
31
30
  },
32
31
  "homepage": "https://github.com/open-turo/eslint-config-react#readme",
33
32
  "license": "MIT",
34
33
  "main": "index.js",
35
34
  "scripts": {
36
- "release": "semantic-release"
35
+ "build": "echo noop",
36
+ "lint": "echo noop",
37
+ "test": "echo noop"
37
38
  },
38
39
  "name": "@open-turo/eslint-config-react",
39
40
  "peerDependencies": {
40
- "@open-turo/eslint-config-typescript": "^4.0.0",
41
- "@typescript-eslint/eslint-plugin": "^5.46.0",
42
- "@typescript-eslint/parser": "^5.46.0",
41
+ "@open-turo/eslint-config-typescript": "^7.0.0",
42
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
43
+ "@typescript-eslint/parser": "^6.0.0",
43
44
  "eslint": ">=8.18.0",
44
- "eslint-config-prettier": "^8.5.0",
45
+ "eslint-config-prettier": "^9.0.0",
45
46
  "eslint-import-resolver-typescript": "^3.5.2",
46
47
  "eslint-plugin-import": "^2.26.0",
47
48
  "eslint-plugin-jest": "^27.1.6",
49
+ "eslint-plugin-json": "^3.1.0",
48
50
  "eslint-plugin-jsx-a11y": "^6.5.1",
49
51
  "eslint-plugin-node": "^11.1.0",
50
52
  "eslint-plugin-prettier": "^5.0.0",
51
53
  "eslint-plugin-react": "^7.29.4",
52
54
  "eslint-plugin-react-hooks": "^4.4.0",
53
55
  "eslint-plugin-simple-import-sort": "^10.0.0",
54
- "eslint-plugin-sonarjs": "^0.19.0",
56
+ "eslint-plugin-sonarjs": "^0.23.0",
55
57
  "eslint-plugin-sort-destructure-keys": "^1.4.0",
56
- "eslint-plugin-typescript-sort-keys": "^2.1.0",
58
+ "eslint-plugin-typescript-sort-keys": "^3.0.0",
59
+ "eslint-plugin-unicorn": "^49.0.0",
57
60
  "prettier": "^3.0.0"
58
61
  },
59
62
  "publishConfig": {
60
63
  "access": "public"
61
64
  },
62
65
  "repository": "https://github.com/open-turo/eslint-config-react",
63
- "version": "3.0.0"
66
+ "version": "5.0.0"
64
67
  }
package/.node-version DELETED
@@ -1 +0,0 @@
1
- 18.16.1