Skip to content

Latest commit

 

History

368 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esconfig

Shared ECMAScript Config (TypeScript, oxlint, oxfmt)

Usage

  1. Install

    pnpm add -D @nihalgonsalves/esconfig typescript oxlint oxlint-tsgolint oxfmt
  2. tsconfig.json

    {
      "extends": "@nihalgonsalves/esconfig/tsconfig.shared.json",
      "compilerOptions": {
        "outDir": "./build",
        "rootDir": "./src"
      },
      "include": ["./src"]
    }
  3. copy .oxfmtrc.json (does not support extends)

  4. .oxlintrc.json

    {
      "extends": [
        "node_modules/@nihalgonsalves/esconfig/.oxlintrc.json",
        // optional:
        "node_modules/@nihalgonsalves/esconfig/.oxlintrc.react.json",
      ],
    }
  5. package.json

    {
      "scripts": {
        "build": "tsc",
        "lint": "oxlint",
        "format": "oxfmt",
        "format:check": "oxfmt --check"
      }
    }
  6. Done! Don't forget to run build, lint and format:check in your CI workflow.

About

Shared personal ECMAScript Config (TS, Lint, Prettier)

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages