0.1.2 • Published 8 months ago

@config-federation/vue v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Config Federation

Concept

Set of essential configs for your Vue 3 project.

Forget about dependency hell

This library will handle all the common dependencies and rules. At the same time it will let you modify all the configs for your specific needs.

Installation

npm i -D @config-federation/vue

Usage

Create config files and import configs from a library.

// eslint.config.js

import { eslintConfig } from "@config-federation/vue";

export default [
  ...eslintConfig,
  // extend here
];
// stylelint.config.js

import { deepMerge, stylelintConfig } from "@config-federation/vue";

const customs = {
  // extend here
};

export default deepMerge(stylelintConfig, customs);
// prettier.config.js

import { deepMerge, prettierConfig } from "@config-federation/vue";

const customs = {
  // extend here
};

export default deepMerge(prettierConfig, customs);
// vitest.config.js

import { deepMerge, vitestConfig } from "@config-federation/vue";
import { mergeConfig } from "vite";
import viteConfig from "./vite.config";

export default mergeConfig(
  viteConfig,
  deepMerge(vitestConfig, {
    // extend here
  })
);