diff --git a/.eslintignore b/.eslintignore new file mode 100755 index 0000000..f6b9638 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules/ +coverage/ +tmp/ \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100755 index 0000000..d6d70b6 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "hexo" +} \ No newline at end of file diff --git a/package.json b/package.json index a90ab1a..46db10e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-filter-nofollow", - "version": "1.1.0", + "version": "2.0.0", "description": "Add nofollow attribute to all external links automatically", "main": "index.js", "directories": { @@ -14,6 +14,7 @@ "node": ">= 8.6.0" }, "scripts": { + "eslint": "eslint .", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -32,5 +33,9 @@ "bugs": { "url": "https://github.com/hexojs/hexo-filter-nofollow/issues" }, - "homepage": "https://github.com/hexojs/hexo-filter-nofollow#readme" + "homepage": "https://github.com/hexojs/hexo-filter-nofollow#readme", + "devDependencies": { + "eslint": "^6.2.2", + "eslint-config-hexo": "^3.0.0" + } }