<commit_before>// http://stylelint.io/user-guide/rules/

'use strict';

module.exports = {
  rules: {
    'color-hex-case'  : 'lower',
    'color-hex-length': 'short',

    // 'color-named':

    'font-family-name-quotes': 'always-where-recommended',
    'font-weight-notation'   : 'named-where-possible',

    'function-calc-no-unspaced-operator'               : true,
    'function-comma-newline-after'                     : 'never-multi-line',
    'function-comma-newline-before'                    : 'never-multi-line',
    'function-comma-space-after'                       : 'always',
    'function-comma-space-before'                      : 'never',
    'function-linear-gradient-no-nonstandard-direction': true,
    'function-max-empty-lines'                         : 0,
    'function-name-case'                               : 'lower',
    'function-parentheses-newline-inside'              : 'always-multi-line',
    'function-parentheses-space-inside'                : 'never-single-line',
    'function-url-no-scheme-relative'                  : true,
    'function-url-quotes'                              : 'always',
    'function-url-scheme-whitelist'                    : ['http', 'https', 'data'],

    'number-leading-zero'     : 'never',
    'number-max-precision'    : 2,
    'number-no-trailing-zeros': true,

    'string-no-newline': true,
    'string-quotes'    : 'double',

    'length-zero-no-unit': true,

    'time-no-imperceptible': true,

    'unit-case'      : 'lower',
    'unit-no-unknown': true,

    'value-keyword-case'             : 'lower',
    'value-no-vendor-prefix'         : true, // please use autoprefixer
    'value-list-comma-newline-after' : 'always-multi-line',
    'value-list-comma-newline-before': 'never-multi-line',
    'value-list-comma-space-after'   : 'always',
    'value-list-comma-space-before'  : 'never',
    'value-list-max-empty-lines'     : 0,

    'custom-property-empty-line-before': 'never',
    'custom-property-no-outside-root'  : true,

    'shorthand-property-no-redundant-values': true,

    'property-case'            : 'lower',
    'property-no-unknown'      : true,
    'property-no-vendor-prefix': true,

    'keyframe-declaration-no-important': true,

    'declaration-bang-space-after'  : 'never',
    'declaration-bang-space-before' : 'always',
    'declaration-colon-space-after' : 'always',
    'declaration-colon-space-before': 'never',
    'declaration-no-important'      : true,

    'declaration-block-no-duplicate-properties'         : true,
    'declaration-block-no-redundant-longhand-properties': true,
    'declaration-block-no-shorthand-property-overrides' : true,
    'declaration-block-properties-order'                : 'alphabetical',
    'declaration-block-semicolon-newline-after'         : 'always',
    'declaration-block-semicolon-newline-before'        : 'never-multi-line',
    'declaration-block-semicolon-space-after'           : 'always-single-line',
    'declaration-block-semicolon-space-before'          : 'never',

    // 'declaration-block-single-line-max-declarations': 1,
    'declaration-block-trailing-semicolon': 'always',

    'block-closing-brace-empty-line-before': 'never',
    'block-closing-brace-newline-after'    : 'always',
    'block-closing-brace-newline-before'   : 'always',
    'block-closing-brace-space-after'      : 'never-single-line',
    'block-closing-brace-space-before'     : 'never-single-line',
    'block-no-empty'                       : true,
    'block-no-single-line'                 : true,
    'block-opening-brace-newline-after'    : 'always',
    'block-opening-brace-newline-before'   : 'never-single-line',
    'block-opening-brace-space-after'      : 'never-single-line',
    'block-opening-brace-space-before'     : 'always',

    'selector-attribute-brackets-space-inside'   : 'never',
    'selector-attribute-operator-space-after'    : 'never',
    'selector-attribute-operator-space-before'   : 'never',
    'selector-attribute-quotes'                  : 'always',
    'selector-combinator-space-after'            : 'always',
    'selector-combinator-space-before'           : 'always',
    'selector-descendant-combinator-no-non-space': true,
    'selector-max-compound-selectors'            : 3,
    'selector-no-empty'                          : true,
    'selector-no-id'                             : true,
    'selector-no-qualifying-type'                : true,

    // 'selector-no-type': true,
    'selector-no-universal'                         : true,
    'selector-no-vendor-prefix'                     : true,
    'selector-pseudo-class-case'                    : 'lower',
    'selector-pseudo-class-no-unknown'              : true,
    'selector-pseudo-class-parentheses-space-inside': 'never',
    'selector-pseudo-element-case'                  : 'lower',
    'selector-pseudo-element-colon-notation'        : 'single',
    'selector-pseudo-element-no-unknown'            : true,
    'selector-root-no-composition'                  : true,
    'selector-type-case'                            : 'lower',
    'selector-type-no-unknown'                      : true,
    'selector-max-empty-lines'                      : 0,

    'selector-list-comma-newline-after' : 'always',
    'selector-list-comma-newline-before': 'never-multi-line',
    'selector-list-comma-space-after'   : 'always-single-line',
    'selector-list-comma-space-before'  : 'never',

    'root-no-standard-properties': true,

    'rule-empty-line-before': ['always-multi-line', {
      except: [
        'after-single-line-comment',
        'first-nested'
      ]
    }],

    'media-feature-colon-space-after'          : 'always',
    'media-feature-colon-space-before'         : 'never',
    'media-feature-name-case'                  : 'lower',
    'media-feature-name-no-unknown'            : true,
    'media-feature-name-no-vendor-prefix'      : true,
    'media-feature-no-missing-punctuation'     : true,
    'media-feature-parentheses-space-inside'   : 'never',
    'media-feature-range-operator-space-after' : 'always',
    'media-feature-range-operator-space-before': 'always',

    // 'custom-media-pattern': []

    'media-query-list-comma-newline-after' : 'always-multi-line',
    'media-query-list-comma-newline-before': 'never-multi-line',
    'media-query-list-comma-space-after'   : 'always',
    'media-query-list-comma-space-before'  : 'never',

    'at-rule-name-case'              : 'lower',
    'at-rule-name-newline-after'     : 'always-multi-line',
    'at-rule-name-space-after'       : 'always',
    'at-rule-no-unknown'             : true,
    'at-rule-no-vendor-prefix'       : true,
    'at-rule-semicolon-newline-after': 'always',

    'stylelint-disable-reason': 'always-before',

    'comment-empty-line-before': ['always', {
      except: ['first-nested']
    }],
    'comment-no-empty': true,

    'indentation'                     : 2,
    'max-empty-lines'                 : 1,
    'max-line-length'                 : 80,
    'max-nesting-depth'               : 3,
    'no-browser-hacks'                : true,
    'no-descending-specificity'       : true,
    'no-duplicate-selectors'          : true,
    'no-empty-source'                 : true,
    'no-eol-whitespace'               : true,
    'no-extra-semicolons'             : true,
    'no-indistinguishable-colors'     : true,
    'no-invalid-double-slash-comments': true,
    'no-missing-end-of-source-newline': true,
    'no-unknown-animations'           : true
  }
};
<commit_msg>feat: delete depricated rules<commit_after>// http://stylelint.io/user-guide/rules/

'use strict';

module.exports = {
  rules: {
    'color-hex-case'  : 'lower',
    'color-hex-length': 'short',

    // 'color-named':

    'font-family-name-quotes': 'always-where-recommended',
    'font-weight-notation'   : 'named-where-possible',

    'function-calc-no-unspaced-operator'               : true,
    'function-comma-newline-after'                     : 'never-multi-line',
    'function-comma-newline-before'                    : 'never-multi-line',
    'function-comma-space-after'                       : 'always',
    'function-comma-space-before'                      : 'never',
    'function-linear-gradient-no-nonstandard-direction': true,
    'function-max-empty-lines'                         : 0,
    'function-name-case'                               : 'lower',
    'function-parentheses-newline-inside'              : 'always-multi-line',
    'function-parentheses-space-inside'                : 'never-single-line',
    'function-url-no-scheme-relative'                  : true,
    'function-url-quotes'                              : 'always',
    'function-url-scheme-whitelist'                    : ['http', 'https', 'data'],

    'number-leading-zero'     : 'never',
    'number-max-precision'    : 2,
    'number-no-trailing-zeros': true,

    'string-no-newline': true,
    'string-quotes'    : 'double',

    'length-zero-no-unit': true,

    'time-no-imperceptible': true,

    'unit-case'      : 'lower',
    'unit-no-unknown': true,

    'value-keyword-case'             : 'lower',
    'value-no-vendor-prefix'         : true, // please use autoprefixer
    'value-list-comma-newline-after' : 'always-multi-line',
    'value-list-comma-newline-before': 'never-multi-line',
    'value-list-comma-space-after'   : 'always',
    'value-list-comma-space-before'  : 'never',
    'value-list-max-empty-lines'     : 0,

    'custom-property-empty-line-before': 'never',
    'custom-property-no-outside-root'  : true,

    'shorthand-property-no-redundant-values': true,

    'property-case'            : 'lower',
    'property-no-unknown'      : true,
    'property-no-vendor-prefix': true,

    'keyframe-declaration-no-important': true,

    'declaration-bang-space-after'  : 'never',
    'declaration-bang-space-before' : 'always',
    'declaration-colon-space-after' : 'always',
    'declaration-colon-space-before': 'never',
    'declaration-no-important'      : true,

    'declaration-block-no-duplicate-properties'         : true,
    'declaration-block-no-redundant-longhand-properties': true,
    'declaration-block-no-shorthand-property-overrides' : true,
    'declaration-block-properties-order'                : 'alphabetical',
    'declaration-block-semicolon-newline-after'         : 'always',
    'declaration-block-semicolon-newline-before'        : 'never-multi-line',
    'declaration-block-semicolon-space-after'           : 'always-single-line',
    'declaration-block-semicolon-space-before'          : 'never',

    // 'declaration-block-single-line-max-declarations': 1,
    'declaration-block-trailing-semicolon': 'always',

    'block-closing-brace-empty-line-before': 'never',
    'block-closing-brace-newline-after'    : 'always',
    'block-closing-brace-newline-before'   : 'always',
    'block-closing-brace-space-after'      : 'never-single-line',
    'block-closing-brace-space-before'     : 'never-single-line',
    'block-no-empty'                       : true,
    'block-no-single-line'                 : true,
    'block-opening-brace-newline-after'    : 'always',
    'block-opening-brace-newline-before'   : 'never-single-line',
    'block-opening-brace-space-after'      : 'never-single-line',
    'block-opening-brace-space-before'     : 'always',

    'selector-attribute-brackets-space-inside'   : 'never',
    'selector-attribute-operator-space-after'    : 'never',
    'selector-attribute-operator-space-before'   : 'never',
    'selector-attribute-quotes'                  : 'always',
    'selector-combinator-space-after'            : 'always',
    'selector-combinator-space-before'           : 'always',
    'selector-descendant-combinator-no-non-space': true,
    'selector-max-compound-selectors'            : 3,
    'selector-no-empty'                          : true,
    'selector-no-id'                             : true,
    'selector-no-qualifying-type'                : true,

    // 'selector-no-type': true,
    'selector-no-universal'                         : true,
    'selector-no-vendor-prefix'                     : true,
    'selector-pseudo-class-case'                    : 'lower',
    'selector-pseudo-class-no-unknown'              : true,
    'selector-pseudo-class-parentheses-space-inside': 'never',
    'selector-pseudo-element-case'                  : 'lower',
    'selector-pseudo-element-colon-notation'        : 'single',
    'selector-pseudo-element-no-unknown'            : true,
    'selector-root-no-composition'                  : true,
    'selector-type-case'                            : 'lower',
    'selector-type-no-unknown'                      : true,
    'selector-max-empty-lines'                      : 0,

    'selector-list-comma-newline-after' : 'always',
    'selector-list-comma-newline-before': 'never-multi-line',
    'selector-list-comma-space-after'   : 'always-single-line',
    'selector-list-comma-space-before'  : 'never',

    'root-no-standard-properties': true,

    'rule-empty-line-before': ['always-multi-line', {
      except: [
        'after-single-line-comment',
        'first-nested'
      ]
    }],

    'media-feature-colon-space-after'          : 'always',
    'media-feature-colon-space-before'         : 'never',
    'media-feature-name-case'                  : 'lower',
    'media-feature-name-no-unknown'            : true,
    'media-feature-name-no-vendor-prefix'      : true,
    'media-feature-no-missing-punctuation'     : true,
    'media-feature-parentheses-space-inside'   : 'never',
    'media-feature-range-operator-space-after' : 'always',
    'media-feature-range-operator-space-before': 'always',

    // 'custom-media-pattern': []

    'media-query-list-comma-newline-after' : 'always-multi-line',
    'media-query-list-comma-newline-before': 'never-multi-line',
    'media-query-list-comma-space-after'   : 'always',
    'media-query-list-comma-space-before'  : 'never',

    'at-rule-name-case'              : 'lower',
    'at-rule-name-newline-after'     : 'always-multi-line',
    'at-rule-name-space-after'       : 'always',
    'at-rule-no-vendor-prefix'       : true,
    'at-rule-semicolon-newline-after': 'always',

    'comment-empty-line-before': ['always', {
      except: ['first-nested']
    }],
    'comment-no-empty': true,

    'indentation'                     : 2,
    'max-empty-lines'                 : 1,
    'max-line-length'                 : 80,
    'max-nesting-depth'               : 3,
    'no-browser-hacks'                : true,
    'no-descending-specificity'       : true,
    'no-duplicate-selectors'          : true,
    'no-empty-source'                 : true,
    'no-eol-whitespace'               : true,
    'no-extra-semicolons'             : true,
    'no-invalid-double-slash-comments': true,
    'no-missing-end-of-source-newline': true,
    'no-unknown-animations'           : true
  }
};

{'fraction_non_alphanumeric': 0.16272209185383843, 'fraction_numerical': 0.0014750251424740194, 'mean_word_length': 1.9861861861861863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2152949', 'n_tokens_mistral': 4923, 'n_tokens_neox': 4799, 'n_words': 561}