npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-4bh1-ts-eslint

v1.0.7

Published

`create-4bh1-ts-eslint` is a CLI tool that helps you quickly set up a new TypeScript project with ESLint pre-configured. This tool automates the setup process, enabling you to start developing with a clean, linted TypeScript environment from the get-go.

Downloads

447

Readme

create-4bh1-ts-eslint

create-4bh1-ts-eslint is a CLI tool that helps you quickly set up a new TypeScript project with ESLint pre-configured. This tool automates the setup process, enabling you to start developing with a clean, linted TypeScript environment from the get-go.

Features

  • TypeScript Configuration: Initializes a TypeScript project with tsconfig.json configured for best practices.
  • ESLint Setup: Automatically sets up ESLint with TypeScript support and popular plugins.
  • Predefined Rules: Comes with sensible ESLint rules tailored for TypeScript development.
  • Git Ignore: Adds a .gitignore file for common Node.js and TypeScript-related files and directories.
  • VS Code Integration: Includes VS Code settings for optimal TypeScript and ESLint integration.
  • NPM Scripts: Pre-configured npm scripts for building, development, and linting.

Installation & Usage

To create a new TypeScript project, run:

npx create-4bh1-ts-eslint@latest

Follow the prompts to name your project. The tool will automatically:

  1. Create a new project directory
  2. Set up TypeScript configuration
  3. Configure ESLint with TypeScript support
  4. Install necessary dependencies
  5. Create initial project structure

Project Structure

After running the tool, your project will have the following structure:

your-project/
├── .vscode/
│   └── settings.json
├── src/
│   └── index.ts
├── .eslintrc.mjs
├── .gitignore
├── package.json
└── tsconfig.json

Included Scripts

The following npm scripts are included in your package.json:

  • npm run dev - Run the development server using ts-node
  • npm run build - Build the TypeScript project
  • npm run lint:check - Check for linting issues
  • npm run lint:fix - Automatically fix linting issues

Dependencies

The project includes the following development dependencies:

  • typescript
  • eslint
  • @eslint/js
  • @typescript-eslint
  • globals
  • @types/node
  • ts-node

VS Code Integration

The project includes VS Code settings that:

  • Enable ESLint integration for various file types
  • Configure flat config support for ESLint

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.