Socket
Socket
Sign inDemoInstall

@meshtastic/eslint-config

Package Overview
Dependencies
12
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @meshtastic/eslint-config

[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/meshtastic/web-config) ![NPM](https://badgen.net/npm/v/@meshtastic/eslint-config) ![Downloads](https://badgen.net/npm/dt/@meshtastic/eslint-config)


Version published
Maintainers
1
Created

Readme

Source

Meshtastic Web Config

Open in Visual Studio Code NPM Downloads CI

Overview

This package includes configurations for ESLint and Prettier used by Meshtastic for there JavaScript/TypeScript projects.

Installation & Usage

The library is available from NPM and can be installed with:

pnpm add @meshtastic/eslint-config prettier

Create ESLint and Prettier configuration files in your project root directory with the following content:

// .eslintrc.cjs

/** @type {import("eslint").Linter.Config} */
module.exports = {
  extends: '@meshtastic/eslint-config',
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],
  },
};
// .prettierrc

"@meshtastic/eslint-config/prettier"

It is recommended to setup a format/linting script:

// package.json

"scripts": {
  "format": "prettier --write 'src/**/*.{ts,tsx}' && eslint src/*.{ts,tsx}"
},

FAQs

Last updated on 13 Apr 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc