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

@nuxtjs/eslint-module

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/eslint-module

ESLint module for Nuxt

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
102K
decreased by-17.85%
Maintainers
7
Weekly downloads
 
Created

What is @nuxtjs/eslint-module?

@nuxtjs/eslint-module is a Nuxt.js module that integrates ESLint into your Nuxt.js project. It allows you to lint your code on save, during development, and as part of your build process, ensuring that your code adheres to specified coding standards and best practices.

What are @nuxtjs/eslint-module's main functionalities?

Linting on Save

This feature allows you to automatically lint and fix your code every time you save a file. The 'fix' option is set to true to automatically fix linting errors when possible.

module.exports = {
  buildModules: [
    '@nuxtjs/eslint-module'
  ],
  eslint: {
    fix: true
  }
}

Custom ESLint Configuration

This feature allows you to customize the ESLint configuration. You can specify the path to the ESLint binary, the file extensions to lint, and whether to emit warnings and errors.

module.exports = {
  buildModules: [
    '@nuxtjs/eslint-module'
  ],
  eslint: {
    eslintPath: 'eslint',
    extensions: ['js', 'vue'],
    emitWarning: true,
    emitError: true
  }
}

Linting During Build

This feature enables linting during the build process. Setting 'lintOnBuild' to true ensures that your code is linted as part of the build, helping to catch and fix issues before deployment.

module.exports = {
  buildModules: [
    '@nuxtjs/eslint-module'
  ],
  eslint: {
    lintOnBuild: true
  }
}

Other packages similar to @nuxtjs/eslint-module

FAQs

Package last updated on 18 May 2023

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