@maas/config

1.10.1 • Public • Published

⚙️ Config

Presets for eslint, prettier and typescript.

Usage

Prettier

Add a prettier.config.mjs file to your root folder:

// prettier.config.mjs
import { prettierPreset } from '@maas/config/prettier-preset.mjs'
export default prettierPreset

For projects without Tailwind CSS use:

// prettier.config.mjs
import { prettierPlainPreset } from '@maas/config/prettier-plain-preset.mjs'
export default prettierPlainPreset

Eslint

Add a eslint.config.mjs file to your root or project folder:

Typescript

// eslint.config.mjs
import { typescriptPreset } from '@maas/config/eslint-typescript-preset.mjs'
export default typescriptPreset

Vue

import { vuePreset } from '@maas/config/eslint-vue-preset.mjs'
export default vuePreset

Nuxt

import { nuxtPreset } from '@maas/config/eslint-nuxt-preset.mjs'
export default nuxtPreset

Typescript

Extend your tsconfig.json:

Vue

{
  "extends": "@maas/config/tsconfig/vue-base.json"
}

Generic Package

{
  "extends": "@maas/config/tsconfig/package-base.json"
}

/@maas/config/

    Package Sidebar

    Install

    npm i @maas/config

    Weekly Downloads

    43

    Version

    1.10.1

    License

    MIT

    Unpacked Size

    6.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • robinscholz
    • christophjeworutzki