Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrikvtcodes/jscfg
Henrik's config packages for JS/TS tooling.
https://github.com/henrikvtcodes/jscfg
Last synced: about 1 month ago
JSON representation
Henrik's config packages for JS/TS tooling.
- Host: GitHub
- URL: https://github.com/henrikvtcodes/jscfg
- Owner: henrikvtcodes
- License: mit
- Created: 2024-01-16T23:28:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T13:29:17.000Z (5 months ago)
- Last Synced: 2024-09-28T11:42:29.777Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 384 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jscfg
These are my shared configs for JS/TS tooling. At the moment, it only contains configs for:
- Eslint ([Config](/eslint/README.md))
- Prettier ([Config](/prettier/README.md))
- Typescript ([Config](/tsconfig/README.md))## Installing Everything
```sh
# 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`
```js
/** @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`
```js
import sharedConfig from "prettier-config-henrik";const config = {
...sharedConfig,
// your config here
};export default config;
````tsconfig.json`
```json
{
"extends": "tsconfig-henrik/base.json"
// rest of config
}
```