Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions calm-models/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
{
files: ["src/**/*.ts"],
plugins: {
"@typescript-eslint": typescriptEslint,
},
Expand All @@ -32,10 +21,13 @@ export default [
},

rules: {
...js.configs.recommended.rules,
...typescriptEslint.configs.recommended.rules,
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"],
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -55,4 +47,4 @@ export default [
]
}
},
];
];
3 changes: 2 additions & 1 deletion calm-plugins/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
"@vscode/dts": "^0.4.1",
"@vscode/vsce": "^3.7.1",
"copyfiles": "^2.4.1",
"eslint": "^10.0.2",
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding ESLint ^10.0.2 here combined with eslint-plugin-import ^2.32.0 is likely incompatible: eslint-plugin-import declares a peerDependency up to ESLint v9 (per package-lock), and it also brings in minimatch@3.1.5 in this workspace. Please upgrade eslint-plugin-import to a version that supports ESLint v10 (and ideally minimatch v10), or pin ESLint to a compatible major for this workspace.

Suggested change
"eslint": "^10.0.2",
"eslint": "^9.0.0",

Copilot uses AI. Check for mistakes.
"eslint-plugin-import": "^2.32.0",
"tsup": "^8.4.0"
},
Expand All @@ -204,4 +205,4 @@
"yaml": "^2.5.1",
"zustand": "^5.0.8"
}
}
}
15 changes: 3 additions & 12 deletions calm-server/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
{
ignores: ['dist/', 'node_modules/', 'coverage/', 'test_fixtures/'],
},
Expand All @@ -36,10 +24,13 @@ export default [
},

rules: {
...js.configs.recommended.rules,
...typescriptEslint.configs.recommended.rules,
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"],
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion calm-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.0.0",
"eslint": "^10.0.2",
"node-fetch": "^2.7.0",
"supertest": "^7.0.0",
"tsup": "^8.3.5",
Expand Down
18 changes: 5 additions & 13 deletions calm-widgets/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
{
files: ["src/**/*.ts"],
plugins: {
"@typescript-eslint": typescriptEslint,
},
Expand All @@ -32,10 +21,13 @@ export default [
},

rules: {
...js.configs.recommended.rules,
...typescriptEslint.configs.recommended.rules,
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"],
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -47,4 +39,4 @@ export default [
]
}
},
];
];
18 changes: 5 additions & 13 deletions cli/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
{
files: ["src/**/*.ts"],
plugins: {
"@typescript-eslint": typescriptEslint,
},
Expand All @@ -32,10 +21,13 @@ export default [
},

rules: {
...js.configs.recommended.rules,
...typescriptEslint.configs.recommended.rules,
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"],
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -47,4 +39,4 @@ export default [
]
}
},
];
];
Loading
Loading