diff --git a/.stylelintrc.json b/core/.stylelintrc.json similarity index 61% rename from .stylelintrc.json rename to core/.stylelintrc.json index 103fc2d..c5c83df 100644 --- a/.stylelintrc.json +++ b/core/.stylelintrc.json @@ -4,14 +4,18 @@ "block-opening-brace-newline-after": "always-multi-line", "block-closing-brace-newline-before": "always-multi-line", "color-no-invalid-hex": true, + "declaration-empty-line-before": "never", "indentation": 2, "max-empty-lines": 2, - "declaration-empty-line-before": "never", + "no-eol-whitespace": true, + "no-invalid-double-slash-comments": true, + "no-missing-end-of-source-newline": true, + "no-unknown-animations": true, "unit-whitelist": ["deg", "em", "ex", "ms", "rem", "%", "s", "px"] }, "ignoreFiles": [ - "core/assets/vendor/**/*.css", - "core/tests/Drupal/Tests/Core/Asset/css_test_files/**/*.css" + "assets/vendor/**/*.css", + "tests/Drupal/Tests/Core/Asset/css_test_files/**/*.css" ] } diff --git a/core/package.json b/core/package.json index b168cb3..bd1390b 100644 --- a/core/package.json +++ b/core/package.json @@ -6,14 +6,17 @@ "scripts": { "build:js": "node ./scripts/js/babel-es6-build.js", "watch:js": "node ./scripts/js/babel-es6-watch.js", - "lint:js": "eslint . || exit 0" + "lint:js": "eslint . || exit 0", + "lint:css": "stylelint '**/*.css' || exit 0" }, "devDependencies": { "babel-core": "6.17.0", "babel-preset-es2015": "6.16.0", "chokidar": "1.6.0", "eslint": "3.8.1", - "glob": "^7.1.1" + "glob": "^7.1.1", + "stylelint": "^7.10.1", + "stylelint-no-browser-hacks": "^1.0.2" }, "babel": { "presets": [