Standardized TypeScript, ESLint, and Prettier configuration for Dexa's TypeScript projects.
Why does this exist?
- Consistent and familiar configuration across Dexa projects
- Reduces configuration boilerplate in each project
- Reduces time spent keeping configuration updated and in sync
Install @dexaai/config as a dev dependency.
Add the following line to your package.json:
"prettier": "@dexaai/config/prettier",Create a eslint.config.js file in the root of the project:
import { config } from '@dexaai/config/eslint';
/** @type {import("eslint").Linter.Config[]} */
export default [...config];Create a tsconfig.json file in the root that extends @dexaai/config/tsconfig-node or @dexaai/config/tsconfig-react. You will still need to specify includes and any compilerOptions you want to add or override.
This is just a convenient export of @total-typescript/ts-reset.
{ "extends": "@dexaai/config/tsconfig-node", "include": ["src"], "exclude": ["**/node_modules", "**/.*/"], "compilerOptions": { // Add or override compiler options here }, }