@comet/eslint-config 9.0.0-beta.0 → 9.0.0-beta.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.
- package/CHANGELOG.md +25 -0
- package/eslint.config.mjs +3 -5
- package/nextjs.js +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @comet/eslint-config
|
|
2
2
|
|
|
3
|
+
## 9.0.0-beta.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4b1d586: Fix missing Rules of React in `@comet/eslint-config/nextjs.js`
|
|
8
|
+
- @comet/eslint-plugin@9.0.0-beta.1
|
|
9
|
+
|
|
3
10
|
## 9.0.0-beta.0
|
|
4
11
|
|
|
5
12
|
### Major Changes
|
|
@@ -21,6 +28,24 @@
|
|
|
21
28
|
- Updated dependencies [db6b83a]
|
|
22
29
|
- @comet/eslint-plugin@9.0.0-beta.0
|
|
23
30
|
|
|
31
|
+
## 8.20.0
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- @comet/eslint-plugin@8.20.0
|
|
36
|
+
|
|
37
|
+
## 8.19.0
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- @comet/eslint-plugin@8.19.0
|
|
42
|
+
|
|
43
|
+
## 8.18.0
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- @comet/eslint-plugin@8.18.0
|
|
48
|
+
|
|
24
49
|
## 8.17.1
|
|
25
50
|
|
|
26
51
|
### Patch Changes
|
package/eslint.config.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
1
2
|
import eslint from "@eslint/js";
|
|
2
3
|
import globals from "globals";
|
|
3
4
|
import tseslint from "typescript-eslint";
|
|
@@ -8,8 +9,7 @@ import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
|
8
9
|
import { configs as eslintPluginJsonc } from "eslint-plugin-jsonc";
|
|
9
10
|
import packageJson from "eslint-plugin-package-json";
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
const config = [
|
|
12
|
+
export default defineConfig([
|
|
13
13
|
eslint.configs.recommended,
|
|
14
14
|
...tseslint.configs.recommended,
|
|
15
15
|
prettierConfig,
|
|
@@ -60,6 +60,4 @@ const config = [
|
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
packageJson.configs.recommended,
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
export default config;
|
|
63
|
+
]);
|
package/nextjs.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import coreConfig, { restrictedImportPatterns } from "./core.js";
|
|
2
2
|
import react from "eslint-plugin-react";
|
|
3
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
3
4
|
import globals from "globals";
|
|
4
5
|
import nextPlugin from "@next/eslint-plugin-next";
|
|
5
6
|
|
|
@@ -47,6 +48,7 @@ const config = [
|
|
|
47
48
|
},
|
|
48
49
|
plugins: {
|
|
49
50
|
react: react,
|
|
51
|
+
"react-hooks": reactHooks,
|
|
50
52
|
},
|
|
51
53
|
settings: {
|
|
52
54
|
react: {
|
|
@@ -54,6 +56,8 @@ const config = [
|
|
|
54
56
|
},
|
|
55
57
|
},
|
|
56
58
|
rules: {
|
|
59
|
+
...react.configs.recommended.rules,
|
|
60
|
+
...reactHooks.configs.recommended.rules,
|
|
57
61
|
"react/display-name": "off",
|
|
58
62
|
"react/jsx-curly-brace-presence": "error",
|
|
59
63
|
"react/prop-types": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/eslint-config",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.1",
|
|
4
4
|
"description": "A set of ESLint configurations for Comet projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/eslint-config",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"globals": "^15.15.0",
|
|
51
51
|
"npm-run-all2": "^8.0.4",
|
|
52
52
|
"typescript-eslint": "^8.53.0",
|
|
53
|
-
"@comet/eslint-plugin": "9.0.0-beta.
|
|
53
|
+
"@comet/eslint-plugin": "9.0.0-beta.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"eslint": "^9.39.2",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"scripts": {
|
|
77
77
|
"lint": "run-p lint:prettier lint:eslint",
|
|
78
78
|
"lint:ci": "pnpm run lint",
|
|
79
|
-
"lint:eslint": "eslint --max-warnings 0
|
|
79
|
+
"lint:eslint": "eslint --max-warnings 0 '**/*.json' --no-warn-ignored",
|
|
80
80
|
"lint:prettier": "pnpm exec prettier --check '*.{ts,js,json,md,yml,yaml}'"
|
|
81
81
|
}
|
|
82
82
|
}
|