Skip to content

Latest commit

History

History

plugin-taotie-remove-static-toggles

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

馃悐 Putout plugin for removing simple static file based feature toggles

Taotie Proof of concept plugin for static toggles removal.

Installation

Install static toggle removal plugin putout-plugin-taotie-remove-static-toggles:

yarn add -D putout-plugin-taotie-remove-static-toggles

Add this as a plugin in the putout.json file,

{
  "plugins": ["taotie-remove-static-toggles"]
}

Usage

Specify the toggle name when running plugins TAOTIE_FEATURE_TOGGLE_NAME

Development

Run the following to test with the test/fixtures,

TAOTIE_FEATURE_TOGGLE_NAME="featureFlag" putout test/fixtures/remove-simple-if-flags.ts --rulesdir packages/plugin-taotie-remove-static-toggles/lib --fix