Git Product home page Git Product logo

create-lint-config's Introduction

create-lint-config

version PRs Welcome license npm total downloads npm month downloads downloads

English | 简体中文

An easy way to create all lint configuration.

A particularly large number of config files distracted us. Our goal is to generate these configurations quickly and easily!

Usage

1. Use default

We offer a shortcut method to generate all default configurations with one click, it includes Eslint, Prettier, StyleLint, CommitLint, husky, lint-staged, and many more.

Execute the following command at the root of your project:

# npm
npm create lint-config@latest

# yarn
yarn create lint-config

# pnpm
pnpm create lint-config@latest

screenshot

2. Use prompt step by step

You can also pass the --input / -i flag to enable more flexible options and generate the configuration you want step by step.

# npm 6.x
npm create lint-config@latest -i
# npm 7+, extra double-dash is needed:
npm create lint-config@latest -- -i

screenshot-i

3. Use --template flag

You can use templates by passing the --template flag.

# npm 6.x
npm create lint-config@latest --template vue
# npm 7+, extra double-dash is needed:
npm create lint-config@latest -- --template vue

More templates can be found in the template folder.

You can also submit your own templates via PR.

Template in plan

  • vue
  • vue2
  • vue-ts
  • react
  • react-ts
  • node
  • node-ts
  • astro
  • svelte
  • solidjs
  • and more

Features

  • Generate eslint config.
  • Generate prettier config.
  • Generate stylelint config.
  • Generate husky config.
  • Generate commitlint config.
  • And more.

CLI Flags

Name Description
--help (-h) Help info
--template <name> Use template
--input (-i) Use prompt step by step to config your wanted

ISSUE

Please contact me if you encounter any problems.

Contributing

Contribution guidelines are coming.

You can still give PR, create more template files and support more configurations.

You can also fork this project and turn it into your own scaffolding. This is allowed.

License

create-lint-config is released under the MIT License. See the bundled LICENSE file for details.

create-lint-config's People

Contributors

github-actions[bot] avatar liruifengv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

create-lint-config's Issues

Error: ✖ package.json not found

Describe the bug
运行 npm create lint-config@latest 时报错

Screenshots
16772101438018

Desktop (please complete the following information):

  • OS: windows 10
  • PowerShell 7.3.2
  • Node: v18.12.1
  • Npm: 8.19.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.