Commit 9a0e9a64 authored by cilefen's avatar cilefen

Issue #2865971 by alexpott, droplet, xjm, martin107, joelpittet, Cottser,...

Issue #2865971 by alexpott, droplet, xjm, martin107, joelpittet, Cottser, idebr, Mile23: Use stylelint as opposed to csslint in core
parent ef1db63d
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-no-browser-hacks/lib"
],
"rules": {
"at-rule-empty-line-before": null,
"block-no-empty": null,
"color-hex-case": null,
"color-hex-length": null,
"comment-empty-line-before": null,
"declaration-block-no-duplicate-properties": null,
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-no-shorthand-property-overrides": null,
"declaration-block-trailing-semicolon": null,
"declaration-colon-space-after": null,
"function-comma-space-after": null,
"function-linear-gradient-no-nonstandard-direction": null,
"function-name-case": null,
"function-whitespace-after": null,
"length-zero-no-unit": null,
"no-empty-source": null,
"no-unknown-animations": true,
"number-leading-zero": null,
"number-no-trailing-zeros": null,
"plugin/no-browser-hacks": [true, {
"browsers": [
"ie >= 9",
"edge >= 13",
"firefox >= 5",
"opera >= 12",
"safari >= 5",
"chrome >= 56"
]
}],
"property-no-unknown": null,
"rule-empty-line-before": null,
"selector-pseudo-element-colon-notation": null,
"selector-type-no-unknown": null,
"shorthand-property-no-redundant-values": null,
"unit-whitelist": ["deg", "em", "ex", "ms", "rem", "%", "s", "px"]
},
"ignoreFiles": [
"assets/vendor/**/*.css",
"tests/Drupal/Tests/Core/Asset/css_test_files/**/*.css"
]
}
/* stylelint-disable plugin/no-browser-hacks */
.layout-example-2col .region-left {
float: left;
width: 50%;
......@@ -14,3 +14,4 @@
* html .layout-example-2col .region-right {
width: 49.9%;
}
/* stylelint-disable */
......@@ -6,7 +6,9 @@
"scripts": {
"build:js": "node ./scripts/js/babel-es6-build.js",
"watch:js": "cross-env NODE_ENV=development node ./scripts/js/babel-es6-watch.js",
"lint:core-js": "node ./node_modules/eslint/bin/eslint.js --ext=.es6.js . --fix || exit 0"
"lint:core-js": "node ./node_modules/eslint/bin/eslint.js --ext=.es6.js . --fix || exit 0",
"lint:css": "stylelint \"**/*.css\" || exit 0",
"lint:css-checkstyle": "stylelint \"**/*.css\" --custom-formatter ./node_modules/stylelint-checkstyle-formatter/index.js || exit 0"
},
"devDependencies": {
"babel-core": "6.24.1",
......@@ -18,7 +20,11 @@
"eslint-plugin-import": "2.2.0",
"eslint-plugin-jsx-a11y": "4.0.0",
"eslint-plugin-react": "6.10.3",
"glob": "7.1.1"
"glob": "7.1.1",
"stylelint": "^7.10.1",
"stylelint-config-standard": "^16.0.0",
"stylelint-checkstyle-formatter": "^0.1.0",
"stylelint-no-browser-hacks": "^1.0.2"
},
"babel": {
"presets": [
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment