Socket
Socket
Sign inDemoInstall

eslint-config-volue

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-volue

Volue ESLint configs


Version published
Weekly downloads
153
decreased by-40.23%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-volue

Version npm

ESLint configuration presets for Volue projects.

Usage

Common

npm i -D eslint eslint-config-volue

Add to your .eslintrc

{
  "extends": "volue"
}

Babel

To use the Babel rule set:

npm i -D eslint eslint-config-volue @babel/eslint-parser

Add this to your .eslintrc:

{
  "extends": "volue/babel"
}

TypeScript

To use the TypeScript rule set:

npm i -D eslint eslint-config-volue @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-import-resolver-typescript

Add this to your .eslintrc:

{
  "extends": "volue/typescript"
}

React

To use the React rule set:

npm i -D eslint eslint-config-volue eslint-plugin-react eslint-plugin-react-hooks

Add this to your .eslintrc:

{
  "extends": "volue/react"
}

Import

To use the eslint-plugin-import rule set:

npm i -D eslint eslint-config-volue eslint-plugin-import

Add this to your .eslintrc:

{
  "extends": "volue/import"
}

Jest

To use the Jest rule set:

npm i -D eslint eslint-config-volue eslint-plugin-jest

Add this to your .eslintrc:

{
  "extends": "volue/jest"
}

css-modules

To use the eslint-plugin-css-modules rule set:

npm i -D eslint eslint-config-volue eslint-plugin-css-modules

Add this to your .eslintrc:

{
  "extends": "volue/css-modules"
}

Composition

You can use any combination of these presets.

Install the dependencies:

npm i -D eslint eslint-config-volue eslint-plugin-import @babel/eslint-parser @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-jest eslint-plugin-css-modules

.eslintrc:

{
  "extends": [
    "volue",
    "volue/babel",
    "volue/import",
    "volue/typescript",
    "volue/react",
    "volue/jest",
    "volue/css-modules"
  ],
  "rules": {
    // custom tweaks
  }
}

Patch

Our shareable config uses rules from external plugins such as eslint-plugin-prettier. This patch improves how ESLint loads plugins when working for example in a monorepo, see: https://github.com/eslint/eslint/issues/3458

.eslintrc.js

// Patch ESLint module resolution to find shared configs' plugins
require('eslint-config-volue/patch/modern-module-resolution');

module.exports = {
  extends: ['volue']
};

Keywords

FAQs

Package last updated on 17 Jul 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