Skip to content

Commit db661da

Browse files
committed
Chore: Update to latest hint version
1 parent b432ae5 commit db661da

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

.hintrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"stylish"
77
],
88
"hints": {
9-
"axe/aria": "off",
9+
"axe/aria": "warning",
1010
"html-checker": "off",
11-
"ssllabs": "off"
11+
"ssllabs": "off",
12+
"compat-api/css": "warning"
1213
},
1314
"ignoredUrls": [
1415
{

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ timezone:
1212

1313
# URL
1414
## If your site is put in a subdirectory, set url as 'https://yoursite.com/child' and root as '/child/'
15-
url: /
15+
url: https://webhint.io
1616
root: /
1717
permalink:
1818
permalink_defaults:

helpers/update-site/documentation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const os = require('os');
1111
const shell = require('shelljs');
1212
const stripMarkdown = require('remove-markdown');
1313
const yamlLoader = require('js-yaml');
14-
const utils = require('@hint/utils');
14+
const utils = require('@hint/utils-i18n');
1515

1616
const constants = require('./constants');
1717
const { copy } = require('./copy');
@@ -20,7 +20,7 @@ const { setShellJSDefaultConfig } = require('./common');
2020
const readFile = promisify(fs.readFile);
2121
const writeFile = promisify(fs.writeFile);
2222

23-
const i18n = utils.i18n.getMessage;
23+
const i18n = utils.getMessage;
2424
const divider = '---';
2525
const frontMatterRegex = new RegExp(`\r?\n\s*${divider}\r?\n|^\s*${divider}\r?\n`, 'gi'); // eslint-disable-line no-useless-escape
2626
const configDir = path.resolve(__dirname, '..', '..', '_config.yml');

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"dependencies": {
3-
"@hint/formatter-html": "^4.1.9",
4-
"algoliasearch": "^3.34.0",
5-
"applicationinsights": "^1.4.2",
3+
"@hint/formatter-html": "^4.1.12",
4+
"@hint/utils-i18n": "^1.0.0",
5+
"algoliasearch": "^3.35.1",
6+
"applicationinsights": "^1.6.0",
67
"body-parser": "^1.19.0",
78
"ejs": "^3.0.1",
89
"express": "^4.17.1",
910
"globby": "^10.0.1",
10-
"highlight.js": "^9.15.10",
11-
"hint": "^5.3.3",
11+
"highlight.js": "^9.16.2",
12+
"hint": "^6.0.2",
1213
"js-yaml": "^3.13.1",
1314
"lodash": "^4.17.15",
1415
"moment": "^2.24.0",
@@ -18,12 +19,12 @@
1819
},
1920
"devDependencies": {
2021
"@hint/artwork": "^2.2.1",
21-
"@hint/configuration-all": "^1.0.5",
22-
"cross-env": "^6.0.0",
23-
"eslint": "^6.4.0",
22+
"@hint/configuration-all": "^2.0.2",
23+
"cross-env": "^6.0.3",
24+
"eslint": "^6.7.2",
2425
"gulp": "^4.0.2",
2526
"gulp-brotli": "^2.0.2",
26-
"gulp-changed": "^4.0.1",
27+
"gulp-changed": "^4.0.2",
2728
"gulp-clean-css": "^4.2.0",
2829
"gulp-cli": "^2.2.0",
2930
"gulp-concat": "^2.6.1",
@@ -32,7 +33,7 @@
3233
"gulp-flatten": "^0.4.0",
3334
"gulp-htmlmin": "^5.0.0",
3435
"gulp-if": "^3.0.0",
35-
"gulp-imagemin": "^6.1.0",
36+
"gulp-imagemin": "^6.2.0",
3637
"gulp-load-plugins": "^2.0.1",
3738
"gulp-rev": "^9.0.0",
3839
"gulp-rev-delete-original": "^0.2.3",
@@ -44,13 +45,13 @@
4445
"gulp-useref": "^4.0.0",
4546
"gulp-zopfli-node": "^1.0.0",
4647
"hexo": "^4.0.0",
47-
"hexo-cli": "^3.0.0",
48+
"hexo-cli": "^3.1.0",
4849
"hexo-generator-index": "^1.0.0",
4950
"hexo-generator-sitemap": "^2.0.0",
5051
"hexo-generator-tag": "^1.0.0",
5152
"hexo-renderer-handlebars": "^2.0.2",
5253
"hexo-server": "^1.0.0",
53-
"hexo-util": "^1.2.0",
54+
"hexo-util": "^1.6.1",
5455
"json2yaml": "^1.1.0",
5556
"markdownlint-cli": "^0.19.0",
5657
"marked": "^0.7.0",
@@ -64,7 +65,6 @@
6465
"shelljs": "^0.8.3",
6566
"stylelint": "^12.0.0",
6667
"sw-precache": "^5.2.1",
67-
"typescript": "^3.6.3",
6868
"uslug": "^1.0.4"
6969
},
7070
"engines": {
@@ -90,8 +90,8 @@
9090
"start": "node src/server/index.js",
9191
"watch": "gulp watch",
9292
"test": "npm run lint && npm run build",
93-
"test-local": "hint http://localhost:8080 --tracking=off",
94-
"test-staging": "npx hint https://sonarwhal-staging.azurewebsites.net --tracking=on",
93+
"test-local": "hint http://localhost:8080 --telemetry=off",
94+
"test-staging": "npx hint https://sonarwhal-staging.azurewebsites.net --telemetry=on",
9595
"update-site": "node helpers/update-site.js",
9696
"postinstall": "node helpers/postinstall.js"
9797
}

src/server/routes/scanner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const _ = require('lodash');
55
const moment = require('moment');
66
const globby = require('globby');
77
const r = require('request').defaults({ headers: { 'x-functions-key': `${process.env.FUNCTIONS_KEY}` } }); // eslint-disable-line no-process-env
8-
const { getMessage: getMessageUtils } = require('@hint/utils').i18n;
8+
const { getMessage: getMessageUtils } = require('@hint/utils-i18n');
99

1010
const request = promisify(r);
1111
const urlAudiences = process.env.WEBSITE_DOMAIN; // eslint-disable-line no-process-env

0 commit comments

Comments
 (0)