Skip to content

Commit 71aad7b

Browse files
committed
chore: use eslint --no-inline-config to eliminate linting warnings in the docs
as inline configs was widely used in the source code, I just separate the `eslint --no-inline-config docs` to npm script `lint:docs`. fixes #140
1 parent 82a5ec1 commit 71aad7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"license": "MIT",
1212
"scripts": {
1313
"lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*",
14-
"lint:docs": "markdownlint \"**/*.md\"",
14+
"lint:docs": "eslint --no-inline-config \"**/*.md\" && markdownlint \"**/*.md\"",
1515
"lint:eslint-docs": "npm-run-all \"update:eslint-docs -- --check\"",
16-
"lint:js": "eslint --cache .",
16+
"lint:js": "eslint --cache --ignore-pattern \"**/*.md\" .",
1717
"lint:package-json": "npmPkgJsonLint .",
1818
"release": "release-it",
1919
"test": "nyc --all --check-coverage --include lib mocha tests --recursive",

0 commit comments

Comments
 (0)