Skip to content

Commit b69e44f

Browse files
committed
fix lints
1 parent fa7dd7e commit b69e44f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/no-generic-link-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bannedLinkText = ['read more', 'here', 'click here', 'learn more', 'more',
66
const stripAndDowncaseText = text => {
77
return text
88
.toLowerCase()
9-
.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g, '')
9+
.replace(/[.,/#!$%^&*;:{}=\-_`~()]/g, '')
1010
.replace(/\s{2,}/g, ' ')
1111
.trim()
1212
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"pretest": "mkdir -p node_modules/ && ln -fs $(pwd) node_modules/",
1414
"eslint-check": "eslint-config-prettier .eslintrc.js",
15-
"test": "mocha tests/no-generic-link-text.js"
15+
"test": "npm run eslint-check && eslint . && mocha tests/"
1616
},
1717
"repository": {
1818
"type": "git",

0 commit comments

Comments
 (0)