module.exports = {
	plugins: ['@namics/stylelint-bem', 'stylelint-scss'],
	rules: {
		'plugin/stylelint-bem-namics': true,
		'at-rule-name-case': 'lower',
		'at-rule-no-unknown': null,
		'at-rule-no-vendor-prefix': true,
		'block-closing-brace-space-before': ['always-single-line', { severity: 'warning' }],
		'block-opening-brace-space-after': ['always-single-line', { severity: 'warning' }],
		'block-opening-brace-space-before': ['always', { severity: 'warning' }],
		'color-hex-case': ['lower', { severity: 'warning' }],
		'color-named': 'never',
		'color-no-invalid-hex': [true, { severity: 'warning' }],
		'comment-word-blacklist': ['todo', { severity: 'warning' }],
		'declaration-block-no-duplicate-properties': [true, { severity: 'warning' }],
		'declaration-block-no-shorthand-property-overrides': [true, { severity: 'warning' }],
		'declaration-block-semicolon-newline-after': ['always', { severity: 'warning' }],
		'declaration-block-trailing-semicolon': ['always', { severity: 'warning' }],
		'declaration-colon-space-after': ['always-single-line', { severity: 'warning' }],
		'declaration-no-important': true,
		'function-linear-gradient-no-nonstandard-direction': [true, { severity: 'warning' }],
		'function-name-case': 'lower',
		indentation: ['tab', { severity: 'warning' }],
		'length-zero-no-unit': true,
		'max-empty-lines': [1, { severity: 'warning' }],
		'max-nesting-depth': [2, { severity: 'warning' }],
		'media-feature-name-case': 'lower',
		'no-missing-end-of-source-newline': [true, { severity: 'warning' }],
		'no-unknown-animations': [true, { severity: 'warning' }],
		'number-leading-zero': 'always',
		'property-case': 'lower',
		'property-no-vendor-prefix': [true, { severity: 'warning' }],
		'scss/at-rule-no-unknown': true,
		'scss/declaration-nested-properties': 'never',
		'scss/operator-no-newline-after': true,
		'scss/operator-no-newline-before': true,
		'scss/selector-no-redundant-nesting-selector': true,
		'scss/selector-no-union-class-name': true,
		'selector-max-id': 0,
		'selector-list-comma-newline-after': 'always-multi-line',
		'selector-pseudo-class-case': 'lower',
		'selector-pseudo-element-case': 'lower',
		'selector-pseudo-element-colon-notation': 'double',
		'selector-type-case': 'lower',
		'string-quotes': 'single',
		'unit-case': 'lower',
		'value-keyword-case': 'lower',
		'value-no-vendor-prefix': [true, { severity: 'warning' }],
	},
};

module.exports = {
	plugins: ['@namics/stylelint-bem', 'stylelint-scss'],
	rules: {
		'plugin/stylelint-bem-namics': true,
		'at-rule-name-case': 'lower',
		'at-rule-no-unknown': null,
		'at-rule-no-vendor-prefix': true,
		'block-closing-brace-space-before': ['always-single-line', { severity: 'warning' }],
		'block-opening-brace-space-after': ['always-single-line', { severity: 'warning' }],
		'block-opening-brace-space-before': ['always', { severity: 'warning' }],
		'color-hex-case': ['lower', { severity: 'warning' }],
		'color-named': 'never',
		'color-no-invalid-hex': [true, { severity: 'warning' }],
		'comment-word-disallowed-list': ['todo', { severity: 'warning' }],
		'declaration-block-no-duplicate-properties': [true, { severity: 'warning' }],
		'declaration-block-no-shorthand-property-overrides': [true, { severity: 'warning' }],
		'declaration-block-semicolon-newline-after': ['always', { severity: 'warning' }],
		'declaration-block-trailing-semicolon': ['always', { severity: 'warning' }],
		'declaration-colon-space-after': ['always-single-line', { severity: 'warning' }],
		'declaration-no-important': true,
		'function-linear-gradient-no-nonstandard-direction': [true, { severity: 'warning' }],
		'function-name-case': 'lower',
		indentation: ['tab', { severity: 'warning' }],
		'length-zero-no-unit': true,
		'max-empty-lines': [1, { severity: 'warning' }],
		'max-nesting-depth': [2, { severity: 'warning' }],
		'media-feature-name-case': 'lower',
		'no-missing-end-of-source-newline': [true, { severity: 'warning' }],
		'no-unknown-animations': [true, { severity: 'warning' }],
		'number-leading-zero': 'always',
		'property-case': 'lower',
		'property-no-vendor-prefix': [true, { severity: 'warning' }],
		'scss/at-rule-no-unknown': true,
		'scss/declaration-nested-properties': 'never',
		'scss/operator-no-newline-after': true,
		'scss/operator-no-newline-before': true,
		'scss/selector-no-redundant-nesting-selector': true,
		'scss/selector-no-union-class-name': true,
		'selector-max-id': 0,
		'selector-list-comma-newline-after': 'always-multi-line',
		'selector-pseudo-class-case': 'lower',
		'selector-pseudo-element-case': 'lower',
		'selector-pseudo-element-colon-notation': 'double',
		'selector-type-case': 'lower',
		'string-quotes': 'single',
		'unit-case': 'lower',
		'value-keyword-case': 'lower',
		'value-no-vendor-prefix': [true, { severity: 'warning' }],
	},
};

replace deprecated config value