Replace grunt-jsonlint with jsonlint

This commit is contained in:
rejas 2020-04-10 12:24:08 +02:00
parent 61462cf57e
commit f36df159e0
3 changed files with 501 additions and 713 deletions

View File

@ -1,23 +0,0 @@
module.exports = function(grunt) {
require("time-grunt")(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jsonlint: {
main: {
src: [
"package.json",
".eslintrc.json",
".stylelintrc.json",
"translations/*.json",
"modules/default/*/translations/*.json",
"vendor/package.json"
],
options: {
reporter: "jshint"
}
}
}
});
grunt.loadNpmTasks("grunt-jsonlint");
grunt.registerTask("default", ["jsonlint"]);
};

1188
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,7 @@
"config:check": "node tests/configs/check_config.js",
"lint": "grunt --env=lint",
"lint:js": "eslint *.js js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix",
"lint:json": "jsonlint -q package.json .eslintrc.json .markdownlintrc.json .stylelintrc.json modules/default/*/translations/*.json translations/*.json vendor/package.json",
"lint:markdown": "markdownlint *.md modules/README.md modules/default/**/*.md --config .markdownlintrc.json",
"lint:style": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix",
"lint:yaml": "yamllint .travis.yml"
@ -42,12 +43,12 @@
},
"homepage": "https://magicmirror.builders",
"devDependencies": {
"@prantlf/jsonlint": "^10.2.0",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"current-week-number": "^1.0.7",
"danger": "^3.1.3",
"eslint": "^6.8.0",
"grunt-jsonlint": "latest",
"http-auth": "^3.2.3",
"jsdom": "^11.6.2",
"markdownlint": "^0.19.0",