@open-turo/eslint-config-react 1.2.0 → 1.3.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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": [
3
+ "github>open-turo/renovate-config#v1",
4
+ "github>open-turo/renovate-config:npm#v1"
5
+ ]
6
+ }
@@ -0,0 +1,23 @@
1
+ name: Update dependencies
2
+ concurrency: update-dependencies
3
+
4
+ on:
5
+ schedule:
6
+ # Every day at midnight
7
+ - cron: "0 0 * * *"
8
+ workflow_dispatch:
9
+ issue_comment:
10
+ types:
11
+ - edited
12
+ pull_request:
13
+ types:
14
+ - edited
15
+
16
+ jobs:
17
+ update-dependencies:
18
+ runs-on: ubuntu-latest
19
+ name: Update dependencies
20
+ steps:
21
+ - uses: open-turo/action-renovate@v1
22
+ with:
23
+ github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
package/README.md CHANGED
@@ -3,6 +3,15 @@
3
3
  Turo eslint configuration for react. The config expects that Typescript is being used as it extends
4
4
  `eslint-config-typescript`.
5
5
 
6
+ [![Release](https://img.shields.io/github/v/release/open-turo/eslint-config-react)](https://github.com/open-turo/eslint-config-react/releases/)
7
+ [![Tests pass/fail](https://img.shields.io/github/actions/workflow/status/open-turo/eslint-config-react/ci.yaml)](https://github.com/open-turo/eslint-config-react/actions/)
8
+ [![License](https://img.shields.io/github/license/open-turo/eslint-config-react)](./LICENSE)
9
+ [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/dwyl/esta/issues)
10
+ ![CI](https://github.com/open-turo/eslint-config-react/actions/workflows/release.yaml/badge.svg)
11
+ [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
12
+ [![Conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.2-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
13
+ [![Join us!](https://img.shields.io/badge/Turo-Join%20us%21-593CFB.svg)](https://turo.com/jobs)
14
+
6
15
  ## Relevant notes
7
16
 
8
17
  The `eslint` configurations in this repo extend `@open-turo/eslint-config-typescript/legacy`; as it is the base TS
@@ -13,15 +22,6 @@ repository extend the default `@open-turo/eslint-config-typescript` config inste
13
22
  free to create a PR to add a new default that extends it, and rename the current configurations to `legacy` and
14
23
  `legacy-extended` respectively. We are not doing that for now to reduce maintenance burden, as it would be unused.
15
24
 
16
- [![Release](https://img.shields.io/github/v/release/open-turo/eslint-config-react)](https://github.com/open-turo/eslint-config-react/releases/)
17
- [![Tests pass/fail](https://img.shields.io/github/workflow/status/open-turo/eslint-config-react/CI)](https://github.com/open-turo/eslint-config-react/actions/)
18
- [![License](https://img.shields.io/github/license/open-turo/eslint-config-react)](./LICENSE)
19
- [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/dwyl/esta/issues)
20
- ![CI](https://github.com/open-turo/eslint-config-react/actions/workflows/release.yaml/badge.svg)
21
- [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
22
- [![Conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.2-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
23
- [![Join us!](https://img.shields.io/badge/Turo-Join%20us%21-593CFB.svg)](https://turo.com/jobs)
24
-
25
25
  ## Usage
26
26
 
27
27
  Install the package and all of its peer dependencies:
@@ -44,6 +44,8 @@ has been integrated into the default preset.
44
44
 
45
45
  ## Development
46
46
 
47
+ ### Pre-commit
48
+
47
49
  Install [pre-commit](https://pre-commit.com/) and the commit hooks:
48
50
 
49
51
  ```shell
@@ -51,6 +53,11 @@ pre-commit install
51
53
  pre-commit install --hook-type commit-msg
52
54
  ```
53
55
 
56
+ ### Keeping peerDependencies up-to-date
57
+
58
+ Transitive `peerDependencies` should be added, and kept up to date. A useful tool for that task is
59
+ `npx check-peer-dependencies`, which shows us our missing (or outdated) peerDependencies.
60
+
54
61
  ## Get Help
55
62
 
56
63
  Please review Issues, post new Issues against this repository as needed.
package/package.json CHANGED
@@ -4,14 +4,25 @@
4
4
  "devDependencies": {
5
5
  "@commitlint/cli": "^17.0.0",
6
6
  "@open-turo/commitlint-config-conventional": "^1.0.2",
7
- "@open-turo/eslint-config-typescript": "2.0.0",
7
+ "@open-turo/eslint-config-typescript": "^2.3.0",
8
8
  "@semantic-release/git": "^10.0.1",
9
- "@typescript-eslint/eslint-plugin": "^5.20.0",
10
- "@typescript-eslint/parser": "^5.20.0",
11
- "eslint": "^8.28.0",
9
+ "@typescript-eslint/eslint-plugin": "^5.46.0",
10
+ "@typescript-eslint/parser": "^5.46.0",
11
+ "eslint": ">=8.18.0",
12
+ "eslint-config-prettier": "^8.5.0",
13
+ "eslint-import-resolver-typescript": "^3.5.2",
14
+ "eslint-plugin-import": "^2.26.0",
15
+ "eslint-plugin-jest": "^27.1.6",
12
16
  "eslint-plugin-jsx-a11y": "^6.5.1",
17
+ "eslint-plugin-node": "^11.1.0",
18
+ "eslint-plugin-prettier": "^4.2.1",
13
19
  "eslint-plugin-react": "^7.29.4",
14
20
  "eslint-plugin-react-hooks": "^4.4.0",
21
+ "eslint-plugin-simple-import-sort": "^8.0.0",
22
+ "eslint-plugin-sonarjs": "^0.17.0",
23
+ "eslint-plugin-sort-destructure-keys": "^1.4.0",
24
+ "eslint-plugin-typescript-sort-keys": "^2.1.0",
25
+ "prettier": "^2.5.1",
15
26
  "semantic-release": "^19.0.2",
16
27
  "semantic-release-github-pullrequest": "^1.3.0"
17
28
  },
@@ -23,17 +34,28 @@
23
34
  "main": "index.js",
24
35
  "name": "@open-turo/eslint-config-react",
25
36
  "peerDependencies": {
26
- "@open-turo/eslint-config-typescript": "2.0.0",
27
- "@typescript-eslint/eslint-plugin": "^5.20.0",
28
- "@typescript-eslint/parser": "^5.20.0",
29
- "eslint": ">=8.16.0",
37
+ "@open-turo/eslint-config-typescript": "^2.3.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.46.0",
39
+ "@typescript-eslint/parser": "^5.46.0",
40
+ "eslint": ">=8.18.0",
41
+ "eslint-config-prettier": "^8.5.0",
42
+ "eslint-import-resolver-typescript": "^3.5.2",
43
+ "eslint-plugin-import": "^2.26.0",
44
+ "eslint-plugin-jest": "^27.1.6",
30
45
  "eslint-plugin-jsx-a11y": "^6.5.1",
46
+ "eslint-plugin-node": "^11.1.0",
47
+ "eslint-plugin-prettier": "^4.2.1",
31
48
  "eslint-plugin-react": "^7.29.4",
32
- "eslint-plugin-react-hooks": "^4.4.0"
49
+ "eslint-plugin-react-hooks": "^4.4.0",
50
+ "eslint-plugin-simple-import-sort": "^8.0.0",
51
+ "eslint-plugin-sonarjs": "^0.16.0",
52
+ "eslint-plugin-sort-destructure-keys": "^1.4.0",
53
+ "eslint-plugin-typescript-sort-keys": "^2.1.0",
54
+ "prettier": "^2.5.1"
33
55
  },
34
56
  "publishConfig": {
35
57
  "access": "public"
36
58
  },
37
59
  "repository": "https://github.com/open-turo/eslint-config-react",
38
- "version": "1.2.0"
60
+ "version": "1.3.1"
39
61
  }
@@ -1,12 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: npm
4
- directory: /
5
- reviewers:
6
- - "open-turo/node"
7
- schedule:
8
- interval: weekly
9
- commit-message:
10
- prefix: build(deps)
11
- prefix-development: build(dev-deps)
12
- include: scope