1.0.0 • Published 2 years ago

ec0lint-css-config-recommended v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ec0lint-config-recommended

NPM version

Website

The recommended shareable config for ec0lint-css.

It turns on all the ec0lint-css rules.

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

Installation

npm i ec0lint-css-config-recommended

Usage

Set your ec0lint-css config to:

{
  "extends": "ec0lint-css-config-recommended"
}

Extending the config

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

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, turn off the block-no-empty rule, and add the unit-allowed-list rule:

{
  "extends": "ec0lint-css-config-recommended",
  "rules": {
    "at-rule-no-unknown": [
      true,
      {
        "ignoreAtRules": ["extends"]
      }
    ],
    "block-no-empty": null,
    "unit-allowed-list": ["em", "rem", "s"]
  }
}

ec0lint mission

ec0lint is a static code analysis tool that provides users with hints on how to reduce the carbon footprint of their websites during the development process. Applying code changes suggested by ec0lint results in lower carbon emissions per visit, quicker loading and higher space efficiency. The tool is open-source and community-driven.

Learn more at our page

Changelog

License

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago