@open-turo/eslint-config-typescript 6.0.0 → 7.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 +14 -17
- package/.github/workflows/release.yaml +7 -17
- package/.pre-commit-config.yaml +4 -4
- package/docs/breaking-changes/v7.md +15 -0
- package/index.js +1 -1
- package/pack/open-turo-eslint-config-typescript-7.0.0.tgz +0 -0
- package/package.json +19 -19
- package/pack/open-turo-eslint-config-typescript-6.0.0.tgz +0 -0
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
5
6
|
|
|
6
7
|
jobs:
|
|
7
|
-
release-notes:
|
|
8
|
-
name: Release notes preview
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
if: github.ref != 'refs/heads/main'
|
|
11
|
-
steps:
|
|
12
|
-
- uses: open-turo/actions-release/release-notes-preview@v2
|
|
13
|
-
with:
|
|
14
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
15
|
-
env:
|
|
16
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
17
|
-
|
|
18
8
|
lint:
|
|
19
9
|
name: Lint
|
|
20
10
|
runs-on: ubuntu-latest
|
|
21
11
|
steps:
|
|
22
|
-
- name: Checkout
|
|
23
|
-
uses: actions/checkout@v3
|
|
24
|
-
with:
|
|
25
|
-
fetch-depth: 0
|
|
26
12
|
- name: Download actionlint
|
|
27
13
|
run: |
|
|
28
14
|
mkdir -p "$HOME/bin"
|
|
29
15
|
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/bin"
|
|
30
16
|
echo "${HOME}/bin" >> "$GITHUB_PATH"
|
|
31
|
-
- uses: open-turo/
|
|
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
|
-
|
|
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
|
|
13
|
+
- uses: open-turo/actions-node/release@v5
|
|
14
14
|
with:
|
|
15
|
-
|
|
16
|
-
|
|
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 }}
|
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: v3.0
|
|
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 v7
|
|
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.
|
package/index.js
CHANGED
|
@@ -56,7 +56,7 @@ module.exports = {
|
|
|
56
56
|
"import/no-default-export": "error",
|
|
57
57
|
"import/no-extraneous-dependencies": [
|
|
58
58
|
"error",
|
|
59
|
-
{ devDependencies: ["test
|
|
59
|
+
{ devDependencies: ["test/**"] },
|
|
60
60
|
],
|
|
61
61
|
"import/prefer-default-export": "off",
|
|
62
62
|
"jest/no-jest-import": "off",
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,25 +2,23 @@
|
|
|
2
2
|
"author": "Turo engineering",
|
|
3
3
|
"description": "Turo eslint configuration for typescript",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@commitlint/cli": "17.
|
|
5
|
+
"@commitlint/cli": "17.8.1",
|
|
6
6
|
"@open-turo/commitlint-config-conventional": "1.1.0",
|
|
7
|
-
"@
|
|
8
|
-
"@typescript-eslint/
|
|
9
|
-
"
|
|
10
|
-
"eslint": "
|
|
11
|
-
"eslint-
|
|
12
|
-
"eslint-import
|
|
13
|
-
"eslint-plugin-
|
|
14
|
-
"eslint-plugin-jest": "27.2.3",
|
|
7
|
+
"@typescript-eslint/eslint-plugin": "6.14.0",
|
|
8
|
+
"@typescript-eslint/parser": "6.14.0",
|
|
9
|
+
"eslint": "8.55.0",
|
|
10
|
+
"eslint-config-prettier": "9.1.0",
|
|
11
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
12
|
+
"eslint-plugin-import": "2.29.1",
|
|
13
|
+
"eslint-plugin-jest": "27.6.0",
|
|
15
14
|
"eslint-plugin-node": "11.1.0",
|
|
16
|
-
"eslint-plugin-prettier": "5.0.
|
|
15
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
17
16
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
18
|
-
"eslint-plugin-sonarjs": "0.
|
|
17
|
+
"eslint-plugin-sonarjs": "0.23.0",
|
|
19
18
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
|
20
|
-
"eslint-plugin-typescript-sort-keys": "3.
|
|
21
|
-
"eslint-plugin-unicorn": "
|
|
22
|
-
"prettier": "3.
|
|
23
|
-
"semantic-release": "21.1.1"
|
|
19
|
+
"eslint-plugin-typescript-sort-keys": "3.1.0",
|
|
20
|
+
"eslint-plugin-unicorn": "49.0.0",
|
|
21
|
+
"prettier": "3.1.1"
|
|
24
22
|
},
|
|
25
23
|
"engines": {
|
|
26
24
|
"node": ">= 14"
|
|
@@ -30,7 +28,9 @@
|
|
|
30
28
|
"main": "index.js",
|
|
31
29
|
"name": "@open-turo/eslint-config-typescript",
|
|
32
30
|
"scripts": {
|
|
33
|
-
"
|
|
31
|
+
"build": "echo noop",
|
|
32
|
+
"lint": "echo noop",
|
|
33
|
+
"test": "echo noop"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"eslint-plugin-node": "^11.1.0",
|
|
45
45
|
"eslint-plugin-prettier": "^5.0.0",
|
|
46
46
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
47
|
-
"eslint-plugin-sonarjs": "^0.
|
|
47
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
|
48
48
|
"eslint-plugin-sort-destructure-keys": "^1.4.0",
|
|
49
49
|
"eslint-plugin-typescript-sort-keys": "^3.0.0",
|
|
50
50
|
"prettier": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
53
|
+
"eslint-plugin-unicorn": "^49.0.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"repository": "https://github.com/open-turo/eslint-config-typescript",
|
|
59
|
-
"version": "
|
|
59
|
+
"version": "7.0.0"
|
|
60
60
|
}
|
|
Binary file
|