eslint-config-seek 9.0.0-beta.0 → 9.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/.eslintrc.js CHANGED
@@ -70,7 +70,10 @@ const baseRules = {
70
70
  'prefer-const': ERROR,
71
71
  'prefer-spread': ERROR,
72
72
  'prefer-template': ERROR,
73
- 'no-return-await': ERROR,
73
+ // Allow devs to choose between performance and richer stack traces
74
+ // https://eslint.org/docs/rules/no-return-await#when-not-to-use-it
75
+ // https://github.com/goldbergyoni/nodebestpractices/blob/master@%7B2022-01-01T00:00:00Z%7D/sections/errorhandling/returningpromises.md
76
+ 'no-return-await': OFF,
74
77
  };
75
78
 
76
79
  const reactRules = {
@@ -15,6 +15,10 @@ jobs:
15
15
  steps:
16
16
  - name: Check out repo
17
17
  uses: actions/checkout@main
18
+ with:
19
+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
20
+ fetch-depth: 0
21
+ token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
18
22
 
19
23
  - name: Set up Node.js 16.x
20
24
  uses: actions/setup-node@main
package/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # eslint-config-seek
2
2
 
3
- ## 9.0.0-beta.0
3
+ ## 9.0.0
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - Support ESLint 8.x (15e26ec)
7
+ - Support ESLint 8.x ([#73](https://github.com/seek-oss/eslint-config-seek/pull/73))
8
8
 
9
9
  We've upgraded the parsers and plugins bundled in `eslint-config-seek` for ESLint 8.x compatibility. Some linting rules have changed and may require manual triage. In particular, we've applied the following major upgrades:
10
10
 
@@ -26,6 +26,12 @@
26
26
 
27
27
  [`eslint-plugin-cypress`](https://github.com/cypress-io/eslint-plugin-cypress/issues/89) is currently incompatible with ESLint 8.x. Projects that utilise Cypress should remain on ESLint 7.x.
28
28
 
29
+ ### Minor Changes
30
+
31
+ - Turn off [`no-return-await`](https://eslint.org/docs/rules/no-return-await) ([#74](https://github.com/seek-oss/eslint-config-seek/pull/74))
32
+
33
+ `return await` produces [richer stack traces with a marginal performance penalty](https://github.com/goldbergyoni/nodebestpractices/blob/master@%7B2022-01-01T00:00:00Z%7D/sections/errorhandling/returningpromises.md) in recent Node.js versions. This tradeoff is now left to individual consumers to weigh up and optionally enforce.
34
+
29
35
  ## 8.0.0
30
36
 
31
37
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "9.0.0-beta.0",
3
+ "version": "9.0.0",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": ".eslintrc.js",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "devDependencies": {
37
37
  "@changesets/cli": "2.17.0",
38
38
  "@changesets/get-github-info": "0.5.0",
39
- "eslint": "7.32.0",
39
+ "eslint": "8.11.0",
40
40
  "prettier": "2.4.1",
41
41
  "typescript": "^4.1.2"
42
42
  },
@@ -1,25 +0,0 @@
1
- ---
2
- 'eslint-config-seek': major
3
- ---
4
-
5
- Support ESLint 8.x
6
-
7
- We've upgraded the parsers and plugins bundled in `eslint-config-seek` for ESLint 8.x compatibility. Some linting rules have changed and may require manual triage. In particular, we've applied the following major upgrades:
8
-
9
- - [TypeScript ESLint v5](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.0.0)
10
-
11
- This includes changes to the recommended rule set.
12
-
13
- - [`babel-eslint`](https://www.npmjs.com/package/babel-eslint) → [`@babel/eslint-parser`](https://www.npmjs.com/package/@babel/eslint-parser)
14
-
15
- This resolves the following installation warning:
16
-
17
- ```console
18
- babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
19
- ```
20
-
21
- - [`eslint-config-prettier` v8](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md?rgh-link-date=2021-10-18T05%3A10%3A39Z#version-800-2021-02-21)
22
-
23
- This unifies on a single `prettier` config.
24
-
25
- [`eslint-plugin-cypress`](https://github.com/cypress-io/eslint-plugin-cypress/issues/89) is currently incompatible with ESLint 8.x. Projects that utilise Cypress should remain on ESLint 7.x.
@@ -1,10 +0,0 @@
1
- {
2
- "mode": "pre",
3
- "tag": "beta",
4
- "initialVersions": {
5
- "eslint-config-seek": "8.0.0"
6
- },
7
- "changesets": [
8
- "olive-seas-collect"
9
- ]
10
- }