git.iko.soy/typeable/remark-validate-links
on main help sign in
Update `xo`

Closes GH-10.

commit4068495731e8a189ae3740966da33bef29a515be authorgreenkeeperio-bot <support@greenkeeper.io> dateSat 18 Mar 2017, 11:11 (10 years ago) parent57ffa88
3 files changed+7−4
index.js+4−2 package.json+2−1 test/index.js+1−1
index.js+4−2
@@ -156,7 +156,8 @@ function validate(exposed, file) {
156156 * is especially useful because they might be
157157 * non-markdown files. Here we check if they exist. */
158158 if ((real === undefined || real === null) && !hash) {
159− real = references[reference] = exists(reference);
159+ real = exists(reference);
160+ references[reference] = real;
160161 }
161162
162163 if (!real) {
@@ -302,7 +303,8 @@ function gatherReferences(file, tree, project) {
302303function warnAll(file, nodes, reason) {
303304 nodes.forEach(function (node) {
304305 var message = file.message(reason, node);
305− message.source = message.ruleId = 'remark-validate-links';
306+ message.source = 'remark-validate-links';
307+ message.ruleId = 'remark-validate-links';
306308 });
307309}
308310
package.json+2−1
@@ -37,7 +37,7 @@
3737 "remark-preset-wooorm": "^2.0.0",
3838 "strip-ansi": "^3.0.1",
3939 "tape": "^4.0.0",
40− "xo": "^0.17.1"
40+ "xo": "^0.18.0"
4141 },
4242 "scripts": {
4343 "build-md": "remark *.md -qfo",
@@ -49,6 +49,7 @@
4949 },
5050 "xo": {
5151 "space": true,
52+ "esnext": false,
5253 "rules": {
5354 "no-eq-null": "off",
5455 "eqeqeq": "off",
test/index.js+1−1
@@ -209,7 +209,7 @@ test('remark-validate-links', function (t) {
209209 t.test('should work on GitHub URLs when with package.json', function (st) {
210210 st.plan(1);
211211
212− /* cwd is moved to `test/fixtures`. */
212+ /* `cwd` is moved to `test/fixtures`. */
213213 fs.writeFileSync('./package.json', JSON.stringify({
214214 repository: 'wooorm/test'
215215 }, 0, 2));