eslint-config-seek 8.0.0 → 9.0.0-beta.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/.changeset/olive-seas-collect.md +25 -0
- package/.changeset/pre.json +10 -0
- package/.eslintrc.js +6 -4
- package/CHANGELOG.md +26 -0
- package/package.json +14 -12
|
@@ -0,0 +1,25 @@
|
|
|
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.
|
package/.eslintrc.js
CHANGED
|
@@ -85,10 +85,13 @@ const reactRules = {
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const baseConfig = {
|
|
88
|
-
parser: 'babel-
|
|
88
|
+
parser: '@babel/eslint-parser',
|
|
89
89
|
parserOptions: {
|
|
90
|
+
babelOptions: {
|
|
91
|
+
presets: ['@babel/preset-react'],
|
|
92
|
+
},
|
|
93
|
+
requireConfigFile: false,
|
|
90
94
|
sourceType: 'module',
|
|
91
|
-
ecmaFeatures: { jsx: true },
|
|
92
95
|
},
|
|
93
96
|
root: true,
|
|
94
97
|
env: {
|
|
@@ -118,7 +121,7 @@ const baseConfig = {
|
|
|
118
121
|
extends: [
|
|
119
122
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
120
123
|
'plugin:@typescript-eslint/recommended',
|
|
121
|
-
'prettier
|
|
124
|
+
'prettier',
|
|
122
125
|
],
|
|
123
126
|
rules: {
|
|
124
127
|
'@typescript-eslint/no-unused-expressions': ERROR,
|
|
@@ -137,7 +140,6 @@ const baseConfig = {
|
|
|
137
140
|
ERROR,
|
|
138
141
|
{ ignoreParameters: true },
|
|
139
142
|
],
|
|
140
|
-
'@typescript-eslint/explicit-module-boundary-types': OFF,
|
|
141
143
|
// prefer TypeScript exhaustiveness checking
|
|
142
144
|
// https://www.typescriptlang.org/docs/handbook/advanced-types.html#exhaustiveness-checking
|
|
143
145
|
'default-case': OFF,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# eslint-config-seek
|
|
2
2
|
|
|
3
|
+
## 9.0.0-beta.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Support ESLint 8.x (15e26ec)
|
|
8
|
+
|
|
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
|
+
|
|
11
|
+
- [TypeScript ESLint v5](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.0.0)
|
|
12
|
+
|
|
13
|
+
This includes changes to the recommended rule set.
|
|
14
|
+
|
|
15
|
+
- [`babel-eslint`](https://www.npmjs.com/package/babel-eslint) → [`@babel/eslint-parser`](https://www.npmjs.com/package/@babel/eslint-parser)
|
|
16
|
+
|
|
17
|
+
This resolves the following installation warning:
|
|
18
|
+
|
|
19
|
+
```console
|
|
20
|
+
babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- [`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)
|
|
24
|
+
|
|
25
|
+
This unifies on a single `prettier` config.
|
|
26
|
+
|
|
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
|
+
|
|
3
29
|
## 8.0.0
|
|
4
30
|
|
|
5
31
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seek",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-beta.0",
|
|
4
4
|
"description": "ESLint configuration used by SEEK",
|
|
5
5
|
"main": ".eslintrc.js",
|
|
6
6
|
"repository": {
|
|
@@ -19,22 +19,24 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"babel-
|
|
25
|
-
"eslint-
|
|
26
|
-
"eslint
|
|
27
|
-
"eslint-
|
|
28
|
-
"eslint-
|
|
29
|
-
"eslint-plugin-
|
|
30
|
-
"eslint-plugin-
|
|
31
|
-
"eslint-plugin-
|
|
22
|
+
"@babel/core": "^7.17.8",
|
|
23
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
24
|
+
"@babel/preset-react": "^7.16.7",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
26
|
+
"@typescript-eslint/parser": "^5.16.0",
|
|
27
|
+
"eslint-config-prettier": "^8.5.0",
|
|
28
|
+
"eslint-import-resolver-node": "^0.3.6",
|
|
29
|
+
"eslint-plugin-cypress": "^2.12.1",
|
|
30
|
+
"eslint-plugin-import": "^2.25.4",
|
|
31
|
+
"eslint-plugin-jest": "^26.1.2",
|
|
32
|
+
"eslint-plugin-react": "^7.29.4",
|
|
33
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
32
34
|
"find-root": "^1.1.0"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@changesets/cli": "2.17.0",
|
|
36
38
|
"@changesets/get-github-info": "0.5.0",
|
|
37
|
-
"eslint": "
|
|
39
|
+
"eslint": "7.32.0",
|
|
38
40
|
"prettier": "2.4.1",
|
|
39
41
|
"typescript": "^4.1.2"
|
|
40
42
|
},
|