add rule config
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const githubDocsConfig = {
|
||||
const githubDocsConfig = {
|
||||
'code-fence-line-length': {
|
||||
// GHD001
|
||||
severity: 'warning',
|
||||
@@ -55,6 +55,17 @@ export const githubDocsConfig = {
|
||||
},
|
||||
}
|
||||
|
||||
const githubMarkdownlintConfig = {
|
||||
'no-default-alt-text': {
|
||||
severity: 'error',
|
||||
'partial-markdown-files': true,
|
||||
},
|
||||
'no-generic-link-text': {
|
||||
severity: 'error',
|
||||
'partial-markdown-files': true,
|
||||
},
|
||||
}
|
||||
|
||||
export const searchReplaceConfig = {
|
||||
'search-replace': {
|
||||
rules: [
|
||||
@@ -169,4 +180,8 @@ export const searchReplaceConfig = {
|
||||
},
|
||||
}
|
||||
|
||||
export const customConfig = { ...searchReplaceConfig, ...githubDocsConfig }
|
||||
export const customConfig = {
|
||||
...searchReplaceConfig,
|
||||
...githubDocsConfig,
|
||||
...githubMarkdownlintConfig,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user