mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-14 13:49:18 +02:00
- Add @multica/eslint-config package (base, react, next configs) - Replace `next lint` (removed in Next.js 16) with `eslint .` - Add lint scripts to all packages and desktop app - Add noUnusedLocals, noUnusedParameters, noImplicitReturns to base tsconfig - Fix all resulting TS/ESLint errors (unused imports, missing returns, stale eslint-disable comments from legacy eslint-config-next) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
670 B
JavaScript
26 lines
670 B
JavaScript
import baseConfig from "./base.js";
|
|
import reactPlugin from "eslint-plugin-react";
|
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
|
|
/** @type {import("eslint").Linter.Config[]} */
|
|
export default [
|
|
...baseConfig,
|
|
{
|
|
files: ["**/*.{jsx,tsx}"],
|
|
plugins: {
|
|
react: reactPlugin,
|
|
"react-hooks": reactHooksPlugin,
|
|
},
|
|
rules: {
|
|
...reactPlugin.configs.recommended.rules,
|
|
...reactPlugin.configs["jsx-runtime"].rules,
|
|
...reactHooksPlugin.configs["recommended-latest"].rules,
|
|
"react/prop-types": "off",
|
|
"react/no-unknown-property": "off",
|
|
},
|
|
settings: {
|
|
react: { version: "detect" },
|
|
},
|
|
},
|
|
];
|