Extract settings strings in css extension (#16184)

Closes #16179
This commit is contained in:
Matt Bierner 2016-11-29 09:50:36 -08:00 committed by GitHub
parent 6e758c483b
commit a27eec8d88
2 changed files with 116 additions and 57 deletions

View file

@ -61,7 +61,7 @@
"css.validate": {
"type": "boolean",
"default": true,
"description": "Enables or disables all validations"
"description": "%css.validate.desc%"
},
"css.lint.compatibleVendorPrefixes": {
"type": "string",
@ -71,7 +71,7 @@
"error"
],
"default": "ignore",
"description": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
"description": "%css.lint.compatibleVendorPrefixes.desc%"
},
"css.lint.vendorPrefix": {
"type": "string",
@ -81,7 +81,7 @@
"error"
],
"default": "warning",
"description": "When using a vendor-specific prefix also include the standard property"
"description": "%css.lint.vendorPrefix.desc%"
},
"css.lint.duplicateProperties": {
"type": "string",
@ -91,7 +91,7 @@
"error"
],
"default": "ignore",
"description": "Do not use duplicate style definitions"
"description": "%css.lint.duplicateProperties.desc%"
},
"css.lint.emptyRules": {
"type": "string",
@ -101,7 +101,7 @@
"error"
],
"default": "warning",
"description": "Do not use empty rulesets"
"description": "%css.lint.emptyRules.desc%"
},
"css.lint.importStatement": {
"type": "string",
@ -111,7 +111,7 @@
"error"
],
"default": "ignore",
"description": "Import statements do not load in parallel"
"description": "%css.lint.importStatement.desc%"
},
"css.lint.boxModel": {
"type": "string",
@ -121,7 +121,7 @@
"error"
],
"default": "ignore",
"description": "Do not use width or height when using padding or border"
"description": "%css.lint.boxModel.desc%"
},
"css.lint.universalSelector": {
"type": "string",
@ -131,7 +131,7 @@
"error"
],
"default": "ignore",
"description": "The universal selector (*) is known to be slow"
"description": "%css.lint.universalSelector.desc%"
},
"css.lint.zeroUnits": {
"type": "string",
@ -141,7 +141,7 @@
"error"
],
"default": "ignore",
"description": "No unit for zero needed"
"description": "%css.lint.zeroUnits.desc%"
},
"css.lint.fontFaceProperties": {
"type": "string",
@ -151,7 +151,7 @@
"error"
],
"default": "warning",
"description": "@font-face rule must define 'src' and 'font-family' properties"
"description": "%css.lint.fontFaceProperties.desc%"
},
"css.lint.hexColorLength": {
"type": "string",
@ -161,7 +161,7 @@
"error"
],
"default": "error",
"description": "Hex colors must consist of three or six hex numbers"
"description": "%css.lint.hexColorLength.desc%"
},
"css.lint.argumentsInColorFunction": {
"type": "string",
@ -171,7 +171,7 @@
"error"
],
"default": "error",
"description": "Invalid number of parameters"
"description": "%css.lint.argumentsInColorFunction.desc%"
},
"css.lint.unknownProperties": {
"type": "string",
@ -181,7 +181,7 @@
"error"
],
"default": "warning",
"description": "Unknown property."
"description": "%css.lint.unknownProperties.desc%"
},
"css.lint.ieHack": {
"type": "string",
@ -191,7 +191,7 @@
"error"
],
"default": "ignore",
"description": "IE hacks are only necessary when supporting IE7 and older"
"description": "%css.lint.ieHack.desc%"
},
"css.lint.unknownVendorSpecificProperties": {
"type": "string",
@ -201,7 +201,7 @@
"error"
],
"default": "ignore",
"description": "Unknown vendor specific property."
"description": "%css.lint.unknownVendorSpecificProperties.desc%"
},
"css.lint.propertyIgnoredDueToDisplay": {
"type": "string",
@ -211,7 +211,7 @@
"error"
],
"default": "warning",
"description": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect"
"description": "%css.lint.propertyIgnoredDueToDisplay.desc%"
},
"css.lint.important": {
"type": "string",
@ -221,7 +221,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."
"description": "%css.lint.important.desc%"
},
"css.lint.float": {
"type": "string",
@ -231,7 +231,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."
"description": "%css.lint.float.desc%"
},
"css.lint.idSelector": {
"type": "string",
@ -241,7 +241,7 @@
"error"
],
"default": "ignore",
"description": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."
"description": "%css.lint.idSelector.desc%"
}
}
}
@ -258,7 +258,7 @@
"scss.validate": {
"type": "boolean",
"default": true,
"description": "Enables or disables all validations"
"description": "%scss.validate.desc%"
},
"scss.lint.compatibleVendorPrefixes": {
"type": "string",
@ -268,7 +268,7 @@
"error"
],
"default": "ignore",
"description": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
"description": "%scss.lint.compatibleVendorPrefixes.desc%"
},
"scss.lint.vendorPrefix": {
"type": "string",
@ -278,7 +278,7 @@
"error"
],
"default": "warning",
"description": "When using a vendor-specific prefix also include the standard property"
"description": "%scss.lint.vendorPrefix.desc%"
},
"scss.lint.duplicateProperties": {
"type": "string",
@ -288,7 +288,7 @@
"error"
],
"default": "ignore",
"description": "Do not use duplicate style definitions"
"description": "%scss.lint.duplicateProperties.desc%"
},
"scss.lint.emptyRules": {
"type": "string",
@ -298,7 +298,7 @@
"error"
],
"default": "warning",
"description": "Do not use empty rulesets"
"description": "%scss.lint.emptyRules.desc%"
},
"scss.lint.importStatement": {
"type": "string",
@ -308,7 +308,7 @@
"error"
],
"default": "ignore",
"description": "Import statements do not load in parallel"
"description": "%scss.lint.importStatement.desc%"
},
"scss.lint.boxModel": {
"type": "string",
@ -318,7 +318,7 @@
"error"
],
"default": "ignore",
"description": "Do not use width or height when using padding or border"
"description": "%scss.lint.boxModel.desc%"
},
"scss.lint.universalSelector": {
"type": "string",
@ -328,7 +328,7 @@
"error"
],
"default": "ignore",
"description": "The universal selector (*) is known to be slow"
"description": "%scss.lint.universalSelector.desc%"
},
"scss.lint.zeroUnits": {
"type": "string",
@ -338,7 +338,7 @@
"error"
],
"default": "ignore",
"description": "No unit for zero needed"
"description": "%scss.lint.zeroUnits.desc%"
},
"scss.lint.fontFaceProperties": {
"type": "string",
@ -348,7 +348,7 @@
"error"
],
"default": "warning",
"description": "@font-face rule must define 'src' and 'font-family' properties"
"description": "%scss.lint.fontFaceProperties.desc%"
},
"scss.lint.hexColorLength": {
"type": "string",
@ -358,7 +358,7 @@
"error"
],
"default": "error",
"description": "Hex colors must consist of three or six hex numbers"
"description": "%scss.lint.hexColorLength.desc%"
},
"scss.lint.argumentsInColorFunction": {
"type": "string",
@ -368,7 +368,7 @@
"error"
],
"default": "error",
"description": "Invalid number of parameters"
"description": "%scss.lint.argumentsInColorFunction.desc%"
},
"scss.lint.unknownProperties": {
"type": "string",
@ -378,7 +378,7 @@
"error"
],
"default": "warning",
"description": "Unknown property."
"description": "%scss.lint.unknownProperties.desc%"
},
"scss.lint.ieHack": {
"type": "string",
@ -388,7 +388,7 @@
"error"
],
"default": "ignore",
"description": "IE hacks are only necessary when supporting IE7 and older"
"description": "%scss.lint.ieHack.desc%"
},
"scss.lint.unknownVendorSpecificProperties": {
"type": "string",
@ -398,7 +398,7 @@
"error"
],
"default": "ignore",
"description": "Unknown vendor specific property."
"description": "%scss.lint.unknownVendorSpecificProperties.desc%"
},
"scss.lint.propertyIgnoredDueToDisplay": {
"type": "string",
@ -408,7 +408,7 @@
"error"
],
"default": "warning",
"description": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect"
"description": "%scss.lint.propertyIgnoredDueToDisplay.desc%"
},
"scss.lint.important": {
"type": "string",
@ -418,7 +418,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."
"description": "%scss.lint.important.desc%"
},
"scss.lint.float": {
"type": "string",
@ -428,7 +428,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."
"description": "%scss.lint.float.desc%"
},
"scss.lint.idSelector": {
"type": "string",
@ -438,7 +438,7 @@
"error"
],
"default": "ignore",
"description": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."
"description": "%scss.lint.idSelector.desc%"
}
}
}
@ -456,7 +456,7 @@
"less.validate": {
"type": "boolean",
"default": true,
"description": "Enables or disables all validations"
"description": "%less.validate.desc%"
},
"less.lint.compatibleVendorPrefixes": {
"type": "string",
@ -466,7 +466,7 @@
"error"
],
"default": "ignore",
"description": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
"description": "%less.lint.compatibleVendorPrefixes.desc%"
},
"less.lint.vendorPrefix": {
"type": "string",
@ -476,7 +476,7 @@
"error"
],
"default": "warning",
"description": "When using a vendor-specific prefix also include the standard property"
"description": "%less.lint.vendorPrefix.desc%"
},
"less.lint.duplicateProperties": {
"type": "string",
@ -486,7 +486,7 @@
"error"
],
"default": "ignore",
"description": "Do not use duplicate style definitions"
"description": "%less.lint.duplicateProperties.desc%"
},
"less.lint.emptyRules": {
"type": "string",
@ -496,7 +496,7 @@
"error"
],
"default": "warning",
"description": "Do not use empty rulesets"
"description": "%less.lint.emptyRules.desc%"
},
"less.lint.importStatement": {
"type": "string",
@ -506,7 +506,7 @@
"error"
],
"default": "ignore",
"description": "Import statements do not load in parallel"
"description": "%less.lint.importStatement.desc%"
},
"less.lint.boxModel": {
"type": "string",
@ -516,7 +516,7 @@
"error"
],
"default": "ignore",
"description": "Do not use width or height when using padding or border"
"description": "%less.lint.boxModel.desc%"
},
"less.lint.universalSelector": {
"type": "string",
@ -526,7 +526,7 @@
"error"
],
"default": "ignore",
"description": "The universal selector (*) is known to be slow"
"description": "%less.lint.universalSelector.desc%"
},
"less.lint.zeroUnits": {
"type": "string",
@ -536,7 +536,7 @@
"error"
],
"default": "ignore",
"description": "No unit for zero needed"
"description": "%less.lint.zeroUnits.desc%"
},
"less.lint.fontFaceProperties": {
"type": "string",
@ -546,7 +546,7 @@
"error"
],
"default": "warning",
"description": "@font-face rule must define 'src' and 'font-family' properties"
"description": "%less.lint.fontFaceProperties.desc%"
},
"less.lint.hexColorLength": {
"type": "string",
@ -556,7 +556,7 @@
"error"
],
"default": "error",
"description": "Hex colors must consist of three or six hex numbers"
"description": "%less.lint.hexColorLength.desc%"
},
"less.lint.argumentsInColorFunction": {
"type": "string",
@ -566,7 +566,7 @@
"error"
],
"default": "error",
"description": "Invalid number of parameters"
"description": "%less.lint.argumentsInColorFunction.desc%"
},
"less.lint.unknownProperties": {
"type": "string",
@ -576,7 +576,7 @@
"error"
],
"default": "warning",
"description": "Unknown property."
"description": "%less.lint.unknownProperties.desc%"
},
"less.lint.ieHack": {
"type": "string",
@ -586,7 +586,7 @@
"error"
],
"default": "ignore",
"description": "IE hacks are only necessary when supporting IE7 and older"
"description": "%less.lint.ieHack.desc%"
},
"less.lint.unknownVendorSpecificProperties": {
"type": "string",
@ -596,7 +596,7 @@
"error"
],
"default": "ignore",
"description": "Unknown vendor specific property."
"description": "%less.lint.unknownVendorSpecificProperties.desc%"
},
"less.lint.propertyIgnoredDueToDisplay": {
"type": "string",
@ -606,7 +606,7 @@
"error"
],
"default": "warning",
"description": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect"
"description": "%less.lint.propertyIgnoredDueToDisplay.desc%"
},
"less.lint.important": {
"type": "string",
@ -616,7 +616,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."
"description": "%less.lint.important.desc%"
},
"less.lint.float": {
"type": "string",
@ -626,7 +626,7 @@
"error"
],
"default": "ignore",
"description": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."
"description": "%less.lint.float.desc%"
},
"less.lint.idSelector": {
"type": "string",
@ -636,7 +636,7 @@
"error"
],
"default": "ignore",
"description": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."
"description": "%less.lint.idSelector.desc%"
}
}
}

