0.1.2 • Published 11 months ago

@gear-js/frontend-configs v0.1.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
11 months ago

Description

The @gear-js/frontend-configs library provides a set of configurations for ESLint, Vite, and TypeScript that are used across Gear frontend applications. These configurations help maintain code quality, enforce coding standards, and streamline the development process.

Installation

npm install @gear-js/frontend-configs

or

yarn add @gear-js/frontend-configs

Usage

TypeScript

tsconfig.app.json

{
  "extends": "@gear-js/frontend-configs/tsconfig.app.json"
}

tsconfig.node.json

{
  "extends": "@gear-js/frontend-configs/tsconfig.node.json"
}

tsconfig.json

{
  "files": [],
  "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
}

ESLint

import { eslintConfig } from '@gear-js/frontend-configs';

export default eslintConfig;

Vite

import { viteConfigs } from '@gear-js/frontend-configs';

export default viteConfigs.app;

Prettier

import { prettierConfig } from '@gear-js/frontend-configs';

export default prettierConfig;