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

stylelint-config-astro

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

stylelint-config-astro

A shareable Stylelint config for linting Astro files.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by29.92%
Maintainers
1
Weekly downloads
 
Created
Source

stylelint-config-astro

A shareable Stylelint config for linting Astro (.astro) files :rocket:

The low down

This config bundles postcss-html and configures it to parse .astro files so you can use Stylelint on the <style></style> section within those components.

Minimum Requirements

This package is compatible with the following peer dependencies:

Installation

# Using npm
npm install --save-dev postcss-html stylelint-config-astro

# Using Yarn
yarn add --dev postcss-html stylelint-config-astro

Usage

Append to the extends array in your .stylelintrc.* file. It's usually best placed after your other rulesets.

{
    "extends": [
        // other configs ...
        "stylelint-config-astro"
    ]
}

Integrations

Visual Studio Code

Use the official stylelint.vscode-stylelint extension.

Add the .astro file extension to stylelint.validate under settings to enable linting for Astro files.

.vscode/settings.json:

{
    "stylelint.validate": [
        // other file extensions...
        "astro"
    ]
}

Credits

Although this package is not a direct fork it heavily leverages the the work of @ota-meshi in stylelint-config-html.

Keywords

FAQs

Package last updated on 05 Jul 2022

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