mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Replace grunt-jsonlint with jsonlint
This commit is contained in:
parent
61462cf57e
commit
f36df159e0
23
Gruntfile.js
23
Gruntfile.js
@ -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
1188
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,6 +18,7 @@
|
|||||||
"config:check": "node tests/configs/check_config.js",
|
"config:check": "node tests/configs/check_config.js",
|
||||||
"lint": "grunt --env=lint",
|
"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: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: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:style": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix",
|
||||||
"lint:yaml": "yamllint .travis.yml"
|
"lint:yaml": "yamllint .travis.yml"
|
||||||
@ -42,12 +43,12 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://magicmirror.builders",
|
"homepage": "https://magicmirror.builders",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@prantlf/jsonlint": "^10.2.0",
|
||||||
"chai": "^4.1.2",
|
"chai": "^4.1.2",
|
||||||
"chai-as-promised": "^7.1.1",
|
"chai-as-promised": "^7.1.1",
|
||||||
"current-week-number": "^1.0.7",
|
"current-week-number": "^1.0.7",
|
||||||
"danger": "^3.1.3",
|
"danger": "^3.1.3",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"grunt-jsonlint": "latest",
|
|
||||||
"http-auth": "^3.2.3",
|
"http-auth": "^3.2.3",
|
||||||
"jsdom": "^11.6.2",
|
"jsdom": "^11.6.2",
|
||||||
"markdownlint": "^0.19.0",
|
"markdownlint": "^0.19.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user