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

eslint-config-mana

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-mana

Mana ESLint + Prettier configuration

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Mana ESLint + Prettier Configuration

Abstract

These are our shared settings for ESLint and Prettier. This ESLint configuration lints and formats our code so it follows our shared style guide. It uses ESLint to lint and fix Javascript, and Prettier to fix issues and format our code consistently.

Installation

Install the package with:

yarn add eslint-config-mana --dev

eslint-config-mana requires you to take care of it's peerDependencies. Install the correct version of each peerDependencies package, which are listed with the following command:

npx install-peerdeps --dev eslint-config-mana

ESLint Configuration

Now add eslint-config-mana to your .eslintrc.js:

// .eslintrc.js
module.exports = {
    extends: ['eslint-config-mana'],
}

Prettier Configuration

This is how you can use or extend the eslint-config-mana Prettier config in your app:

// .prettierrc.js
module.exports = require('eslint-config-mana/.prettierrc.js')

// or to override specific options
module.exports = {
    ...require('eslint-config-mana/.prettierrc.js'),
    semi: true,
    bracketSameLine: false,
}

Publishing

To publish, simply run npm publish. Ensure that your NPM_TOKEN is set in your environment variables. If you don't have access, make sure your npm user has permission to publish to the manafinance npm organization.


Notes

FAQs

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