@comet/eslint-config 9.0.0-canary-20260113132154 → 9.0.0-canary-20260119123708

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @comet/eslint-config
2
2
 
3
- ## 9.0.0-canary-20260113132154
3
+ ## 9.0.0-canary-20260119123708
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -8,8 +8,24 @@
8
8
 
9
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.
10
10
 
11
+ ### Patch Changes
12
+
13
+ - @comet/eslint-plugin@9.0.0-canary-20260119123708
14
+
15
+ ## 8.11.1
16
+
17
+ ### Patch Changes
18
+
19
+ - @comet/eslint-plugin@8.11.1
20
+
21
+ ## 8.11.0
22
+
11
23
  ### Minor Changes
12
24
 
25
+ - 4b448f6: Format.JS: enforce literal default messages
26
+
27
+ Prevent function calls or variables in `defaultMessage` which are not supported in our internationalization workflow.
28
+
13
29
  - e5427a0: Future: Ban `node-cache` because it's unmaintained
14
30
 
15
31
  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.
@@ -20,7 +36,7 @@
20
36
 
21
37
  ### Patch Changes
22
38
 
23
- - @comet/eslint-plugin@9.0.0-canary-20260113132154
39
+ - @comet/eslint-plugin@8.11.0
24
40
 
25
41
  ## 8.10.0
26
42
 
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;
@@ -3,6 +3,6 @@
3
3
  * @type {import('lint-staged').Configuration}
4
4
  */
5
5
  export default {
6
- "*.{js,json,css,scss,md}": () => "pnpm lint:eslint",
7
- "*.{js,json,md,yml,yaml}": () => "pnpm lint:prettier",
6
+ "*.{ts,js,json,css,scss,md}": () => "pnpm lint:eslint",
7
+ "*.{ts,js,json,md,yml,yaml}": () => "pnpm lint:prettier",
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/eslint-config",
3
- "version": "9.0.0-canary-20260113132154",
3
+ "version": "9.0.0-canary-20260119123708",
4
4
  "description": "A set of ESLint configurations for Comet projects",
5
5
  "repository": {
6
6
  "directory": "packages/eslint-config",
@@ -48,9 +48,9 @@
48
48
  "eslint-plugin-simple-import-sort": "^12.1.1",
49
49
  "eslint-plugin-unused-imports": "^4.1.4",
50
50
  "globals": "^15.15.0",
51
- "npm-run-all2": "^8.0.0",
51
+ "npm-run-all2": "^8.0.4",
52
52
  "typescript-eslint": "^8.24.1",
53
- "@comet/eslint-plugin": "9.0.0-canary-20260113132154"
53
+ "@comet/eslint-plugin": "9.0.0-canary-20260119123708"
54
54
  },
55
55
  "devDependencies": {
56
56
  "eslint": "^9.30.1",
@@ -77,6 +77,6 @@
77
77
  "lint": "run-p lint:prettier lint:eslint",
78
78
  "lint:ci": "pnpm run lint",
79
79
  "lint:eslint": "eslint --max-warnings 0 *.json ",
80
- "lint:prettier": "pnpm exec prettier --check './**/*.{js,json,md,yml,yaml}'"
80
+ "lint:prettier": "pnpm exec prettier --check '*.{ts,js,json,md,yml,yaml}'"
81
81
  }
82
82
  }