Socket
Socket
Sign inDemoInstall

eslint-config-artisan

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-artisan

An opinionated ESLint configuration for artisans


Version published
Weekly downloads
634
decreased by-2.91%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-artisan

An opinionated ESLint configuration for artisans

Overview

This configuration is based on @antfu/eslint-config with some notable differences.

  • Single quotes, but allow uninterpolated template literals for consistency
  • Comma-delimited properties for object-like type definitions
  • Use type and interface interchangeably for type definitions
  • Braces are not required
  • Single line braces are allowed
  • Parenthesis for arrow functions are optional

How to use it

Install the package in your project.

# npm
npm i -D eslint-config-artisan

# pnpm
pnpm add -D eslint-config-artisan

# yarn
yarn add -D eslint-config-artisan

Add it to your .eslintrc file.

{
  "extends": "artisan"
}

Add some scripts to your package.json.

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
  }
}

Keywords

FAQs

Package last updated on 31 Dec 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