Skip to content

echoLC/lint_init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lint-init

A cli for init lint config that wrote by rust.

Installation

Install by cargo

# Install Rust
curl https://sh.rustup.rs -sSf | sh

# Install lint-init
cargo install lint-init

lint-init -h

Usage

Init config specify dir

lint-init --template typescript --dir ../react-app

Init config current dir and auto install dependencies

lint-init --template typescript --dir . --auto-install

Tips: --auto-install only work when dir value is ..

Features

Init lint config for a project.

$ lint-init --version

USAGE:
    lint-init[EXE] [OPTIONS] --template <TEMPLATE>

OPTIONS:
    -t, --template <TEMPLATE>  Template of lint config, the value of template: typescript, reactTs, pureJs, prettier etc.
    -d, --dir              Target dir of generate config, the default value is '.'
    -a, --auto-install     Auto install eslint、eslint-plugin dependencies
    -h, --help             Print help information
    -V, --version          Print version information

TODO

  • parse args

  • add a variety of templates

  • auto create dir and file

  • auto run npm/yarn install

  • interact with select template

  • add ci workflow

  • unit test

  • refactoring

  • support web assembly

About

A cli for init lint config that wrote by rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages