@jr.codes/u

1.0.4 • Public • Published

npm (tag) npm (tag) CI GitHub license Language grade: JavaScript Total alerts

u

U is my JavaScript toolchain for linting, testing, and more. It combines several open-source tools into a single dependency that's both opinionated and configurable.

I made this so I can set up projects easier without having to maintain multiple dependencies and configurations for each project.

🔧 Install

npm i -D @jr.codes/u

📝 Usage

Commands

U comes with a set of default commands. You can make your own commands by defining a u.config.js file.

Command Description
u lint Runs eslint --fix and prettier --write.
u test Runs eslint --fix, prettier --write, and jest.
u test-ci Runs eslint, prettier --check, and jest --ci.

Scripts

You can also run scripts directly. Each script is run with preconfigured defaults, but they can be overridden by passing CLI options or defining a config for that script.

Script Description
u babel Runs babel. Customize with .babelrc.js.
u eslint Runs eslint. Customize with .eslintrc.js.
u jest Runs jest. Customize with jest.config.js.
u prettier Runs prettier. Customize with prettier.config.js.

Eslint in your code editor

You can direct your code editor to use u script eslint rules by extending eslintConfig in your projects package.json

{
  "eslintConfig": {
    "extends": "@jr.codes"
  }
}

🌱 Inspiration

Package Sidebar

Install

npm i @jr.codes/u

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

11.2 kB

Total Files

17

Last publish

Collaborators

  • jr.codes