@dexaai/config
v0.0.10
Published
Shared config for Dexa's TypeScript projects
Readme
@dexaai/config
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
Usage
1. Add Dependency
Install @dexaai/config as a dev dependency.
2. Configure Prettier
Add the following line to your package.json:
"prettier": "@dexaai/config/prettier",3. Configure ESLint
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];4. Configure TypeScript
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.
{
"extends": "@dexaai/config/tsconfig-node",
"include": ["src"],
"exclude": ["**/node_modules", "**/.*/"],
"compilerOptions": {
// Add or override compiler options here
},
}5. Add TypeScript Reset
This is just a convenient export of @total-typescript/ts-reset.
