UNPKG

eslint-config-ts-strict

Version:

Very strict ESLint config for projects using TypeScript, React and Prettier. ESLint v9 flat config only. Formatting rules disabled to prevent Prettier conflicts.

40 lines (35 loc) 852 B
// Example ESLint v9 flat config import tsStrict from "eslint-config-ts-strict"; export default [ // Apply the ts-strict configuration ...tsStrict, // Optional: Add global ignores { ignores: [ "dist/**", "build/**", "coverage/**", "node_modules/**", "*.min.js", ], }, // Optional: Override specific rules or add custom configuration { files: ["**/*.{ts,tsx}"], rules: { // Example: Customize specific rules "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], }, }, // Optional: Different rules for test files { files: ["**/*.test.{ts,tsx,js,jsx}", "**/*.spec.{ts,tsx,js,jsx}"], rules: { // Allow any in test files "@typescript-eslint/no-explicit-any": "off", }, }, ];