@comet/eslint-config 9.0.0-canary-20260119123708 → 9.0.0-canary-20260121085838
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/CHANGELOG.md +2 -8
- package/nextjs.js +16 -4
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
# @comet/eslint-config
|
|
2
2
|
|
|
3
|
-
## 9.0.0-canary-
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- 740dba8: Bump Next.js peer dependency to v16
|
|
8
|
-
|
|
9
|
-
Follow the official migration guides ([v15](https://nextjs.org/docs/app/guides/upgrading/version-15), [v16](https://nextjs.org/docs/app/guides/upgrading/version-16)) to upgrade.
|
|
3
|
+
## 9.0.0-canary-20260121085838
|
|
10
4
|
|
|
11
5
|
### Patch Changes
|
|
12
6
|
|
|
13
|
-
- @comet/eslint-plugin@9.0.0-canary-
|
|
7
|
+
- @comet/eslint-plugin@9.0.0-canary-20260121085838
|
|
14
8
|
|
|
15
9
|
## 8.11.1
|
|
16
10
|
|
package/nextjs.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import coreConfig from "./core.js";
|
|
2
2
|
import react from "eslint-plugin-react";
|
|
3
3
|
import globals from "globals";
|
|
4
|
-
import
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
5
|
+
|
|
6
|
+
const compat = new FlatCompat({
|
|
7
|
+
// import.meta.dirname is available after Node.js v20.11.0
|
|
8
|
+
baseDirectory: import.meta.dirname,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const nextCoreWebVitals = compat
|
|
12
|
+
.config({
|
|
13
|
+
extends: ["next/core-web-vitals"],
|
|
14
|
+
})
|
|
15
|
+
// We need to filter out configurations from nextCoreWebVitals which define plugin.import. It is conflicting
|
|
16
|
+
// because it gets redefined
|
|
17
|
+
.filter((config) => !config.plugins || !config.plugins.import);
|
|
5
18
|
|
|
6
19
|
export const restrictedImportPaths = [
|
|
7
20
|
{
|
|
@@ -18,9 +31,8 @@ export const restrictedImportPaths = [
|
|
|
18
31
|
/** @type {import('eslint')} */
|
|
19
32
|
const config = [
|
|
20
33
|
...coreConfig,
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
nextPlugin.configs["core-web-vitals"],
|
|
34
|
+
// Next.js does not support ESLint v9 flat config yet - an opt-in to compatibility mode is required
|
|
35
|
+
...nextCoreWebVitals,
|
|
24
36
|
{
|
|
25
37
|
rules: {
|
|
26
38
|
"@comet/no-private-sibling-import": ["error", ["gql", "sc", "gql.generated"]],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/eslint-config",
|
|
3
|
-
"version": "9.0.0-canary-
|
|
3
|
+
"version": "9.0.0-canary-20260121085838",
|
|
4
4
|
"description": "A set of ESLint configurations for Comet projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/eslint-config",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"@calm/eslint-plugin-react-intl": "^1.4.1",
|
|
37
37
|
"@eslint/eslintrc": "^3.3.3",
|
|
38
38
|
"@eslint/js": "^9.30.1",
|
|
39
|
-
"@next/eslint-plugin-next": "^
|
|
39
|
+
"@next/eslint-plugin-next": "^15.5.9",
|
|
40
|
+
"eslint-config-next": "^15.5.9",
|
|
40
41
|
"eslint-config-prettier": "^10.1.5",
|
|
41
42
|
"eslint-plugin-formatjs": "^5.4.0",
|
|
42
43
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -49,8 +50,8 @@
|
|
|
49
50
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
50
51
|
"globals": "^15.15.0",
|
|
51
52
|
"npm-run-all2": "^8.0.4",
|
|
52
|
-
"typescript-eslint": "^8.
|
|
53
|
-
"@comet/eslint-plugin": "9.0.0-canary-
|
|
53
|
+
"typescript-eslint": "^8.53.0",
|
|
54
|
+
"@comet/eslint-plugin": "9.0.0-canary-20260121085838"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"eslint": "^9.30.1",
|