henrikvtcodes / jscfg

Henrik's config packages for JS/TS tooling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jscfg

These are my shared configs for JS/TS tooling. At the moment, it only contains configs for:

Installing Everything

# pnpm
pnpm add -D prettier prettier-config-henrik eslint eslint-config-henrik @typescript-eslint/parser tsconfig-henrik
# Bun
bun add -d prettier prettier-config-henrik eslint eslint-config-henrik @typescript-eslint/parser tsconfig-henrik

.eslintrc.cjs

/** @type {import('eslint').Linter.Config} */
module.exports = {
  // Pick one of these
  extends: ["henrik", "henrik/react", "henrik/next"],
  parser: "@typescript-eslint/parser",
  // rest of your config
};

prettier.config.mjs

import sharedConfig from "prettier-config-henrik";

const config = {
  ...sharedConfig,
  // your config here
};

export default config;

tsconfig.json

{
  "extends": "tsconfig-henrik/base.json"
  // rest of config
}

About

Henrik's config packages for JS/TS tooling.

License:MIT License


Languages

Language:JavaScript 100.0%