Skip to content

Commit

Permalink
chore(eslint): add eslint & eslint-config-hexo
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 28, 2019
1 parent afea093 commit 6ac5963
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
node_modules/
coverage/
tmp/
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "hexo"
}
9 changes: 7 additions & 2 deletions 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": {
Expand All @@ -14,6 +14,7 @@
"node": ">= 8.6.0"
},
"scripts": {
"eslint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -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"
}
}

0 comments on commit 6ac5963

Please sign in to comment.