2.1.1 • Published 1 year ago

stylelint-config-qualtrics v2.1.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

Qualtrics StyleLint config

NPM version

stylelint-config-qualtrics

These are settings for StyleLint used by Qualtrics.

What it does

This setup lints your CSS files.

Extends stylelint-config-standard.

Feel free to override the rules that make sense for you.

Installing

npm i -D stylelint stylelint-config-qualtrics
# or
yarn add -D stylelint stylelint-config-qualtrics

Usage

If you've installed stylelint-config-qualtrics locally within your project, just set your stylelint config (such as the .stylelintrc.js file) to:

module.exports = {
  extends: "stylelint-config-qualtrics",
};

Extending the config

Simply 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, change the indentation to tabs, turn off the number-leading-zero rule,and add the unit-allowed-list rule:

module.exports = {
  extends: "stylelint-config-qualtrics",
  rules: {
    "at-rule-no-unknown": [
      true,
      {
        ignoreAtRules: ["extends", "ignores"],
      },
    ],
    indentation: "tab",
    "number-leading-zero": null,
    "unit-allowed-list": ["em", "rem", "s"],
  },
};
2.1.1

1 year ago

2.0.0-beta

2 years ago

2.0.0-beta1

2 years ago

2.0.0-beta2

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago