Skip to content

Instantly share code, notes, and snippets.

@zebapy
Last active January 8, 2020 14:48
Show Gist options
  • Select an option

  • Save zebapy/30cf11cc603535e6fd75e926bd2342d9 to your computer and use it in GitHub Desktop.

Select an option

Save zebapy/30cf11cc603535e6fd75e926bd2342d9 to your computer and use it in GitHub Desktop.
module.exports = {
rules: {
/**
* Possible errors
*/
'color-no-invalid-hex': null, // Disallow invalid hex colors.
'font-family-no-duplicate-names': null, // Disallow duplicate font family names.
'font-family-no-missing-generic-family-keyword': null, // Disallow missing generic families in lists of font family names.
'function-calc-no-invalid': null, // Disallow an invalid expression within calc functions.
'function-calc-no-unspaced-operator': null, // Disallow an unspaced operator within calc functions.
'function-linear-gradient-no-nonstandard-direction': null, // Disallow direction values in linear-gradient() calls that are not valid according to the standard syntax.
'string-no-newline': null, // Disallow (unescaped) newlines in strings.
'unit-no-unknown': null, // Disallow unknown units.
'property-no-unknown': null, // Disallow unknown properties.
'keyframe-declaration-no-important': null, // Disallow !important within keyframe declarations.
'declaration-block-no-duplicate-properties': null, // Disallow duplicate properties within declaration blocks.
'declaration-block-no-shorthand-property-overrides': null, // Disallow shorthand properties that override related longhand properties.
'block-no-empty': null, // Disallow empty blocks.
'selector-pseudo-class-no-unknown': null, // Disallow unknown pseudo-class selectors.
'selector-pseudo-element-no-unknown': null, // Disallow unknown pseudo-element selectors.
'selector-type-no-unknown': null, // Disallow unknown type selectors.
'media-feature-name-no-unknown': null, // Disallow unknown media feature names.
'at-rule-no-unknown': null, // Disallow unknown at-rules.
'comment-no-empty': null, // Disallow empty comments.
'no-descending-specificity': null, // Disallow selectors of lower specificity from coming after overriding selectors of higher specificity.
'no-duplicate-at-import-rules': null, // Disallow duplicate @import rules within a stylesheet.
'no-duplicate-selectors': null, // Disallow duplicate selectors within a stylesheet.
'no-empty-source': null, // Disallow empty sources.
'no-extra-semicolons': null, // Disallow extra semicolons (Autofixable).
'no-invalid-double-slash-comments': null, // Disallow double-slash comments (//...) which are not supported by CSS.
/**
* Limit language features
*/
'color-named': null, // Require (where possible) or disallow named colors.
'color-no-hex': null, // Disallow hex colors.
'function-blacklist': null, // Specify a blacklist of disallowed functions.
'function-url-no-scheme-relative': null, // Disallow scheme-relative urls.
'function-url-scheme-blacklist': null, // Specify a blacklist of disallowed URL schemes.
'function-url-scheme-whitelist': null, // Specify a whitelist of allowed URL schemes.
'function-whitelist': null, // Specify a whitelist of allowed functions.
'keyframes-name-pattern': null, // Specify a pattern for keyframe names.
'number-max-precision': null, // Limit the number of decimal places allowed in numbers.
'time-min-milliseconds': null, // Specify the minimum number of milliseconds for time values.
'unit-blacklist': null, // Specify a blacklist of disallowed units.
'unit-whitelist': null, // Specify a whitelist of allowed units.
'shorthand-property-no-redundant-values': null, // Disallow redundant values in shorthand properties (Autofixable).
'value-no-vendor-prefix': null, // Disallow vendor prefixes for values.
'custom-property-pattern': null, // Specify a pattern for custom properties.
'property-blacklist': null, // Specify a blacklist of disallowed properties.
'property-no-vendor-prefix': null, // Disallow vendor prefixes for properties.
'property-whitelist': null, // Specify a whitelist of allowed properties.
'declaration-block-no-redundant-longhand-properties': null, // Disallow longhand properties that can be combined into one shorthand property.
'declaration-no-important': null, // Disallow !important within declarations.
'declaration-property-unit-blacklist': null, // Specify a blacklist of disallowed property and unit pairs within declarations.
'declaration-property-unit-whitelist': null, // Specify a whitelist of allowed property and unit pairs within declarations.
'declaration-property-value-blacklist': null, // Specify a blacklist of disallowed property and value pairs within declarations.
'declaration-property-value-whitelist': null, // Specify a whitelist of allowed property and value pairs within declarations.
'declaration-block-single-line-max-declarations': null, // Limit the number of declarations within a single-line declaration block.
'selector-attribute-operator-blacklist': null, // Specify a blacklist of disallowed attribute operators.
'selector-attribute-operator-whitelist': null, // Specify a whitelist of allowed attribute operators.
'selector-class-pattern': null, // Specify a pattern for class selectors.
'selector-combinator-blacklist': null, // Specify a blacklist of disallowed combinators.
'selector-combinator-whitelist': null, // Specify a whitelist of allowed combinators.
'selector-id-pattern': null, // Specify a pattern for ID selectors.
'selector-max-attribute': null, // Limit the number of attribute selectors in a selector.
'selector-max-class': null, // Limit the number of classes in a selector.
'selector-max-combinators': null, // Limit the number of combinators in a selector.
'selector-max-compound-selectors': null, // Limit the number of compound selectors in a selector.
'selector-max-empty-lines': null, // Limit the number of adjacent empty lines within selectors (Autofixable).
'selector-max-id': null, // Limit the number of ID selectors in a selector.
'selector-max-pseudo-class': null, // Limit the number of pseudo-classes in a selector.
'selector-max-specificity': null, // Limit the specificity of selectors.
'selector-max-type': null, // Limit the number of type in a selector.
'selector-max-universal': null, // Limit the number of universal selectors in a selector.
'selector-nested-pattern': null, // Specify a pattern for the selectors of rules nested within rules.
'selector-no-qualifying-type': null, // Disallow qualifying a selector by type.
'selector-no-vendor-prefix': null, // Disallow vendor prefixes for selectors.
'selector-pseudo-class-blacklist': null, // Specify a blacklist of disallowed pseudo-class selectors.
'selector-pseudo-class-whitelist': null, // Specify a whitelist of allowed pseudo-class selectors.
'selector-pseudo-element-blacklist': null, // Specify a blacklist of disallowed pseudo-element selectors.
'selector-pseudo-element-whitelist': null, // Specify a whitelist of allowed pseudo-element selectors.
'media-feature-name-blacklist': null, // Specify a blacklist of disallowed media feature names.
'media-feature-name-no-vendor-prefix': null, // Disallow vendor prefixes for media feature names.
'media-feature-name-value-whitelist': null, // Specify a whitelist of allowed media feature name and value pairs.
'media-feature-name-whitelist': null, // Specify a whitelist of allowed media feature names.
'custom-media-pattern': null, // Specify a pattern for custom media query names.
'at-rule-blacklist': null, // Specify a blacklist of disallowed at-rules.
'at-rule-no-vendor-prefix': null, // Disallow vendor prefixes for at-rules.
'at-rule-property-requirelist': null, // Specify a requirelist of properties for an at-rule.
'at-rule-whitelist': null, // Specify a whitelist of allowed at-rules.
'comment-word-blacklist': null, // Specify a blacklist of disallowed words within comments.
'max-nesting-depth': null, // Limit the depth of nesting.
'no-unknown-animations': null, // Disallow unknown animations.
/*
* Stylistic issues
*/
'color-hex-case': null, //Specify lowercase or uppercase for hex colors (Autofixable).
'color-hex-length': null, //Specify short or long notation for hex colors (Autofixable).
'font-family-name-quotes': null, //Specify whether or not quotation marks should be used around font family names.
'font-weight-notation': null, //Require numeric or named (where possible) font-weight values. Also, when named values are expected, require only valid names.
'function-comma-newline-after': null, //Require a newline or disallow whitespace after the commas of functions (Autofixable).
'function-comma-newline-before': null, //Require a newline or disallow whitespace before the commas of functions (Autofixable).
'function-comma-space-after': null, //Require a single space or disallow whitespace after the commas of functions (Autofixable).
'function-comma-space-before': null, //Require a single space or disallow whitespace before the commas of functions (Autofixable).
'function-max-empty-lines': null, //Limit the number of adjacent empty lines within functions (Autofixable).
'function-name-case': null, //Specify lowercase or uppercase for function names (Autofixable).
'function-parentheses-newline-inside': null, //Require a newline or disallow whitespace on the inside of the parentheses of functions (Autofixable).
'function-parentheses-space-inside': null, //Require a single space or disallow whitespace on the inside of the parentheses of functions (Autofixable).
'function-url-quotes': null, //Require or disallow quotes for urls.
'function-whitespace-after': null, //Require or disallow whitespace after functions (Autofixable).
'number-leading-zero': null, //Require or disallow a leading zero for fractional numbers less than 1 (Autofixable).
'number-no-trailing-zeros': null, //Disallow trailing zeros in numbers (Autofixable).
'string-quotes': null, //Specify single or double quotes around strings (Autofixable).
'length-zero-no-unit': null, //Disallow units for zero lengths (Autofixable).
'unit-case': null, //Specify lowercase or uppercase for units (Autofixable).
'value-keyword-case': null, // Specify lowercase or uppercase for keywords values (Autofixable).
'value-list-comma-newline-after': null, // Require a newline or disallow whitespace after the commas of value lists (Autofixable).
'value-list-comma-newline-before': null, // Require a newline or disallow whitespace before the commas of value lists.
'value-list-comma-space-after': null, // Require a single space or disallow whitespace after the commas of value lists (Autofixable).
'value-list-comma-space-before': null, // Require a single space or disallow whitespace before the commas of value lists (Autofixable).
'value-list-max-empty-lines': null, // Limit the number of adjacent empty lines within value lists (Autofixable).
'custom-property-empty-line-before': null, // Require or disallow an empty line before custom properties (Autofixable).
'property-case': null, // Specify lowercase or uppercase for properties (Autofixable).
'declaration-bang-space-after': null, // Require a single space or disallow whitespace after the bang of declarations (Autofixable).
'declaration-bang-space-before': null, // Require a single space or disallow whitespace before the bang of declarations (Autofixable).
'declaration-colon-newline-after': null, // Require a newline or disallow whitespace after the colon of declarations (Autofixable).
'declaration-colon-space-after': null, // Require a single space or disallow whitespace after the colon of declarations (Autofixable).
'declaration-colon-space-before': null, // Require a single space or disallow whitespace before the colon of declarations (Autofixable).
'declaration-empty-line-before': null, // Require or disallow an empty line before declarations (Autofixable).
'declaration-block-semicolon-newline-after': null, // Require a newline or disallow whitespace after the semicolons of declaration blocks (Autofixable).
'declaration-block-semicolon-newline-before': null, // Require a newline or disallow whitespace before the semicolons of declaration blocks.
'declaration-block-semicolon-space-after': null, // Require a single space or disallow whitespace after the semicolons of declaration blocks (Autofixable).
'declaration-block-semicolon-space-before': null, // Require a single space or disallow whitespace before the semicolons of declaration blocks (Autofixable).
'declaration-block-trailing-semicolon': null, // Require or disallow a trailing semicolon within declaration blocks (Autofixable).
'block-closing-brace-empty-line-before': null, // Require or disallow an empty line before the closing brace of blocks (Autofixable).
'block-closing-brace-newline-after': null, // Require a newline or disallow whitespace after the closing brace of blocks (Autofixable).
'block-closing-brace-newline-before': null, // Require a newline or disallow whitespace before the closing brace of blocks (Autofixable).
'block-closing-brace-space-after': null, // Require a single space or disallow whitespace after the closing brace of blocks.
'block-closing-brace-space-before': null, // Require a single space or disallow whitespace before the closing brace of blocks (Autofixable).
'block-opening-brace-newline-after': null, // Require a newline after the opening brace of blocks (Autofixable).
'block-opening-brace-newline-before': null, // Require a newline or disallow whitespace before the opening brace of blocks (Autofixable).
'block-opening-brace-space-after': null, // Require a single space or disallow whitespace after the opening brace of blocks (Autofixable).
'block-opening-brace-space-before': null, // Require a single space or disallow whitespace before the opening brace of blocks (Autofixable).
'selector-attribute-brackets-space-inside': null, // Require a single space or disallow whitespace on the inside of the brackets within attribute selectors (Autofixable).
'selector-attribute-operator-space-after': null, // Require a single space or disallow whitespace after operators within attribute selectors (Autofixable).
'selector-attribute-operator-space-before': null, // Require a single space or disallow whitespace before operators within attribute selectors (Autofixable).
'selector-attribute-quotes': null, // Require or disallow quotes for attribute values.
'selector-combinator-space-after': null, // Require a single space or disallow whitespace after the combinators of selectors (Autofixable).
'selector-combinator-space-before': null, // Require a single space or disallow whitespace before the combinators of selectors (Autofixable).
'selector-descendant-combinator-no-non-space': null, // Disallow non-space characters for descendant combinators of selectors (Autofixable).
'selector-pseudo-class-case': null, // Specify lowercase or uppercase for pseudo-class selectors (Autofixable).
'selector-pseudo-class-parentheses-space-inside': null, // Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors (Autofixable).
'selector-pseudo-element-case': null, // Specify lowercase or uppercase for pseudo-element selectors (Autofixable).
'selector-pseudo-element-colon-notation': null, // Specify single or double colon notation for applicable pseudo-elements (Autofixable).
'selector-type-case': null, // Specify lowercase or uppercase for type selectors (Autofixable).
'selector-list-comma-newline-after': null, // Require a newline or disallow whitespace after the commas of selector lists (Autofixable).
'selector-list-comma-newline-before': null, // Require a newline or disallow whitespace before the commas of selector lists (Autofixable).
'selector-list-comma-space-after': null, // Require a single space or disallow whitespace after the commas of selector lists (Autofixable).
'selector-list-comma-space-before': null, // Require a single space or disallow whitespace before the commas of selector lists (Autofixable).
'rule-empty-line-before': null, // Require or disallow an empty line before rules (Autofixable).
'media-feature-colon-space-after': null, // Require a single space or disallow whitespace after the colon in media features (Autofixable).
'media-feature-colon-space-before': null, // Require a single space or disallow whitespace before the colon in media features (Autofixable).
'media-feature-name-case': null, // Specify lowercase or uppercase for media feature names (Autofixable).
'media-feature-parentheses-space-inside': null, // Require a single space or disallow whitespace on the inside of the parentheses within media features (Autofixable).
'media-feature-range-operator-space-after': null, // Require a single space or disallow whitespace after the range operator in media features (Autofixable).
'media-feature-range-operator-space-before': null, // Require a single space or disallow whitespace before the range operator in media features (Autofixable).
'media-query-list-comma-newline-after': null, // Require a newline or disallow whitespace after the commas of media query lists (Autofixable).
'media-query-list-comma-newline-before': null, // Require a newline or disallow whitespace before the commas of media query lists.
'media-query-list-comma-space-after': null, // Require a single space or disallow whitespace after the commas of media query lists (Autofixable).
'media-query-list-comma-space-before': null, // Require a single space or disallow whitespace before the commas of media query lists (Autofixable).
'at-rule-empty-line-before': null, // Require or disallow an empty line before at-rules (Autofixable).
'at-rule-name-case': null, // Specify lowercase or uppercase for at-rules names (Autofixable).
'at-rule-name-newline-after': null, // Require a newline after at-rule names.
'at-rule-name-space-after': null, // Require a single space after at-rule names (Autofixable).
'at-rule-semicolon-newline-after': null, // Require a newline after the semicolon of at-rules (Autofixable).
'at-rule-semicolon-space-before': null, // Require a single space or disallow whitespace before the semicolons of at-rules.
'comment-empty-line-before': null, // Require or disallow an empty line before comments (Autofixable).
'comment-whitespace-inside': null, // Require or disallow whitespace on the inside of comment markers (Autofixable).
indentation: null, // Specify indentation (Autofixable).
linebreaks: null, // Specify unix or windows linebreaks (Autofixable).
'max-empty-lines': null, // Limit the number of adjacent empty lines (Autofixable).
'max-line-length': null, // Limit the length of a line.
'no-eol-whitespace': null, // Disallow end-of-line whitespace (Autofixable).
'no-missing-end-of-source-newline': null, // Disallow missing end-of-source newlines (Autofixable).
'no-empty-first-line': null, // Disallow empty first lines (Autofixable).
'unicode-bom': null // Require or disallow Unicode BOM.
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment