- Replace pylint with ruff (backend/ruff.toml) - line-length=300, max-complexity=10, per-file-ignores for tests - Exclude D (docstrings replaced by contracts) and ANN - Add eslint flat config for frontend (eslint-plugin-svelte) - Allow console.info/warn/error (belief-state protocol) - Remove .pylintrc (references non-existent plugin) - Update agent docs: ruff check . + npm run lint - Add ruff>=0.11.0 to backend/requirements.txt - Add eslint + plugins to frontend devDependencies
24 lines
556 B
JavaScript
24 lines
556 B
JavaScript
import svelte from "eslint-plugin-svelte";
|
|
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
...svelte.configs["flat/recommended"],
|
|
{
|
|
languageOptions: {
|
|
globals: { ...globals.browser, ...globals.node },
|
|
},
|
|
rules: {
|
|
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
|
|
},
|
|
},
|
|
{
|
|
ignores: [
|
|
"node_modules/", "dist/", "build/",
|
|
".svelte-kit/", ".vite/", "coverage/",
|
|
],
|
|
},
|
|
];
|