View file

@ -0,0 +1,59 @@
{
"css.lint.argumentsInColorFunction.desc": "Invalid number of parameters",
"css.lint.boxModel.desc": "Do not use width or height when using padding or border",
"css.lint.compatibleVendorPrefixes.desc": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties",
"css.lint.duplicateProperties.desc": "Do not use duplicate style definitions",
"css.lint.emptyRules.desc": "Do not use empty rulesets",
"css.lint.float.desc": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.",
"css.lint.fontFaceProperties.desc": "@font-face rule must define 'src' and 'font-family' properties",
"css.lint.hexColorLength.desc": "Hex colors must consist of three or six hex numbers",
"css.lint.idSelector.desc": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML.",
"css.lint.ieHack.desc": "IE hacks are only necessary when supporting IE7 and older",
"css.lint.important.desc": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.",
"css.lint.importStatement.desc": "Import statements do not load in parallel",
"css.lint.propertyIgnoredDueToDisplay.desc": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect",
"css.lint.universalSelector.desc": "The universal selector (*) is known to be slow",
"css.lint.unknownProperties.desc": "Unknown property.",
"css.lint.unknownVendorSpecificProperties.desc": "Unknown vendor specific property.",
"css.lint.vendorPrefix.desc": "When using a vendor-specific prefix also include the standard property",
"css.lint.zeroUnits.desc": "No unit for zero needed",
"css.validate.desc": "Enables or disables all validations",
"less.lint.argumentsInColorFunction.desc": "Invalid number of parameters",
"less.lint.boxModel.desc": "Do not use width or height when using padding or border",
"less.lint.compatibleVendorPrefixes.desc": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties",
"less.lint.duplicateProperties.desc": "Do not use duplicate style definitions",
"less.lint.emptyRules.desc": "Do not use empty rulesets",
"less.lint.float.desc": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.",
"less.lint.fontFaceProperties.desc": "@font-face rule must define 'src' and 'font-family' properties",
"less.lint.hexColorLength.desc": "Hex colors must consist of three or six hex numbers",
"less.lint.idSelector.desc": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML.",
"less.lint.ieHack.desc": "IE hacks are only necessary when supporting IE7 and older",
"less.lint.important.desc": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.",
"less.lint.importStatement.desc": "Import statements do not load in parallel",
"less.lint.propertyIgnoredDueToDisplay.desc": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect",
"less.lint.universalSelector.desc": "The universal selector (*) is known to be slow",
"less.lint.unknownProperties.desc": "Unknown property.",
"less.lint.unknownVendorSpecificProperties.desc": "Unknown vendor specific property.",
"less.lint.vendorPrefix.desc": "When using a vendor-specific prefix also include the standard property",
"less.lint.zeroUnits.desc": "No unit for zero needed",
"less.validate.desc": "Enables or disables all validations",
"scss.lint.argumentsInColorFunction.desc": "Invalid number of parameters",
"scss.lint.boxModel.desc": "Do not use width or height when using padding or border",
"scss.lint.compatibleVendorPrefixes.desc": "When using a vendor-specific prefix make sure to also include all other vendor-specific properties",
"scss.lint.duplicateProperties.desc": "Do not use duplicate style definitions",
"scss.lint.emptyRules.desc": "Do not use empty rulesets",
"scss.lint.float.desc": "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.",
"scss.lint.fontFaceProperties.desc": "@font-face rule must define 'src' and 'font-family' properties",
"scss.lint.hexColorLength.desc": "Hex colors must consist of three or six hex numbers",
"scss.lint.idSelector.desc": "Selectors should not contain IDs because these rules are too tightly coupled with the HTML.",
"scss.lint.ieHack.desc": "IE hacks are only necessary when supporting IE7 and older",
"scss.lint.important.desc": "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.",
"scss.lint.importStatement.desc": "Import statements do not load in parallel",
"scss.lint.propertyIgnoredDueToDisplay.desc": "Property is ignored due to the display. E.g. with 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect",
"scss.lint.universalSelector.desc": "The universal selector (*) is known to be slow",
"scss.lint.unknownProperties.desc": "Unknown property.",
"scss.lint.unknownVendorSpecificProperties.desc": "Unknown vendor specific property.",
"scss.lint.vendorPrefix.desc": "When using a vendor-specific prefix also include the standard property",
"scss.lint.zeroUnits.desc": "No unit for zero needed",
"scss.validate.desc": "Enables or disables all validations"
}