Skip to content

Commit

Permalink
Update generate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TOsmanov authored Feb 19, 2024
1 parent b8cd9be commit 8e4aef8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function createConfig (mode = 'full', source = '', project = '') {
path.join(__dirname, '/node_modules/markdownlint-rules-foliant/lib/fenced-code-in-quote'),
path.join(__dirname, '/node_modules/markdownlint-rules-foliant/lib/typograph'),
path.join(__dirname, '/node_modules/markdownlint-rules-foliant/lib/validate-internal-links'),
path.join(__dirname, '/node_modules/markdownlint-rules-foliant/lib/checking-frontmatter-tags')
path.join(__dirname, '/node_modules/markdownlint-rules-foliant/lib/frontmatter-tags-exist')
]
} else {
customRules = [
Expand All @@ -24,7 +24,7 @@ function createConfig (mode = 'full', source = '', project = '') {
path.resolve(__dirname, '../markdownlint-rules-foliant/lib/fenced-code-in-quote'),
path.resolve(__dirname, '../markdownlint-rules-foliant/lib/typograph'),
path.resolve(__dirname, '../markdownlint-rules-foliant/lib/validate-internal-links'),
path.resolve(__dirname, '../markdownlint-rules-foliant/lib/checking-frontmatter-tags')
path.resolve(__dirname, '../markdownlint-rules-foliant/lib/frontmatter-tags-exist')
]
}

Expand Down Expand Up @@ -76,7 +76,7 @@ function createConfig (mode = 'full', source = '', project = '') {
src: source.length === 0 ? undefined : source,
project: project.length === 0 ? undefined : project
},
'checking-frontmatter-tags': true
'frontmatter-tags-exist': true
}

const configSlim = {
Expand Down Expand Up @@ -125,7 +125,7 @@ function createConfig (mode = 'full', source = '', project = '') {
src: source.length === 0 ? undefined : source,
project: project.length === 0 ? undefined : project
},
'checking-frontmatter-tags': false
'frontmatter-tags-exist': false
}

const configTypograph = {
Expand Down Expand Up @@ -180,7 +180,7 @@ function createConfig (mode = 'full', source = '', project = '') {
'fenced-code-in-quote': false,
typograph: true,
'validate-internal-links': false,
'checking-frontmatter-tags': true
'frontmatter-tags-exist': true
}

let config
Expand Down

0 comments on commit 8e4aef8

Please sign in to comment.