Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b66dc2

Browse files
committed
fix(eslint): split rules for markdown
Itfixes#28
1 parenta9da525 commit3b66dc2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

‎.eslintrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,5 @@
2727
"ecmaFeatures": {
2828
"modules": true
2929
},
30-
"plugins": [
31-
"markdown"
32-
],
3330
"extends": "eslint:recommended"
3431
}

‎.md.eslintrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"rules": {
3+
"no-undef": 0
4+
},
5+
"plugins": [
6+
"markdown"
7+
],
8+
"extends": ".eslintrc"
9+
}

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"start":"gitbook serve",
2323
"build":"gitbook build",
2424
"eslint":"eslint src/**/*.js",
25-
"eslint:md":"eslint --ext .md ja/**/*.md",
25+
"eslint:md":"eslint -c .md.eslintrc --ext .md ja/**/*.md",
2626
"textlint":"summary-to-path | xargs textlint --rule spellcheck-tech-word",
2727
"test":"mocha --recursive && npm run textlint && npm run eslint:md && npm run eslint && npm run build"
2828
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp