@julr/tooling-configs

2.2.0 • Public • Published

Features

  • Designed to work with Prettier, Vue, Typescript, JSX, Node, AdonisJS out of the box
  • Lint json files ( TSConfig, package.json )
  • Super easy to use ( one line of code )
  • ESLint flat config
  • Use .gitignore as ignore file

Usage

[!IMPORTANT]

  • This config is using the new ESLint Flat config
  • New/updated rules will not be considered as breaking changes. Only API changes will be considered as breaking changes.

Install

pnpm add -D eslint prettier @julr/tooling-configs

Eslint

// .eslintrc
import { julr } from '@julr/tooling-configs/eslint'

export default await julr({
  // Your config here
})

You don't need .eslintignore as it has been provided by the preset.

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Prettier

{
  "prettier": "@julr/tooling-configs/prettier"
}

Tsconfig

Node ( ESM ) :

{
  "extends": "@julr/tooling-configs/tsconfigs/tsconfig.node",
  "compilerOptions": {
    "rootDir": "./",
    "outDir": "./build"
  }
}

Vue :

{
  "extends": "@julr/tooling-configs/tsconfigs/tsconfig.vue",
  "compilerOptions": {
    "rootDir": "./",
    "outDir": "./build"
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @julr/tooling-configs

Weekly Downloads

270

Version

2.2.0

License

MIT

Unpacked Size

68.2 kB

Total Files

10

Last publish

Collaborators

  • julien-r44