Skip to content

threadwick-hq/config

Repository files navigation

@threadwick/config

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.

Install

npm install -D @threadwick/config
# peers: eslint ^9, prettier ^3, typescript ^5

Usage

tsconfigtsconfig.json:

{ "extends": "@threadwick/config/tsconfig.base.json", "include": ["src"] }

ESLinteslint.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 },
];

Prettierpackage.json:

{ "prettier": "@threadwick/config/prettier" }

License

AGPL-3.0-or-later © Threadwick.

About

Threadwick shared config — tsconfig, ESLint, Prettier (@threadwick/config).

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors