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

stylelint-config-werk85

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-werk85

Default stylelint configuration for all werk85 projects

  • 1.0.0-beta.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

stylelint-config-werk85

Default stylelint configuration for all werk85 projects

Installation

yarn add stylelint-config-werk85 stylelint -D

Usage

Create a .stylelintrc.json file in your project root and add the following content

{
  "extends": "stylelint-config-werk85"
}

If you also use scss

{
  "extends": [
    "stylelint-config-werk85",
    "stylelint-config-werk85/scss"
  ]
}

If use styled-components

It is recommended to install the vscode-styled-components Extension for having syntax highlighting and IntelliSense for styled-components as well.

{
  "extends": [
    "stylelint-config-werk85",
    "stylelint-config-werk85/styled"
  ]
}

Project additions

Following additions to your project are recommended

Script

For convenience you can add the following npm scripts to your package.json

{
  "scripts": {
    "lint:styles": "stylelint src/**/*.{scss,tsx}",
    "lint:styles:fix": "yarn lint:styles --fix",
  }
}

To ensure usage of recommended extension you can add following to .vscode/extensions.json within your project.

{
  "recommendations": [
    "styled-components.vscode-styled-components",
    "stylelint.vscode-stylelint"
  ]
}

Trouble shooting

stylelint does not lint my scss or css files

Make sure to have in your or the workspace VSCode settings the following defined:

"stylelint.validate": [
  "css",
  "scss"
]

How to release

Make sure you have added all files you want to be included in the release in the package.jsons files property.

Logon to NPM Package Registry via

npm login

Bump version in package.json and run

npm publish

FAQs

Package last updated on 10 May 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