gscan 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/specs/v6.js +18 -2
- package/package.json +2 -2
package/lib/specs/v6.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const _ = require('lodash');
|
|
2
2
|
const oneLineTrim = require('common-tags/lib/oneLineTrim');
|
|
3
3
|
const previousSpec = require('./v5');
|
|
4
|
-
const docsBaseUrl = `https://ghost.org/
|
|
4
|
+
const docsBaseUrl = `https://docs.ghost.org/themes/`;
|
|
5
5
|
|
|
6
6
|
const previousKnownHelpers = previousSpec.knownHelpers;
|
|
7
7
|
const previousTemplates = previousSpec.templates;
|
|
8
8
|
const previousRules = previousSpec.rules;
|
|
9
9
|
|
|
10
10
|
// assign new or overwrite existing knownHelpers, templates, or rules here:
|
|
11
|
-
let knownHelpers = [];
|
|
11
|
+
let knownHelpers = ['split'];
|
|
12
12
|
let templates = [];
|
|
13
13
|
let rules = {
|
|
14
14
|
'GS090-NO-LIMIT-ALL-IN-GET-HELPER': {
|
|
@@ -26,6 +26,22 @@ let rules = {
|
|
|
26
26
|
Find more information about the <code>{{#get}}</code> helper <a href="${docsBaseUrl}helpers/get/" target=_blank>here</a>.`,
|
|
27
27
|
helper: '{{#get}}'
|
|
28
28
|
},
|
|
29
|
+
'GS001-DEPR-TWITTER-URL': {
|
|
30
|
+
level: 'warning',
|
|
31
|
+
rule: 'Replace <code>{{twitter_url}}</code> with <code>{{social_url type="twitter"}}</code>',
|
|
32
|
+
details: oneLineTrim`The <code>{{twitter_url}}</code> helper is no longer supported and should be replaced with <code>{{social_url type="twitter"}}</code>.<br>
|
|
33
|
+
Find more information about the <code>{{social_url}}</code> helper <a href="${docsBaseUrl}helpers/data/social_url/" target=_blank>here</a>.`,
|
|
34
|
+
regex: /{{\s*?twitter_url(\s+[^}]*)?\s*?}}/g,
|
|
35
|
+
helper: '{{twitter_url}}'
|
|
36
|
+
},
|
|
37
|
+
'GS001-DEPR-FACEBOOK-URL': {
|
|
38
|
+
level: 'warning',
|
|
39
|
+
rule: 'Replace <code>{{facebook_url}}</code> with <code>{{social_url type="facebook"}}</code>',
|
|
40
|
+
details: oneLineTrim`The <code>{{facebook_url}}</code> helper is no longer supported and should be replaced with <code>{{social_url type="facebook"}}</code>.<br>
|
|
41
|
+
Find more information about the <code>{{social_url}}</code> helper <a href="${docsBaseUrl}helpers/data/social_url/" target=_blank>here</a>.`,
|
|
42
|
+
regex: /{{\s*?facebook_url(\s+[^}]*)?\s*?}}/g,
|
|
43
|
+
helper: '{{facebook_url}}'
|
|
44
|
+
},
|
|
29
45
|
'GS001-DEPR-AMP-TEMPLATE': {
|
|
30
46
|
level: 'warning',
|
|
31
47
|
rule: 'AMP templates are no longer supported in Ghost 6.0',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"c8": "8.0.1",
|
|
72
72
|
"eslint": "8.1.0",
|
|
73
73
|
"eslint-plugin-ghost": "2.1.0",
|
|
74
|
-
"mocha": "11.7.
|
|
74
|
+
"mocha": "11.7.4",
|
|
75
75
|
"node-fetch": "3.3.2",
|
|
76
76
|
"nodemon": "2.0.7",
|
|
77
77
|
"rewire": "6.0.0",
|