New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@assemble-inc/eslint-config-asm

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assemble-inc/eslint-config-asm

Assemble front-end linting and formatting rules

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46
decreased by-38.67%
Maintainers
0
Weekly downloads
 
Created
Source

ASMBL ESLint Configuration

This package contains ASMBL's ESLint configurations for JavaScript projects.

ESLint is used for enforcement of code quality across ASMBL projects.

All ESLint rules enforcing code style have been disabled in favor of using prettier for code formatting deprecated.

Installation

From the root of your package, install the ASMBL configuration:

yarn add --dev @assemble-inc/eslint-config-asm

or

pnpm add --dev @assemble-inc/eslint-config-asm

or

bun add --dev @assemble-inc/eslint-config-asm

Configuration

Add Linting Scripts

Add the following scripts to your package.json.

"scripts": {
  "lint": "eslint \"src/**/*.{jsx,js}\"",
  "lint:fix": "eslint \"src/**/*.{jsx,js}\" --fix"
},

Import the linting configuration

The ASMBL configuration needs to be imported into ESLint. Add the following to your package.json.

  "eslintConfig": {
    "extends": [
      "@assemble-inc/eslint-config-asm"
    ],
    "env": {
      "browser": true,
      "node": true
    }
  },

That's it! No eslint config file required.

Usage

The lint:fix script will automatically attempt to fix reported errors and warnings. Running lint will report errors/warnings without attempting to fix them.

FAQs

Package last updated on 15 Nov 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