1. eslint-config-unjs
ESLint config for unjs projects
eslint-config-unjs
Package: eslint-config-unjs
Created by: unjs
Last modified: Fri, 03 May 2024 13:07:49 GMT
Version: 0.3.1
License: MIT
Downloads: 6,562
Repository: https://github.com/unjs/eslint-config

Install

npm install eslint-config-unjs
yarn add eslint-config-unjs

eslint-config-unjs

Sharable ESLint config preset for usage across unjs repositories.

✅ Includes:

Getting started

[!NOTE]
This preset uses the new ESLint flat config.

Install dependencies:

 npx nypm install -D eslint typescript eslint-config-unjs

Create eslint.config.mjs in your project root:

 import unjs from "eslint-config-unjs";

export default unjs({
  ignores: [
    // ignore paths
  ],
  rules: {
    // rule overrides
  },
  markdown: {
    rules: {
      // markdown rule overrides
    },
  },
});

Tips:

  • You can pass any number of flat configs to unjs preset wrapper
  • Types for rules are auto generated using antfu/eslint-typegen.

License

MIT

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin