| Crates.io | lint-init |
| lib.rs | lint-init |
| version | 0.2.0 |
| created_at | 2022-04-10 10:46:58.495044+00 |
| updated_at | 2022-04-10 13:21:19.040738+00 |
| description | A cli for init lint config that wrote by rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 565034 |
| size | 16,218 |
A cli for init lint config that wrote by rust.
# Install Rust
curl https://sh.rustup.rs -sSf | sh
# Install lint-init
cargo install lint-init
lint-init -h
lint-init --template typescript --dir ../react-app
lint-init --template typescript --dir . --auto-install
**Tips: --auto-install only work when dir value is . **.
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
parse args
add a variety of templates
auto create dir and file
auto run npm/yarn install
interact with select template
unit test
support web assembly