-
Notifications
You must be signed in to change notification settings - Fork 6
chore(deps-dev): bump markdownlint from 0.36.1 to 0.37.3 #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
cce98aa
62e3669
a18dbdf
354ceaa
84aebbc
671c049
a03d501
239b15a
db5cd52
d6d4f78
3bd1c70
7c5aef4
3a2ce49
d86cd37
3ae5b70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "root": true, | ||
| "parserOptions": { | ||
| "ecmaVersion": 2020 | ||
| }, | ||
| "env": { | ||
| "es6": true, | ||
| "node": true, | ||
| "jest": true | ||
| }, | ||
| "plugins": ["github"], | ||
| "extends": ["plugin:github/recommended"], | ||
| "rules": { | ||
| "import/no-commonjs": "off", | ||
| "filenames/match-regex": "off", | ||
| "i18n-text/no-en": "off" | ||
| } | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { init } from "./index.js"; | ||
|
|
||
| const options = init({ | ||
| default: false, | ||
| "heading-increment": true, | ||
| "no-alt-text": true, | ||
| "single-h1": true, | ||
| "no-emphasis-as-heading": true, | ||
| "first-line-heading": true, | ||
| }); | ||
| export const config = options; | ||
| export const customRules = ["./index.js"]; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 14 | ||
| 18 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,20 @@ | ||
| const _ = require("lodash"); | ||
| import _ from "lodash-es"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. regular lodash is synchronous |
||
|
|
||
| const accessibilityRules = require("./style/accessibility.json"); | ||
| const base = require("./style/base.json"); | ||
| const gitHubCustomRules = require("./src/rules/index").rules; | ||
|
|
||
| module.exports = [...gitHubCustomRules]; | ||
| import accessibilityRules from "./style/accessibility.json"; | ||
| import base from "./style/base.json"; | ||
| import { githubMarkdownLint } from "./src/rules/index.js"; | ||
|
|
||
| const offByDefault = ["no-empty-alt-text"]; | ||
|
|
||
| for (const rule of gitHubCustomRules) { | ||
| for (const rule of githubMarkdownLint) { | ||
| const ruleName = rule.names[1]; | ||
| base[ruleName] = offByDefault.includes(ruleName) ? false : true; | ||
| } | ||
|
|
||
| module.exports.init = function init(consumerConfig) { | ||
| export function init(consumerConfig) { | ||
| // left overwrites right | ||
| return _.defaultsDeep(consumerConfig, accessibilityRules, base); | ||
| }; | ||
| const foo = _.defaultsDeep(consumerConfig, accessibilityRules, base); | ||
| return foo; | ||
| } | ||
|
|
||
| // export default githubMarkdownLint; | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "transform": { | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.