@comet/eslint-config 8.11.0-canary-20260107084421 → 8.11.0-canary-20260107111208
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 +6 -2
- package/future/react.js +9 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# @comet/eslint-config
|
|
2
2
|
|
|
3
|
-
## 8.11.0-canary-
|
|
3
|
+
## 8.11.0-canary-20260107111208
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- 4b448f6: Format.JS: enforce literal default messages
|
|
8
|
+
|
|
9
|
+
Prevent function calls or variables in `defaultMessage` which are not supported in our internationalization workflow.
|
|
10
|
+
|
|
7
11
|
- e5427a0: Future: Ban `node-cache` because it's unmaintained
|
|
8
12
|
|
|
9
13
|
Introduce a new rule in `future/nestjs` and `future/nextjs` that bans importing `node-cache` and recommends `cache-manager` / `@cacheable/node-cache` / `@nestjs/cache-manager` instead.
|
|
@@ -14,7 +18,7 @@
|
|
|
14
18
|
|
|
15
19
|
### Patch Changes
|
|
16
20
|
|
|
17
|
-
- @comet/eslint-plugin@8.11.0-canary-
|
|
21
|
+
- @comet/eslint-plugin@8.11.0-canary-20260107111208
|
|
18
22
|
|
|
19
23
|
## 8.10.0
|
|
20
24
|
|
package/future/react.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import reactConfig from "../react.js";
|
|
2
|
+
import formatJs from "eslint-plugin-formatjs";
|
|
2
3
|
|
|
3
4
|
/** @type {import('eslint')} */
|
|
4
5
|
const config = [
|
|
@@ -21,6 +22,14 @@ const config = [
|
|
|
21
22
|
],
|
|
22
23
|
},
|
|
23
24
|
},
|
|
25
|
+
{
|
|
26
|
+
plugins: {
|
|
27
|
+
formatjs: formatJs,
|
|
28
|
+
},
|
|
29
|
+
rules: {
|
|
30
|
+
"formatjs/enforce-default-message": ["error", "literal"],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
24
33
|
];
|
|
25
34
|
|
|
26
35
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/eslint-config",
|
|
3
|
-
"version": "8.11.0-canary-
|
|
3
|
+
"version": "8.11.0-canary-20260107111208",
|
|
4
4
|
"description": "A set of ESLint configurations for Comet projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/eslint-config",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"globals": "^15.15.0",
|
|
52
52
|
"npm-run-all2": "^8.0.4",
|
|
53
53
|
"typescript-eslint": "^8.24.1",
|
|
54
|
-
"@comet/eslint-plugin": "8.11.0-canary-
|
|
54
|
+
"@comet/eslint-plugin": "8.11.0-canary-20260107111208"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"eslint": "^9.30.1",
|