Show stylelint warnings & use minified bundle
This commit is contained in:
parent
47e326d293
commit
139d7ebb98
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
<link rel="stylesheet" href="vendor/codemirror/addon/lint/lint.css" />
|
<link rel="stylesheet" href="vendor/codemirror/addon/lint/lint.css" />
|
||||||
<script src="vendor/codemirror/addon/lint/lint.js"></script>
|
<script src="vendor/codemirror/addon/lint/lint.js"></script>
|
||||||
<script src="vendor-overwrites/stylelint/stylelint-bundle.js"></script>
|
<script src="vendor-overwrites/stylelint/stylelint-bundle.min.js"></script>
|
||||||
<script src="vendor-overwrites/codemirror/addon/lint/stylelint-config.js"></script>
|
<script src="vendor-overwrites/codemirror/addon/lint/stylelint-config.js"></script>
|
||||||
<script src="vendor-overwrites/codemirror/addon/lint/stylelint.js"></script>
|
<script src="vendor-overwrites/codemirror/addon/lint/stylelint.js"></script>
|
||||||
|
|
||||||
|
|
|
@ -6,30 +6,31 @@ const stylelintConfig = {
|
||||||
rules: {
|
rules: {
|
||||||
// ** recommended rules **
|
// ** recommended rules **
|
||||||
// ref: https://github.com/stylelint/stylelint-config-recommended/blob/master/index.js
|
// ref: https://github.com/stylelint/stylelint-config-recommended/blob/master/index.js
|
||||||
'at-rule-no-unknown': true,
|
'at-rule-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'block-no-empty': true,
|
'block-no-empty': [ true, { 'severity': 'warning' }],
|
||||||
'color-no-invalid-hex': true,
|
'color-no-invalid-hex': [ true, { 'severity': 'warning' }],
|
||||||
'comment-no-empty': true,
|
'comment-no-empty': [ true, { 'severity': 'warning' }],
|
||||||
'declaration-block-no-duplicate-properties': [ true, {
|
'declaration-block-no-duplicate-properties': [ true, {
|
||||||
'ignore': ['consecutive-duplicates-with-different-values']
|
'ignore': ['consecutive-duplicates-with-different-values'],
|
||||||
|
'severity': 'warning'
|
||||||
}],
|
}],
|
||||||
'declaration-block-no-redundant-longhand-properties': true,
|
'declaration-block-no-redundant-longhand-properties': [ true, { 'severity': 'warning' }],
|
||||||
'declaration-block-no-shorthand-property-overrides': true,
|
'declaration-block-no-shorthand-property-overrides': [ true, { 'severity': 'warning' }],
|
||||||
'font-family-no-duplicate-names': true,
|
'font-family-no-duplicate-names': [ true, { 'severity': 'warning' }],
|
||||||
'function-calc-no-unspaced-operator': true,
|
'function-calc-no-unspaced-operator': [ true, { 'severity': 'warning' }],
|
||||||
'function-linear-gradient-no-nonstandard-direction': true,
|
'function-linear-gradient-no-nonstandard-direction': [ true, { 'severity': 'warning' }],
|
||||||
'keyframe-declaration-no-important': true,
|
'keyframe-declaration-no-important': [ true, { 'severity': 'warning' }],
|
||||||
'media-feature-name-no-unknown': true,
|
'media-feature-name-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'no-empty-source': true,
|
'no-empty-source': false, /* recommended true */
|
||||||
'no-extra-semicolons': true,
|
'no-extra-semicolons': [ true, { 'severity': 'warning' }],
|
||||||
'no-invalid-double-slash-comments': true,
|
'no-invalid-double-slash-comments': [ true, { 'severity': 'warning' }],
|
||||||
'property-no-unknown': true,
|
'property-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'selector-pseudo-class-no-unknown': true,
|
'selector-pseudo-class-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'selector-pseudo-element-no-unknown': true,
|
'selector-pseudo-element-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'selector-type-no-unknown': true,
|
'selector-type-no-unknown': [ true, { 'severity': 'warning' }],
|
||||||
'shorthand-property-no-redundant-values': true,
|
'shorthand-property-no-redundant-values': [ true, { 'severity': 'warning' }],
|
||||||
'string-no-newline': true,
|
'string-no-newline': [ true, { 'severity': 'warning' }],
|
||||||
'unit-no-unknown': true
|
'unit-no-unknown': [ true, { 'severity': 'warning' }]
|
||||||
|
|
||||||
// ** stylistic rules **
|
// ** stylistic rules **
|
||||||
/*
|
/*
|
||||||
|
|
2799
vendor-overwrites/stylelint/stylelint-bundle.min.js
vendored
Normal file
2799
vendor-overwrites/stylelint/stylelint-bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user