Threadwick's shared code-shape config so every repo's TypeScript, lint, and formatting match —
not just its colours. A new Threadwick app installs @threadwick/core + @threadwick/config and is
on-brand, on-grid, and lint-clean on day one, by default not by discipline.
npm install -D @threadwick/config
# peers: eslint ^9, prettier ^3, typescript ^5tsconfig — tsconfig.json:
ESLint — eslint.config.js:
import { base, noRawHex } from '@threadwick/config/eslint';
export default [
...base,
{ ignores: ['dist'] },
// ban raw hex in product code; exempt generated token files
{ files: ['src/**/*.{ts,tsx}'], ignores: ['src/tokens/**'], ...noRawHex },
];Prettier — package.json:
{ "prettier": "@threadwick/config/prettier" }AGPL-3.0-or-later © Threadwick.
{ "extends": "@threadwick/config/tsconfig.base.json", "include": ["src"] }