aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-30 20:44:54 -0500
committerGitHub <noreply@github.com>2021-01-30 20:44:54 -0500
commit9e83faa02c136da9e4749b696d8c7a0b363c0745 (patch)
treeaa0b5d7f4ee78a870da84e80e4eef266c2485570 /package.json
parent60c38ab83c429d9e4853dbd4ea9fa06eb8f9efa6 (diff)
Html lint (#1336)
* Move style rules * Fix non-unique IDs * Remove erroneous ids * Add title * Fix invalid closing tag * Install html-validate * Add .htmlvalidate.json * Update HTML and styles * Add test-lint-html * Update test files * Update test-lint-html/css commands to have more explicit targets
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json
index ebb25caa..5453926d 100644
--- a/package.json
+++ b/package.json
@@ -7,9 +7,10 @@
},
"scripts": {
"build": "node ./dev/build.js",
- "test": "npm run test-lint && npm run test-lint-css && npm run test-code && npm run test-manifest && npm run test-build",
+ "test": "npm run test-lint && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-manifest && npm run test-build",
"test-lint": "npx eslint . && node ./dev/lint/global-declarations.js && node ./dev/lint/html-scripts.js",
- "test-lint-css": "npx stylelint \"**/*.css\"",
+ "test-lint-css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
+ "test-lint-html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
"test-lint-web-ext": "npx web-ext lint",
"test-code": "node ./test/test-all.js ./test --skip ./test/test-manifest.js",
"test-manifest": "node ./test/test-manifest.js",
@@ -38,6 +39,7 @@
"eslint": "^7.15.0",
"eslint-plugin-no-unsanitized": "^3.1.4",
"fake-indexeddb": "^3.1.2",
+ "html-validate": "^4.3.0",
"jsdom": "^16.4.0",
"parse5": "^6.0.1",
"stylelint": "^13.8.0",