Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qingshaner/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qingshaner/eslint-config

ESLint configs for qingshaner

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

ESLint Config

A collection of ESLint configurations for different types of projects.

To use this configuration, it's highly recommended to include biome logo Biome as part of your linter tool for optimal results.

jsr package NPM Version LICENSE Linted with Biome Static Badge

📦 Installation

npm install --save-dev @qingshaner/eslint-config

🚀 Usage

// eslint.config.mjs

import { resolve } from 'node:path'

import { presetESLintConfig } from '@qingshaner/eslint-config'

const ROOT = import.meta.dirname // this require Node.js 20+

// Node.js < 20
// const ROOT = new URL('.', import.meta.url).pathname

export default presetESLintConfig({
  a11y: true,
  biome: true,
  ignores: [resolve(ROOT, '.gitignore')],
  jsonc: true,
  perfectionist: true,
  prettier: true,
  typescript: [ROOT],
  vue: true
})

Also provide a optional Biome configuration.

// biome.json

{
  "$schema": "node_modules/@biomejs/biome/configuration_schema.json",
  "extends": ["@qingshaner/eslint-config/biome"],
  "files": {
    "ignoreUnknown": true
  },
  "javascript": {
    "jsxRuntime": "transparent"
  }
}

🧩 Builtin Plugins

A11y

Include plugins

Biome

Disable Biome has implemented rules.

react-plugin-refresh, react-plugin-react-hooks is replaced by Biome.

JavaScript, TypeScript, CSS is formatted by Biome.

JSON or JSONC

antfu/sort/package-json is used to sort package.json. antfu/sort/tsonfig-json is used to sort *.tsconfig.json.

Include plugins

Perfectionist

Sort import statements, sort object properties.

Include plugins

Prettier

Format code with Prettier, if the file can't be formatted by Biome, it will be formatted by Prettier.

Incude plugins

React

For React project.

Include plugins

TypeScript

For TypeScript project.

Include plugins

UnoCSS

Include plugins

Vue

For Vue2 | Vue3 project.

Include plugins

✨ Inspiration

📄 License

MIT License © 2023-Present qingshaner

Keywords

FAQs

Package last updated on 28 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc