1.0.6 • Published 3 months ago

@learningfuze/lfz-config v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

lfz-config

Configuration files used by LFZ template projects

This repo contains configuration files, such as lint configuration, that are used by all LFZ student projects. This allows these configuration files to be maintained in one location and used by each project.

The files in the config folder should be imported into configuration files at the root of the project.

Usage

Using the Config

npm install --save-dev @learningfuze/lfz-config

Config files are stored in the config folder, usually named with a .json extension. Usage depends on the system using it.

For example, ESLint lets you specify a relative path to the config file in the extends field. Like this:

{
  "extends": "./node_modules/@learningfuze/lfz-config/config/eslintrc.json"
}

Others, like lint-staged, let you use a JS file to read the config and export it. Like this:

// .lintstagedrc.cjs
const config = require("@learningfuze/lfz-config/config/lintstagedrc.json");

module.exports = config;

Publishing

This package is published as @learningfuze/lfz-config. Every time this package is updated it should be republished, using npm publish from the command line. Remember to bump the version before publishing! For example:

npm version patch -m "Turn on lint rule X"
npm publish
1.0.6

3 months ago

1.0.5

5 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

7 months ago

1.0.0

7 months ago