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

@13onthecode/eslint-config

v1.2.0

Published

ESLint shareable configurations

Downloads

25

Readme

@13OnTheCode/ESLint-Config

Version License

English | 简体中文

A versatile ESLint configuration library that follows best practices, offering foundational setups for JavaScript, TypeScript, Node.js, and React projects

Features

  • Follow best practices to achieve accurate and reliable code inspection
  • Flexible configuration options to cater to different project needs
  • Automatically fixing formatting without the need for Prettier
  • Integrating mainstream plugins to provide extensive functionality enhancements for projects
  • Continuously maintained and updated to support the latest versions and features

Prerequisites

Node.js

  • Version >= 16.0.0
  • ESM Project

ESLint

  • Version >= 8.23.0
  • Using Flat Config

Install

npm install @13onthecode/eslint-config --save-dev

Usage

First, ensure you're using ESM (set "type": "module" in your package.json)

Then, create ESLint configuration file eslint.config.js in the project's root directory, and import the preset configurations you need based on your project requirements:

Base

Preset configuration for pure JavaScript and TypeScript projects, excluding Node environment and .jsx and .tsx files

import { base } from '@13onthecode/eslint-config'

export default [
  ...base
]

Node

This configuration extends the Base configuration

Preset configuration for Node.js projects, providing Node environment support for JavaScript and TypeScript files

import { node } from '@13onthecode/eslint-config'

export default [
  ...node
]

React

This configuration extends the Node configuration

Preset configuration for React projects, providing support for .jsx and .tsx files

import { react } from '@13onthecode/eslint-config'

export default [
  ...react
]

Override

To override things, just concat the config you want together, for example:

import { base } from '@13onthecode/eslint-config'

export default [
  ...base,
  {
    files: ["src/**/*.js"],
    rules: {
      "no-console": "off"
    }
  }
]

FAQ

Why not Prettier?

Why not CommonJS?

Check Also

License

MIT License © 2023-PRESENT 13OnTheCode