Replace grunt-stylelint with stylelint

This commit is contained in:
rejas
2020-03-19 21:31:04 +01:00
parent 18989d593a
commit 84e9c47a67
3 changed files with 4 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
{
"extends": "stylelint-config-standard",
"font-family-name-quotes": "double-where-recommended",
"block-no-empty": false
"block-no-empty": false,
"ignoreFiles": ["./modules/default/alert/ns-default.css"]
}

View File

@@ -23,21 +23,6 @@ module.exports = function(grunt) {
"vendor/vendor.js"
]
},
stylelint: {
simple: {
options: {
fix: fix,
configFile: ".stylelintrc.json"
},
src: [
"css/main.css",
"modules/default/calendar/calendar.css",
"modules/default/clock/clock_styles.css",
"modules/default/currentweather/currentweather.css",
"modules/default/weatherforcast/weatherforcast.css"
]
}
},
jsonlint: {
main: {
src: [
@@ -92,7 +77,6 @@ module.exports = function(grunt) {
}
});
grunt.loadNpmTasks("grunt-eslint");
grunt.loadNpmTasks("grunt-stylelint");
grunt.loadNpmTasks("grunt-jsonlint");
grunt.loadNpmTasks("grunt-markdownlint");

View File

@@ -13,8 +13,10 @@
"test:unit": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/unit --recursive",
"test:e2e": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/e2e --recursive",
"test:lint": "grunt --env=test",
"test:style": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
"config:check": "node tests/configs/check_config.js",
"lint": "grunt --env=lint",
"lint:style": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix",
"lint:yaml": "yamllint .travis.yml"
},
"repository": {
@@ -45,7 +47,6 @@
"grunt-eslint": "latest",
"grunt-jsonlint": "latest",
"grunt-markdownlint": "latest",
"grunt-stylelint": "latest",
"http-auth": "^3.2.3",
"jsdom": "^11.6.2",
"mocha": "^7.0.0",