|
| 1 | +// Minimal ESLint flat config for pushwork. |
| 2 | +// |
| 3 | +// Goal: catch genuine bugs (undeclared bindings, unreachable code, etc.) without |
| 4 | +// nitpicking existing style — formatting belongs to Prettier (.prettierrc). |
| 5 | +// |
| 6 | +// Most stylistic rules from typescript-eslint's `recommended` set are toned down |
| 7 | +// here so this can run green on the existing codebase. Tighten over time. |
| 8 | +import tseslint from "typescript-eslint"; |
| 9 | + |
| 10 | +export default tseslint.config( |
| 11 | + { |
| 12 | + ignores: ["dist/**", "node_modules/**", "coverage/**", "**/*.d.ts"], |
| 13 | + }, |
| 14 | + ...tseslint.configs.recommended, |
| 15 | + { |
| 16 | + rules: { |
| 17 | + "@typescript-eslint/ban-ts-comment": "off", |
| 18 | + "@typescript-eslint/no-empty-object-type": "off", |
| 19 | + "@typescript-eslint/no-explicit-any": "off", |
| 20 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 21 | + "@typescript-eslint/no-require-imports": "off", |
| 22 | + "@typescript-eslint/no-unused-expressions": "off", |
| 23 | + "@typescript-eslint/no-unused-vars": [ |
| 24 | + "warn", |
| 25 | + { |
| 26 | + argsIgnorePattern: "^_", |
| 27 | + varsIgnorePattern: "^_", |
| 28 | + caughtErrorsIgnorePattern: "^_", |
| 29 | + }, |
| 30 | + ], |
| 31 | + "no-empty": ["warn", { allowEmptyCatch: true }], |
| 32 | + "prefer-const": "warn", |
| 33 | + }, |
| 34 | + }, |
| 35 | +); |
0 commit comments