- Add ESLint configuration (eslint.config.mjs) for TypeScript/JavaScript linting - Update executor prompts to include lint instruction before code submission - Add lint check to triage prompt validation workflow - Update agent prompts to emphasize lint compliance as quality requirement - Add lint tool to agent toolset with file-level rule disabling capability - Include lint in CI workflow with non-blocking status - Update tests to verify lint-inclusive prompt behavior - Add documentation for lint integration in contributing.md - Add changeset for @gsxdsm/fusion minor release
76 lines
1.4 KiB
JavaScript
76 lines
1.4 KiB
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
// Base ESLint recommended rules
|
|
eslint.configs.recommended,
|
|
|
|
// TypeScript-eslint configuration
|
|
...tseslint.configs.recommended,
|
|
|
|
// TypeScript files in packages
|
|
{
|
|
files: ["packages/*/src/**/*.ts", "packages/*/src/**/*.tsx"],
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
ignores: [
|
|
// Test files
|
|
"**/*.test.ts",
|
|
"**/*.test.tsx",
|
|
"**/__tests__/**",
|
|
"**/*.spec.ts",
|
|
"**/*.spec.tsx",
|
|
// Generated files
|
|
"**/*.gen.ts",
|
|
"**/*.gen.tsx",
|
|
// Build artifacts
|
|
"**/dist/**",
|
|
"**/out/**",
|
|
"**/build/**",
|
|
],
|
|
},
|
|
|
|
// Root-level config files and scripts
|
|
{
|
|
files: [
|
|
"*.mjs",
|
|
"*.cjs",
|
|
"*.js",
|
|
"scripts/**/*.js",
|
|
],
|
|
languageOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
ignores: [
|
|
"**/dist/**",
|
|
"**/out/**",
|
|
"**/build/**",
|
|
"node_modules/**",
|
|
],
|
|
},
|
|
|
|
// Ignore patterns for all configs
|
|
{
|
|
ignores: [
|
|
"node_modules/**",
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/out/**",
|
|
"**/build/**",
|
|
"coverage/**",
|
|
".fusion/**",
|
|
".worktrees/**",
|
|
"*.lock",
|
|
"pnpm-lock.yaml",
|
|
".git/**",
|
|
"*.log",
|
|
],
|
|
},
|
|
);
|