Browse Source

lint: remove key spacing

pull/979/head
Vitaly Puzrin 5 months ago
parent
commit
9f5e9c6069
  1. 1
      .eslintrc.yml
  2. 22
      lib/presets/commonmark.mjs
  3. 23
      lib/presets/default.mjs
  4. 22
      lib/presets/zero.mjs
  5. 23
      support/demo_template/index.mjs

1
.eslintrc.yml

@ -19,5 +19,4 @@ ignorePatterns:
rules:
camelcase: 0
key-spacing: 0
no-multi-spaces: 0

22
lib/presets/commonmark.mjs

@ -2,11 +2,20 @@
export default {
options: {
html: true, // Enable HTML tags in source
xhtmlOut: true, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: false, // autoconvert URL-like texts to links
// Enable HTML tags in source
html: true,
// Use '/' to close single tags (<br />)
xhtmlOut: true,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification
typographer: false,
@ -26,7 +35,8 @@ export default {
//
highlight: null,
maxNesting: 20 // Internal protection, recursion limit
// Internal protection, recursion limit
maxNesting: 20
},
components: {

23
lib/presets/default.mjs

@ -2,11 +2,20 @@
export default {
options: {
html: false, // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: false, // autoconvert URL-like texts to links
// Enable HTML tags in source
html: false,
// Use '/' to close single tags (<br />)
xhtmlOut: false,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification
typographer: false,
@ -26,11 +35,11 @@ export default {
//
highlight: null,
maxNesting: 100 // Internal protection, recursion limit
// Internal protection, recursion limit
maxNesting: 100
},
components: {
core: {},
block: {},
inline: {}

22
lib/presets/zero.mjs

@ -3,11 +3,20 @@
export default {
options: {
html: false, // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: false, // autoconvert URL-like texts to links
// Enable HTML tags in source
html: false,
// Use '/' to close single tags (<br />)
xhtmlOut: false,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: false,
// Enable some language-neutral replacements + quotes beautification
typographer: false,
@ -27,7 +36,8 @@ export default {
//
highlight: null,
maxNesting: 20 // Internal protection, recursion limit
// Internal protection, recursion limit
maxNesting: 20
},
components: {

23
support/demo_template/index.mjs

@ -18,12 +18,23 @@ import md_sup from 'markdown-it-sup'
let mdHtml, mdSrc, permalink, scrollMap
const defaults = {
html: false, // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: true, // autoconvert URL-like texts to links
typographer: true, // Enable smartypants and other sweet transforms
// Enable HTML tags in source
html: false,
// Use '/' to close single tags (<br />)
xhtmlOut: false,
// Convert '\n' in paragraphs into <br>
breaks: false,
// CSS language prefix for fenced blocks
langPrefix: 'language-',
// autoconvert URL-like texts to links
linkify: true,
// Enable smartypants and other sweet transforms
typographer: true,
// options below are for demo only
_highlight: true,

Loading…
Cancel
Save