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

@sanity/eslint-config-studio

Package Overview
Dependencies
Maintainers
65
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/eslint-config-studio

The ESLint configuration that ships with new Sanity Studio projects. Designed to be relatively unobtrusive to help find bugs instead enforce opinions.

  • 5.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
40K
decreased by-21.1%
Maintainers
65
Weekly downloads
 
Created
Source

@sanity/eslint-config-studio

The ESLint configuration that ships with new Sanity Studio projects.

Designed to be relatively unobtrusive to help find bugs instead enforce opinions.

Installation

Install

yarn add eslint @sanity/eslint-config-studio --dev

or

npm install eslint @sanity/eslint-config-studio --save-dev

Update the configuration

Add the following to eslint.config.mjs

import studio from '@sanity/eslint-config-studio'

export default [...studio]

Version compatibility

This package is designed to work with ESLint >= 9, which supports/uses the new "flat configuration" format.

If you are using ESLint <= 8, you should install and use @sanity/eslint-config-studio@4.

Differences from eslint-config-sanity

eslint-config-sanity@sanity/eslint-config-studio
Use caseinternal projectsoffered publicly to be used in the Sanity Studio
Rule setopinionated, enforces internal conventionsunobtrusive, unopinionated, offered solely to catch bugs
Dependenciescontains many presets but must install each plugincontains only one preset, but install plugins for you*

Since this package includes dependencies to plugins, it will never have more than one preset.

Release new version

Run "CI & Release" workflow. Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

Keywords

FAQs

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