Socket
Book a DemoInstallSign in
Socket

orimay-config-eslint-nuxt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orimay-config-eslint-nuxt

1.0.5
latest
npmnpm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

orimay-config-eslint-nuxt

A complete ESLint configuration for Vue projects with seamless Nuxt integration. This package builds on the robust orimay-config-eslint setup by extending it with Vue-specific rules and providing a helper to integrate with Nuxt's ESLint config composer.

Features

  • Vue-Specific Rules:
    Configures Vue rules like block order, HTML self-closing, operator linebreaks, and more to enforce best practices in Vue components.

  • Nuxt Integration:
    Provides the fromNuxtConfigComposer function to easily merge your Nuxt ESLint configuration with our extended rules.

  • Base Config Merge:
    Leverages the solid foundation from orimay-config-eslint and enhances it with additional rules for Vue, Typescript, and more.

  • Readonly Rule Cleanup:
    Automatically removes a list of ESLint rules deemed read-only to prevent accidental overrides.

Installation

Install the package and its required peer dependencies:

npm install --save-dev eslint orimay-config-eslint-nuxt

Or with pnpm:

pnpm add -D eslint orimay-config-eslint-nuxt

Note: Ensure you have ESLint version ^9.15.0 installed as it is required by this configuration.

Usage

Standard ESLint Setup

If you're using ESLint's flat config system, create or update your configuration file (for example, eslint.config.mts) as follows:

import { fromNuxtConfigComposer } from 'orimay-config-eslint-nuxt';
import nuxtConfigComposer from './.nuxt/eslint.config.mjs';

export default fromNuxtConfigComposer(nuxtConfigComposer);

How It Works

  • Base Configuration:: It starts by importing the base ESLint configuration from orimay-config-eslint along with the TypeScript ESLint setup.
  • Vue Rules Extension: Vue-specific rules are merged in to handle aspects like component order, HTML indentation, self-closing tags, and more.
  • Nuxt Integration: The helper function fromNuxtConfigComposer loops through the merged configuration, combining files, ignores, plugins, and rules. It then cleans up any read-only fields before integrating with your Nuxt ESLint composer.
  • Final Composition: The final configuration is appended and rules are overridden using your Nuxt config composer, ensuring a smooth setup for Vue projects using Nuxt.

Contributing

Contributions, bug reports, and feature requests are welcome. If you have suggestions or improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. Feel free to use and contribute!

For issues or suggestions, please open an issue.

Authors

Keywords

eslint

FAQs

Package last updated on 24 Jul 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.