Skip to content

Commit

Permalink
fix(remark): fix settings & scripts (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Feb 2, 2019
1 parent ba62417 commit f31a097
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "npm run lint:md -- --output",
"lint:md:fix": "remark . --output",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
Expand All @@ -76,7 +76,7 @@
"git add"
],
"*.md": [
"remark --output",
"remark --output --",
"git add"
],
"*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": [
Expand All @@ -102,6 +102,14 @@
"remark-preset-lint-recommended",
"remark-lint-first-heading-level",
"remark-lint-no-tabs",
[
"remark-lint-list-item-spacing",
false
],
[
"remark-lint-ordered-list-marker-value",
"ordered"
],
"remark-validate-links"
]
},
Expand Down
6 changes: 4 additions & 2 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "npm run lint:md -- --output",
"lint:md:fix": "remark . --output",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
Expand All @@ -24,7 +24,7 @@
"lint-staged": {
"linters": {
"*.{js,jsx,mjs}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --output", "git add"],
"*.md": ["remark --output --", "git add"],
"*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"]
},
"ignore": ["CHANGELOG.md"]
Expand All @@ -43,6 +43,8 @@
"remark-preset-lint-recommended",
"remark-lint-first-heading-level",
"remark-lint-no-tabs",
["remark-lint-list-item-spacing", false],
["remark-lint-ordered-list-marker-value", "ordered"],
"remark-validate-links"
]
},
Expand Down
6 changes: 4 additions & 2 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test:coverage": "echo \"unsupported.\" && exit 1",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "npm run lint:md -- --output",
"lint:md:fix": "remark . --output",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
Expand All @@ -25,7 +25,7 @@
"*.css": "xyz",
"linters": {
"*.{js,jsx,mjs}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --output", "git add"],
"*.md": ["remark --output --", "git add"],
"*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"]
},
"ignore": ["CHANGELOG.md"]
Expand All @@ -44,6 +44,8 @@
"remark-preset-lint-recommended",
"remark-lint-first-heading-level",
"remark-lint-no-tabs",
["remark-lint-list-item-spacing", false],
["remark-lint-ordered-list-marker-value", "ordered"],
"remark-validate-links"
]
},
Expand Down

0 comments on commit f31a097

Please sign in to comment.