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

stylelint-config-firefoxic

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

stylelint-config-firefoxic

Stylelint shareable config for the firefoxic code guide

3.0.2-0
unpublished
next
Source
npm
Version published
Maintainers
1
Created
Source

stylelint-config-firefoxic

Test Status License: MIT NPM version Vulnerabilities count

The shareable config for Stylelint from firefoxic.

Use it as is or as a foundation for your own config.

To see the rules that this config uses, please read the config itself.

Installation

npm i -D stylelint-config-firefoxic

Usage

Set your stylelint config to:

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

Or specify an absolute path when installing the package globally.

{
	"extends": "/absolute/path/to/stylelint-config-firefoxic"
}

Extending the config

Add a "rules" key to your config, then add your overrides and additions there.

You can turn off rules by setting its value to null. For example:

{
	"extends": "stylelint-config-firefoxic",
	"rules": {
		"selector-not-notation": null
	}
}

Or lower the severity of a rule to a warning using the severity secondary option. For example:

{
	"extends": "stylelint-config-firefoxic",
	"rules": {
		"property-no-vendor-prefix": [
			true,
			{
				"severity": "warning"
			}
		]
	}
}

If your styles syntax is different from CSS, then install the package of the syntax you need, specify it at the beginning of your configuration file and add or override some rules:

{
	"customSyntax": "postcss-scss",
	"extends": "stylelint-config-firefoxic",
	"rules": {
		"at-rule-no-unknown": [
			true,
			{
				"ignoreAtRules": [
					"mixin",
					"include"
				]
			}
		]
	}
}

Usage in VSCode

  • Install stylelint plugin for VSCode
  • Install stylelint:
    • globally — npm i -g stylelint
    • or locally in your project — npm i -D stylelint
  • Inconsistencies with stylelint-config-firefoxic rules will be underlined with a red wavy line.

Keywords

style

FAQs

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