1. @zazen/eslint-config
Lint JavaScript, free of weariness and confusion
@zazen/eslint-config
Package: @zazen/eslint-config
Created by: stormwarning
Last modified: Thu, 08 Feb 2024 18:11:00 GMT
Version: 6.8.0
License: ISC
Downloads: 124
Repository: https://github.com/stormwarning/zazen

Install

npm install @zazen/eslint-config
yarn add @zazen/eslint-config

zazen-eslint-config

npm version
npm downloads

ESLint configuration for zazen-generated projects.

Usage

Install the conventions by running:

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

Add the extends to your .eslintrc.js:

 {
    extends: ['@zazen'],
    rules: { /* … */ },
}

Add the Prettier settings to your package.json:

 "prettier": {
    "semi": false,
    "singleQuote": true,
    "trailingComma": "all"
},

Node projects

Extend the base config as well as the Node-specific rules:

 {
    extends: ['@zazen', '@zazen/eslint-config/node'],
    rules: { /* … */ },
}

TypeScript projects

Extend the base config as well as the TypeScript-specific rules:

 {
    extends: ['@zazen', '@zazen/eslint-config/typescript'],
    rules: { /* … */ },
}

This can be used for JavaScript code as well, but will require a tsconfig.json file to be present.

Vue.js projects

Removed for now until/unless I get more opinionated about Vue code. For now, install eslint-plugin-vue per-project, and extend the recommended config in addition to the base config here.

 {
    extends: [
        'plugin:vue/[vue3-]recommended',
        '@zazen',
        'prettier',
    ],
    rules: { /* … */ },
}

The TypeScript rules can be included as well, but remember to set the parser option correctly.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code