Skip to content

Commit

Permalink
fix(eslint): split rules for markdown
Browse files Browse the repository at this point in the history
It  fixes #28
  • Loading branch information
azu committed Aug 31, 2015
1 parent a9da525 commit 3b66dc2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,5 @@
"ecmaFeatures": {
"modules": true
},
"plugins": [
"markdown"
],
"extends": "eslint:recommended"
}
9 changes: 9 additions & 0 deletions .md.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"rules": {
"no-undef": 0
},
"plugins": [
"markdown"
],
"extends": ".eslintrc"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start": "gitbook serve",
"build": "gitbook build",
"eslint": "eslint src/**/*.js",
"eslint:md": "eslint --ext .md ja/**/*.md",
"eslint:md": "eslint -c .md.eslintrc --ext .md ja/**/*.md",
"textlint": "summary-to-path | xargs textlint --rule spellcheck-tech-word",
"test": "mocha --recursive && npm run textlint && npm run eslint:md && npm run eslint && npm run build"
},
Expand Down

0 comments on commit 3b66dc2

Please sign in to comment.