@open-turo/eslint-config 2.0.1 → 4.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.
- package/.github/workflows/ci.yaml +8 -8
- package/.github/workflows/release.yaml +7 -16
- package/.nvmrc +1 -1
- package/.pre-commit-config.yaml +4 -4
- package/docs/breaking-changes/v4.md +15 -0
- package/pack/open-turo-eslint-config-4.0.0.tgz +0 -0
- package/package.json +18 -18
- package/pack/open-turo-eslint-config-2.0.1.tgz +0 -0
@@ -1,28 +1,28 @@
|
|
1
1
|
name: CI
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
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/
|
21
|
-
|
17
|
+
- uses: open-turo/actions-node/lint@v5
|
18
|
+
with:
|
19
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
20
|
+
npm-token: ${{ secrets.OPEN_TURO_NPM_TOKEN }}
|
22
21
|
test:
|
23
22
|
name: Test
|
24
23
|
runs-on: ubuntu-latest
|
25
24
|
steps:
|
26
|
-
- uses: open-turo/actions-node/test@
|
25
|
+
- uses: open-turo/actions-node/test@v5
|
27
26
|
with:
|
28
27
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
28
|
+
test-flags: --coverage
|
@@ -1,25 +1,16 @@
|
|
1
1
|
name: Release
|
2
|
+
|
2
3
|
on:
|
3
4
|
push:
|
4
|
-
branches:
|
5
|
-
|
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
|
-
-
|
13
|
-
uses: actions/checkout@v3
|
14
|
-
with:
|
15
|
-
fetch-depth: 0
|
16
|
-
persist-credentials: false
|
17
|
-
- name: Semantic release
|
18
|
-
id: release
|
19
|
-
uses: cycjimmy/semantic-release-action@v3
|
13
|
+
- uses: open-turo/actions-node/release@v5
|
20
14
|
with:
|
21
|
-
|
22
|
-
|
23
|
-
env:
|
24
|
-
GITHUB_TOKEN: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
|
25
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
15
|
+
github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
|
16
|
+
npm-token: ${{ secrets.OPEN_TURO_NPM_TOKEN }}
|
package/.nvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
lts/
|
1
|
+
lts/hydrogen
|
package/.pre-commit-config.yaml
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
repos:
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3
|
-
rev: v4.
|
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:
|
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.
|
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.
|
21
|
+
rev: v1.6.26
|
22
22
|
hooks:
|
23
23
|
- id: actionlint
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Breaking changes in v4
|
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
|
+
## Upgrade instructions
|
8
|
+
|
9
|
+
Reinstall the peer dependencies in the project:
|
10
|
+
|
11
|
+
```shell
|
12
|
+
npx install-peerdeps --dev @open-turo/eslint-config
|
13
|
+
```
|
14
|
+
|
15
|
+
And fix all lint errors.
|
Binary file
|
package/package.json
CHANGED
@@ -2,24 +2,22 @@
|
|
2
2
|
"author": "Turo engineering",
|
3
3
|
"description": "Eslint configuration for Turo",
|
4
4
|
"devDependencies": {
|
5
|
-
"@commitlint/cli": "
|
6
|
-
"@open-turo/commitlint-config-conventional": "1.0
|
7
|
-
"
|
8
|
-
"eslint": "8.35.0",
|
5
|
+
"@commitlint/cli": "18.4.3",
|
6
|
+
"@open-turo/commitlint-config-conventional": "1.1.0",
|
7
|
+
"eslint": "8.55.0",
|
9
8
|
"eslint-config-airbnb-base": "15.0.0",
|
10
|
-
"eslint-config-prettier": "
|
11
|
-
"eslint-plugin-import": "2.
|
12
|
-
"eslint-plugin-jest": "27.
|
9
|
+
"eslint-config-prettier": "9.1.0",
|
10
|
+
"eslint-plugin-import": "2.29.1",
|
11
|
+
"eslint-plugin-jest": "27.6.0",
|
13
12
|
"eslint-plugin-json": "3.1.0",
|
14
13
|
"eslint-plugin-node": "11.1.0",
|
15
|
-
"eslint-plugin-prettier": "
|
14
|
+
"eslint-plugin-prettier": "5.0.1",
|
16
15
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
17
|
-
"eslint-plugin-sonarjs": "0.
|
16
|
+
"eslint-plugin-sonarjs": "0.23.0",
|
18
17
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
19
|
-
"eslint-plugin-unicorn": "
|
20
|
-
"jest": "29.
|
21
|
-
"prettier": "
|
22
|
-
"semantic-release": "19.0.5"
|
18
|
+
"eslint-plugin-unicorn": "49.0.0",
|
19
|
+
"jest": "29.7.0",
|
20
|
+
"prettier": "3.1.1"
|
23
21
|
},
|
24
22
|
"engines": {
|
25
23
|
"node": ">= 16"
|
@@ -31,23 +29,25 @@
|
|
31
29
|
"peerDependencies": {
|
32
30
|
"eslint": "^8.10.0",
|
33
31
|
"eslint-config-airbnb-base": "^15.0.0",
|
34
|
-
"eslint-config-prettier": "^8.5.0",
|
32
|
+
"eslint-config-prettier": "^8.5.0 || ^9.0.0",
|
35
33
|
"eslint-plugin-import": "^2.25.4",
|
36
34
|
"eslint-plugin-jest": "^27.0.1",
|
37
35
|
"eslint-plugin-json": "^3.1.0",
|
38
36
|
"eslint-plugin-node": "^11.1.0",
|
39
|
-
"eslint-plugin-prettier": "^
|
37
|
+
"eslint-plugin-prettier": "^5.0.0",
|
40
38
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
41
|
-
"eslint-plugin-sonarjs": "^0.
|
39
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
42
40
|
"eslint-plugin-sort-destructure-keys": "^1.4.0",
|
43
|
-
"eslint-plugin-unicorn": "^
|
41
|
+
"eslint-plugin-unicorn": "^49.0.0"
|
44
42
|
},
|
45
43
|
"publishConfig": {
|
46
44
|
"access": "public"
|
47
45
|
},
|
48
46
|
"repository": "https://github.com/open-turo/eslint-config",
|
49
47
|
"scripts": {
|
48
|
+
"build": "echo noop",
|
49
|
+
"lint": "echo noop",
|
50
50
|
"test": "jest test.js"
|
51
51
|
},
|
52
|
-
"version": "
|
52
|
+
"version": "4.0.0"
|
53
53
|
}
|
Binary file
|